DBG-17 SWD header without NRST (and SWO): the probe cannot reset a stuck target or trace¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | runs in better_erc | easy, depends on netlist |
Data it needs: graph, part classes.
Looks at. Debug header (DBG-1), reset pin, SWO pin.
What it catches. A debug header or test point set that carries SWDIO and SWCLK but not the MCU's reset (and, on parts that have it, not SWO).
Why it matters. When the firmware turns the SWD pins into GPIO, puts the part into a low-power mode with the debug clock off, or sets every pin analog, the probe can only regain control by holding NRST low while it connects ("connect under reset"). Without NRST on the header that needs a finger on a button or a power cycle at the right moment. SWO gives printf-style trace without a UART.
Example. AN4989 notes that STM32Cube power examples switch every GPIO, SWD included, to analog to save current, which disconnects the debugger: only connect under reset with NRST recovers. B200A's 2×3 "Just Screw It SWD" header does carry ~RST on pin 5.
How to check. Find the header carrying the SWD nets; check that the MCU's reset net reaches a pin of the same header (or a test point beside the SWD ones); for parts with SWO, the same.
Fix. Use a standard pinout that includes nRESET (ARM 10-pin: pin 10) and SWO (pin 6); on test-point designs, add an NRST pad.
References. AN4989 §4.1 (SWD pins in reset state, connect under reset), §4.2 (reset and connection mode), §7.3 (SWO); SEGGER 9-pin (pin 10 nRESET, pin 6 SWO); AN5096 §4.3.3 (SWD connector with NRST).
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only DBG-17 reports on it.
dbg-17_swd_without_reset¶