Skip to content

LOGIC-5 Dependency loops in bring-up, update or recovery

Severity Status Implementation
error planned judgement, depends on NET-8, NET-10, NET-12

Looks at. What configures what, reset states, boot paths.

What it catches. Part A only works once part B has set it up, while B needs A to start, update or recover. The board works while the firmware runs and fails exactly when the firmware is dead, half-written, in reset or in a ROM bootloader.

Why it matters. Recovery paths are tested last, often never: flashing works through the debugger on the bench, so nobody notices that the field update path depends on the firmware it is meant to replace. The same shape appears with supervisors powered by what they supervise, PHYs or clocks configured by the chip they serve, configuration memories written through the bus they configure, and muxes or level shifters on a programming path driven by the target.

Example. On B153A the STM32G0B1's only USB path goes through hub U301, strapped for SMBus configuration: out of reset the hub waits for the MCU to configure it and does not attach before (USB251xB §5.3), and the hub's RESET_N has a pull-down. After any MCU reset the hub is held in reset, so the ROM bootloader's USB DFU (AN2606 §50.1) runs but never reaches the host. A jump into the ROM without a reset, hub left running, enumerates fine. Rev B: a pull-up on the hub's reset and a mux that puts the MCU's USB on the connector directly (B153 rev B change list).

How to check. For each programmable part, take its boot, update and recovery interfaces (NET-12), follow them to the outside world (NET-10), and mark every part on the way that needs configuration or a GPIO level from that same part; evaluate with each programmable part in reset (NET-8). better_erc can list the paths and the suspicious parts; whether a loop is real (a strap may make the hub work alone) needs a datasheet reading.

Fix. Make the recovery path work with the part in reset: straps or pulls that put the in-between parts in a working default, a direct path for the ROM bootloader, or an independent programming connector.

References. USB251xB Table 5-1, §5.3; AN2606 §50.1; B153 rev B change list (ST ROM bootloader test, 21 Oct 2026).