Skip to content

DBG-1 SWD/JTAG not connected

Severity Status Implementation
error runs in better_erc easy, depends on netlist (NET-12 for symbols that name only the port pin

Data it needs: graph, part classes.

Looks at. Debug pins of each MCU (pin names, NET-12), header or test points.

What it catches. An MCU, SoC or FPGA whose SWD or JTAG pins (SWDIO, SWCLK; TCK, TMS, TDI, TDO) reach no header, connector or test point at all: they are unconnected, or wired only to other on-board functions.

Why it matters. The debug port is the one interface that works whatever the firmware does: it flashes a blank part, recovers a bricked one and shows where a hang sits. Without it the board depends on a ROM bootloader (if the part has one and its interface is reachable, BOOT-6) and every firmware bug is debugged with printf. Many parts ship blank and can only be programmed through it.

Example. An STM32G030 board where PA13 (SWDIO) drives a status LED and PA14 (SWCLK/BOOT0) a button, with no header and no pads: the factory-blank part can only be programmed by soldering wires to the LED resistor and the button, and once the firmware turns the pins into GPIO even that stops working (MUX-5).

How to check. Find each part's debug pins by name (SWDIO, SWCLK, TCK, TMS, TDI, TDO, or the port pin they share once NET-12 maps alternate functions) and follow their nets through series resistors; at least SWDIO, SWCLK and GND (or the four JTAG signals) must reach a connector or test points.

Fix. A debug header (ARM 10-pin 1.27 mm, a Tag-Connect footprint, or at least test points for SWDIO, SWCLK, NRST, VTref and GND); keep the pins free of other functions, or share them only through resistors (DBG-2).

References. AN4989 §4.1 (SWD/JTAG pinout); AN5096 §4.3 (SWD pins and connector); SEGGER 9-pin; RP2350 HW §5.3.

Test schematics

Each schematic below is in test_schematics/sources. The block under it is what berc check --only DBG-1 reports on it.

dbg-1_swd_not_connected

The test schematic dbg-1_swd_not_connected The test schematic dbg-1_swd_not_connected

  error      DBG-1 #1e94    debug port of U1 not brought out: U1.3 (PA13/SWDIO) and U1.4 (PA14/SWCLK) reach no connector or test point
                            part U1, pin U1.3, pin U1.4
                            fix: a debug header (ARM 10-pin 1.27 mm, Tag-Connect) or test points for SWDIO, SWCLK, NRST, VTref and GND

DBG-1 also fires on the test schematics of other checks: test-5_bring_up_test_points.