Detect the chip on your board
Ask the pod which chip is wired to it. It reads the chip's IDs over the debug pins, the programming pins, the ESP32 ROM bootloader or USB, and names the chip. The web app shows the result next to the target power switch; the SDK, the MCP server and the CLI return it as data.
Methods
A method runs only when the wiring profile wires its pins and nothing else owns them (a UART, GPIO, sensor or bus session on the same LA pin). Methods that cannot run are listed as skipped, with the reason. The probes marked invasive reset or halt the chip, so they run only when you ask for them.
| Method | Reads | Needs | Invasive |
|---|---|---|---|
swd | The Arm debug port (DPIDR, and TARGETID on a version 2 port), the core (CPUID) and the chip's ID register: STM32, nRF52 and other Arm chips. Asks the debug port for its IDs and reads a few ID registers. It halts nothing, resets nothing and writes no target memory. | Wiring profile with swd_swclk and swd_swdio | No |
jtag | The IDCODE of every device on the JTAG chain: STM32 boundary-scan TAPs, ESP32 chips, Arm debug ports. Shifts the ID registers out of the chain. Nothing is written. | Wiring profile with jtag_tck, jtag_tms, jtag_tdi and jtag_tdo | No |
usb | The VID:PID and the product name of the device the pod hosts, and the loader mode it would be flashed in. Reads the host status. It never turns host mode on by itself. | USB host mode on, with a device mounted | No |
updi, pic, c2, tpi, pdi, sbw | The chip ID of AVR with UPDI, PIC, Silicon Labs EFM8, ATtiny TPI, AVR XMEGA and TI MSP430 (Spy-Bi-Wire, firmware 4.0.6 and later). Puts the chip into its programming mode, which resets it. The SWD pins are never used as a fallback. | A wiring profile signal named for the protocol (UPDI; ICSPCLK and ICSPDAT, or PGC and PGD; C2CK and C2D; TPICLK and TPIDATA; PDI_CLK and PDI_DATA; SBWTCK or TEST and SBWTDIO or RST) | Yes |
esp32 | The ESP32 chip type, from its ROM bootloader. Resets the chip into its ROM bootloader and asks it for its type. | UART RX and UART TX in the wiring profile, and a BOOT, IO0 or IO9 signal | Yes |
The target must be powered. With target power off, detect probes nothing and says so. The SWD answer is mapped to a chip in two steps: the first call reads the debug port and the core, the second reads the ID registers that fit that core. The first call alone names an STM32 when its debug port reports the TARGETID.
What a result holds
A result has powered, a list of findings, a list of skipped methods with their reasons, and notes. Each finding has:
method: which probe found it.chip,vendorandcore: for example STM32F446, STMicroelectronics, Cortex-M4.id: the ID that decided it (a register value, an IDCODE, a chip ID or a VID:PID).confidence: how sure the match is (below).pins: the LA pins the probe used.raw: what the pod answered, for your own checks.invasive: whether the probe reset or halted the chip.
| Confidence | Meaning |
|---|---|
high | An exact match: an STM32 device ID at its family's register, a chip ID from the programming table, an ESP32 chip type or a known VID:PID. |
medium | The vendor and core are known, the part is not (for example a Cortex-M4 whose ID register is not in the table). |
low | Only a debug port or an unknown device answered. |
Web app
When you turn target power on, the workspace waits a moment for the board to boot, then runs the probes that cannot disturb the chip: SWD and JTAG, and USB when host mode is already on. It runs once per power cycle and the result stays until power goes off. The chip appears as a badge next to the power switch; on a narrow screen it is an icon. The (i) next to it shows the chip, vendor, core, ID, method and pins. When nothing answers, no badge appears.
Click the badge, or the detect button beside it, to run everything the wiring profile allows. That includes the programming-pin protocols and the ESP32 bootloader, which reset or halt the target. The USB pane has its own Detect button: it reads the device the pod hosts and shows its name and loader mode.
CLI
benchpod detect runs every method the wiring profile allows. --no-invasive limits it to SWD, JTAG and USB, --methods picks methods by name, and --json prints the result as JSON. For the programming-pin targets, benchpod flash --dry-run reads the chip's ID and writes nothing (see Pin programmers).
benchpod detect benchpod detect --no-invasive # SWD, JTAG and USB only benchpod detect --methods swd,jtag --json benchpod flash --target avr-updi --dry-run --data 5
SDK
BenchPod.detect(invasive=True, methods=None) returns a DetectResult with powered, findings, skipped and notes. With invasive=False only swd, jtag and usb run; methods is a list of method names.
from embeddedci.benchpod import BenchPod
with BenchPod("embeddedci:my-pod", la_voltage=3.3) as bp:
bp.power_on()
result = bp.detect(invasive=False) # SWD, JTAG and USB only
for f in result.findings:
print(f.method, f.chip, f.vendor, f.core, f.id, f.confidence)
for s in result.skipped:
print("skipped", s["method"], s["reason"])MCP server
The detect tool takes invasive and methods and returns the same result. The flash tool takes dry_run for the programming-pin targets: it reads the chip's ID and writes nothing.
detect() # everything the wiring profile allows detect(invasive=false) # SWD, JTAG and USB only detect(methods=["swd", "usb"]) flash(target="pic", dry_run=true) # read the chip ID, write nothing
Pod command
The SWD and JTAG IDs are read by the pod itself. dap_start with "op":"id" takes the same pins as a debug session and answers one JSON object. The connection stays a JSON connection (it does not turn into a debug probe). The pod arms its engine on the pins, reads, releases the pins and gives back the debug power request. It halts nothing, resets nothing and writes nothing but debug port registers.
{"cmd":"dap_start","op":"id","swclk":11,"swdio":12}
{"cmd":"dap_start","op":"id","swclk":11,"swdio":12,"read":["0xE0042000","0x5C001000"],"wait_ms":2000}
{"cmd":"dap_start","op":"id","tck":11,"tms":12,"tdi":9,"tdo":10,"trst":0}- With both pin sets,
"port":"swd"(the default) or"jtag"picks one. readlists up to 8 addresses to read through the debug port; a read that faults givesnull.wait_msis how long a missing answer is retried (default 200, up to 10000).- The same gates apply as for a debug session: the I/O voltage, bus masters and the emulation image, a running pin programmer, and pins another session owns.
{"port":"swd","found":true,"dpidr":"0x2ba01477","targetid":null,"apidr":"0x24770011","cpuid":"0x410fc241","reads":[{"addr":"0xe0042000","value":"0x10006421"}]}
{"port":"swd","found":false}
{"port":"jtag","found":true,"idcodes":["0x4ba00477","0x06421041"]}
{"port":"jtag","found":false}Hex values are lower case strings. JTAG IDCODEs come TDO-nearest first. Firmware lists the command as the dap_id feature; hosts check for it before sending, because older firmware would turn the connection into a debug probe.