DBG checks
The DBG checks of the check catalogue. Each check has a page of its own: what it catches, why it matters, an example, how better_erc finds it, the usual fix and where to read more, with the test schematics that show it firing.
Most of these are suggestions: a board without them works, but the first bring-up, the first field return and every firmware bug that hangs the part cost more.
References used throughout:
- SEGGER 20-pin · SEGGER Knowledge Base, 20-pin J-Link Connector (pin table: VTref, nTRST, TMS, TCK, nRESET, pin 19 5V-Supply). kb.segger.com/20-pin_J-Link_Connector
- SEGGER 9-pin · SEGGER Knowledge Base, 9-pin JTAG/SWD connector (the 10-pin Cortex-M header, 1.27 mm). kb.segger.com/9-pin_JTAG/SWD_connector
- AN4989 · ST, Introduction to debug toolbox for STM32 MCUs (fetched 21 Oct 2026 through a headless browser, st.com refuses plain HTTP clients). §4.1 SWD/JTAG pinout, §4.2 Reset and connection mode, §7.2 Printf via UART, §7.3 Printf via SWO/SWV. st.com AN4989
- AN5096 · ST, Getting started with STM32G0 MCUs hardware development, Rev 4 (fetched through a headless browser). §1.2.2 Programmable voltage detector (PVD), §4.3 Pinout and debug port pins. st.com AN5096
- XJTAG DFT · XJTAG, Design for Test (DFT) Guidelines for improving JTAG testability (TAP pull-ups and pull-downs, termination, connector design). xjtag.com/about-jtag/design-for-test-guidelines
- RP2350 HW · Raspberry Pi, Hardware design with RP2350, §5.3 Debug connector. datasheets.raspberrypi.com/rp2350/hardware-design-with-rp2350.pdf
- UM10204 · NXP, I²C-bus specification and user manual, Rev. 7.0 (October 2021), §3.1.16 Bus clear (fetched through a headless browser). nxp.com/docs/en/user-guide/UM10204.pdf
- Wikipedia, JTAG · a readable overview of the TAP signals and boundary scan. en.wikipedia.org/wiki/JTAG
- IEEE 1149.1 · IEEE Standard for Test Access Port and Boundary-Scan Architecture (the JTAG standard), by title.
- AoE3 · Horowitz & Hill, The Art of Electronics, 3rd ed. (Cambridge, 2015), chapter 9 (power regulation), chapter 13 (digital meets analog).
Checks
| Check |
Severity |
Status |
DBG-1 SWD/JTAG not connected |
error |
runs |
DBG-2 No series resistors on an obvious debug header (e.g. SWD) |
suggestion |
runs |
DBG-3 No LEDs on the board at all: suggest at least one for debug |
suggestion |
runs |
DBG-4 No power rail LEDs |
suggestion |
runs |
DBG-5 No error flag LEDs when flags aren't routed to IOs |
suggestion |
planned |
DBG-6 Power rails not monitored by an ADC |
suggestion |
planned |
DBG-7 Suggest DNM pull-up and down on EN pins |
suggestion |
runs |
DBG-8 Suggest DNM pull-ups on open drain pins; test point detector should highlight those nets |
suggestion |
runs |
DBG-9 Suggest DNM 0R bypasses on power switches |
suggestion |
planned |
DBG-10 Many things on one power net: suggest splitting with a 0R before each power input |
suggestion |
runs |
DBG-11 Suggest 0R on USART TX, RX, CTS, RTS and SPI MOSI, MISO, as they're often wrong |
suggestion |
runs |
DBG-12 Spot potentially useful 0R series resistors (AI?) |
suggestion |
planned |
DBG-13 No early power-fail signal on a board that writes storage (SD, eMMC, flash): a comparator on the input ahead of the rail lets firmware stop writing before the rail drops |
suggestion |
planned |
DBG-14 No UART console reachable on a header or test points |
suggestion |
runs |
DBG-15 Board revision and variant not readable by firmware (ID resistor divider on an ADC pin, straps): the firmware cannot tell boards apart |
suggestion |
planned |
DBG-16 No firmware-driven LED (heartbeat), only power LEDs ≈ DBG-3 |
suggestion |
runs |
DBG-17 SWD header without NRST (and SWO): the probe cannot reset a stuck target or trace |
suggestion |
runs |
DBG-18 I2C or SPI buses not reachable at a header or test points for a bus analyser |
suggestion |
runs |
DBG-19 Debug header VTref not wired straight to the target rail (a series resistor, or not connected): the probe senses level and power through it; and a header VCC pin able to source current into the rail back-powers the board to a half-alive state |
warning |
planned |
DBG-20 No hardware way to reset or power-cycle bus peripherals after an MCU-only reset: a stuck I2C slave stays stuck |
suggestion |
planned |
DBG-21 JTAG pulls: TCK without a pull-down, TMS and TDI without pull-ups, nTRST floating where the header has no nTRST pin (the debug logic resets) |
warning |
planned |
DBG-22 SWDIO without a pull-up or SWCLK without a pull-down (10k-100k): noise on an unplugged header enters the debug port ≈ DBG-2 |
suggestion |
planned |
DBG-23 Spare GPIOs not brought to pads or a header for bodges and debug |
suggestion |
planned |
DBG-24 No non-volatile or backup storage for reset cause and crash logs (backup registers, FRAM, a few flash pages reserved) |
suggestion |
planned |