DBG-20 No hardware way to reset or power-cycle bus peripherals after an MCU-only reset¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | planned | hard, depends on NET-8, NET-10 |
Looks at. Power states (NET-8), reset and enable nets of the peripherals.
What it catches. Peripherals on a bus (I2C above all) that have no reset pin driven by the MCU and sit on a rail the MCU cannot switch, so only a full power cycle resets them.
Why it matters. An I2C slave interrupted mid-byte by an MCU reset keeps holding SDA low, waiting for clocks that never come; the MCU comes back and finds the bus stuck. UM10204 describes the bus clear: the master sends up to nine clocks, and if the slave still holds SDA, the device needs a hardware reset or a power cycle. Without either, the board needs the user to pull the plug.
Example. An I2C fuel gauge on an always-on rail with no reset pin: after a watchdog reset during a read it holds SDA low; the firmware's nine-clock recovery works only if SCL is a GPIO that firmware can toggle, and if not, the battery has to be removed.
How to check. For each bus device, does a reset pin reach an MCU GPIO, or is its rail switched by one? Needs the power states (NET-8) to know which rails a GPIO can turn off.
Fix. Wire peripheral resets to a GPIO, or put the peripherals on a load switch the MCU controls; make SCL a pin the firmware can bit-bang for the nine-clock recovery.
References. UM10204 §3.1.16 (bus clear); catalogue IO-13; B153 rev B change list (hub reset kept across an MCU reset, the reverse case).