DBG-19 Debug header VTref not wired straight to the target rail; a header VCC pin that back-powers the board¶
| Severity | Status | Implementation |
|---|---|---|
| warning | planned | mid, depends on NET-5, NET-7 |
Looks at. Debug header pin roles (VTref, VCC), the rail of the debugged part, power states.
What it catches. Two faults on the header's supply pins: VTref connected through a series resistor, or not at all, or to another rail than the debugged part's IO rail; and a header supply pin that the probe can drive into the board's rail.
Why it matters. The probe uses VTref to see whether the target has power and to set its own output level and input thresholds. SEGGER says it must not have a series resistor: with one the probe sees a sagging or wrong level. Unconnected, many probes refuse to connect or drive at their default level. A probe with a supply output (J-Link pin 19 gives 5 V, up to 300 mA) or a header pin wired to the board's main rail can power the board from the probe: half of it comes up, parts on other rails are back-powered through their IOs (BKF-2), and the bug hunt starts on a board in a state it never sees in use.
Example. A board with a 1.8 V MCU and VTref on the 3.3 V rail: the probe drives 3.3 V into 1.8 V pins. Another with VTref through 1 kΩ "for protection": the probe reads a voltage that sags under its own sense current.
How to check. Recognise the header from its SWD/JTAG nets and its pinout (CONN-15); the VTref pin must sit on the IO rail of the debugged part with no part in between; a header pin that is a rail must be marked as a probe power input only if the design means it (CFG-2).
Fix. VTref straight to the target's IO rail; leave the probe's supply pin unconnected unless the board is meant to be powered from the probe, and then feed it in through a diode or switch.
References. SEGGER 20-pin (VTref: "must not have a series resistor"; pin 19 5V-Supply, 300 mA); SEGGER 9-pin (VTref); catalogue BKF-2, CONN-15.