DBG-14 No UART console reachable on a header or test points¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | runs in better_erc | easy, depends on netlist (NET-12 for pins named by port only |
Data it needs: graph, part classes.
Looks at. UART pins of the MCU (pin names, NET-12), connectors and test points.
What it catches. A board whose MCU or SoC has no UART TX/RX pair reaching a header, connector or test points.
Why it matters. A console is the debug channel that works without a probe, in the field and on a production tester: boot logs, a shell, crash dumps. SoCs running Linux print their boot loader and kernel messages there; MCUs use it for logs when SWO or RTT is not available. Adding one later means a respin or wires on QFN pins.
Example. A Linux SoM carrier board without its debug UART on a header: when U-Boot stops before the network comes up, nothing at all is visible.
How to check. UART TX/RX pins of each programmable part (by name or alternate function) whose nets reach a connector or a pair of test points; none is a finding.
Fix. Three pads or a 3-pin header (TX, RX, GND) at the IO level, ideally the pinout of a common USB-UART cable; on SoCs the UART the ROM and boot loader use.
References. AN4989 §7.2 (printf via UART); Linux kernel documentation, Linux Serial Console (docs.kernel.org/admin-guide/serial-console.html).
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only DBG-14 reports on it.
dbg-14_uart_console¶
suggestion DBG-14 #7gh no UART of U1 reaches a header or test points: no console for boot logs and a shell
part U1
fix: three pads or a 3-pin header (TX, RX, GND) at the IO level, ideally a USB-UART cable's pinout
DBG-14 also fires on the test schematics of other checks: bom-4_placement, dbg-11_uart_spi_resistors, mux-1_swapped_signals, name-4_uart_names, wire-1_single_pin_nets.