DBG-24 No non-volatile or backup storage for reset cause and crash logs¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | planned | judgement, depends on netlist (candidates: no FRAM/EEPROM, no backup supply |
Looks at. Memory parts and MCU features, firmware plan.
What it catches. A design with no place to keep a crash record across a reset or power cycle: no backup registers kept alive, no FRAM or EEPROM, no flash pages set aside.
Why it matters. A field unit that resets once a day leaves nothing to look at unless the firmware writes the reset cause, the faulting address and a few words of context somewhere that survives. Most MCUs have reset-cause flags and a few backup registers kept alive while VBAT or VDD stays up; a power cycle needs FRAM, EEPROM or reserved flash. The schematic decides which are available: VBAT wired or not, a small FRAM on the I2C bus or not.
Example. A motor controller that browns out and resets in the field: without a stored reset cause, support cannot tell a brown-out from a watchdog from a hard fault.
How to check. A judgement on the firmware plan; better_erc can at most report whether a backup supply pin (VBAT) is wired and whether a small non-volatile memory exists.
Fix. Keep VBAT or the backup domain powered, add a small FRAM/EEPROM where a log must survive power cycles, and reserve flash pages for it.
References. AN4989 §6 (exception handling: where the faulting state comes from); the MCU's reference manual (reset and backup domain); B200A change list (flash sized for A/B images and introspection).