DBG-16 No firmware-driven LED (heartbeat), only power LEDs¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | runs in better_erc | easy, depends on netlist (NET-10 for LEDs driven through a transistor |
Data it needs: graph, part classes. Folds in: DBG-3.
Looks at. LEDs and what drives them (MCU pin, rail).
What it catches. A board whose LEDs all hang on rails: none is driven by an MCU pin.
Why it matters. A power LED says the rail is up, not that the firmware runs. A heartbeat LED blinking from the main loop or a timer shows a hang, a reset loop (blink pattern restarts) and a hard fault at a glance, and is the first thing a bring-up firmware toggles.
Example. B153A has a red and a green LED on PF0 and PF1 (both on timer channels for PWM): the firmware shows its state without a probe. A board with only a "3V3" LED shows the same glow whether the firmware runs or sits in a hard fault.
How to check. LEDs whose resistor chain ends on an MCU GPIO (directly, or through a transistor with NET-10); none is a finding when a programmable part exists.
Fix. One LED on a free GPIO, ideally one with a timer output.
References. B153A schematic review §11 (LED pins, timer channels).
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only DBG-16 reports on it.
dbg-16_heartbeat_led¶
suggestion DBG-16 #61p no LED is driven by U1: D1 and D2 only show power
part D1, part D2
fix: one LED on a free GPIO, ideally one with a timer output
DBG-16 also fires on the test schematics of other checks: logic-7_open_drain.