Skip to content

CONN-15 Debug header pinout against the standard it claims

Severity Status Implementation
warning planned mid, depends on CFG-2

Looks at. Header nets, the standard's pin table.

What it catches. A debug header (ARM 10-pin Cortex Debug, 20-pin Cortex Debug+ETM, legacy 20-pin IDC JTAG, Tag-Connect) whose pins do not match the standard pinout, or a custom pinout on a footprint that looks like a standard one.

Why it matters. The probe's cable assumes the standard: on the 10-pin Cortex Debug connector pin 1 is VCC (the probe's VTref), 2 SWDIO/TMS, 4 SWCLK/TCK, 6 SWO/TDO, 8 TDI, 10 nRESET, 3 and 5 ground, 7 the key and 9 GNDDetect; on the legacy 20-pin IDC, 1 is VCC, 3 TRST, 5 TDI, 7 TMS/SWDIO, 9 TCK/SWCLK, 11 RTCK, 13 TDO/SWO, 15 nRESET and every even pin from 4 to 20 ground. A pinout off by one row puts the probe's ground on a signal, or VTref on SWDIO; at best the probe sees "no target", at worst it drives a rail.

Example. B200A's SWD header J101 is our own 2×3 "Just Screw It" pinout (1 SWDIO, 3 SWCLK, 5 RST, 6 +3V3, 2 and 4 GND). Correct with our adapters (B198 J-Link to Tag-Connect is one of them), but read as the 10-pin Cortex standard it would put the probe's VTref on SWDIO and the probe's SWDIO on a ground. The check should know that J101 is a declared custom pinout, not flag it every run.

How to check. A header whose nets are SWDIO/SWCLK/TMS/TCK/TDO/nRESET-like; match its pin-to-net map against the built-in tables of the standard pinouts, report the closest one and the differences; a pinout declared as custom in the project (CFG-2) is accepted.

Fix. The standard pinout of the probe you use; if a custom one is needed, a different connector type so no standard cable fits, and the pinout in silk.

References. Cortex-M Debug Connectors (10-pin, 20-pin and legacy pin tables); J-Link interface (20-pin JTAG and SWD pinouts); catalogue LIB-2.