LOGIC checks
The LOGIC checks of the check catalogue. Each check has a page of its own: what it catches, why it matters, an example, how better_erc finds it, the usual fix and where to read more, with the test schematics that show it firing.
References used throughout:
- AN4899 · ST, Guidelines for GPIO hardware settings and low-power consumption on STM32 MCUs, Rev 4 (2026). Voltage output and current drive (§5.1.4), pull-up calculation (§5.1.5), open-drain with no load (§6.4). st.com/an4899
- STM32G0B1 · ST datasheet DS13560 Rev 6 (2026): Table 22 Current characteristics (15 mA per pin, 80 mA sourced by all IOs together). st.com/stm32g0b1re.pdf
- AN2606 · ST, Introduction to system memory boot mode on STM32 MCUs, Rev 70 (2026): the STM32G0B1 bootloader (§50.1). st.com/an2606
- USB251xB · Microchip, USB251xB/xBi USB 2.0 Hi-Speed Hub Controller, DS00001692C: configuration options (Table 5-1), SMBus configuration (§5.3), RESET_N (§5.5.1). ww1.microchip.com/…/00001692C.pdf
- SCBA004E · TI, Implications of Slow or Floating CMOS Inputs (rev. 2021): slow input edges (§2). ti.com/lit/an/scba004e
- CDCLVC1102 · TI, CDCLVC11xx 3.3-V and 2.5-V LVCMOS High-Performance Clock Buffer Family datasheet SCAS895B (2017): series resistor near the driver (§8.1, §9.2.1). ti.com/lit/ds/symlink/cdclvc1102.pdf
- Wikipedia, Fan-out and Open collector · readable overviews. en.wikipedia.org/wiki/Fan-out, en.wikipedia.org/wiki/Open_collector
- AoE3 · Horowitz & Hill, The Art of Electronics, 3rd ed. (Cambridge, 2015), chapter 10 (digital logic) and chapter 12 (logic interfacing).
Checks
| Check |
Severity |
Status |
LOGIC-1 Logical contradictions in GPIO or GPIO expander connections · AI prompt: check that GPIOs that drive multiple things have no logical contradictions, table of each occurrence |
error |
planned |
LOGIC-2 IO going to two MCUs or SoCs: odd requirements likely, esp. IRQs and buttons not going to reset inputs |
warning |
planned |
LOGIC-3 Suggest buffering high fan-out signals |
suggestion |
runs |
LOGIC-4 Total IO current per IC or bank |
warning |
planned |
LOGIC-5 Dependency loops in bring-up, update or recovery: part A only works once part B has set it up, while B needs A to start, update or recover. Then the board works while the firmware runs and fails exactly when it is needed (dead or half-written firmware, reset, ROM bootloader). Walk every boot, update and recovery path with each programmable part in its reset or unconfigured state. Example: an MCU whose only update path (its USB ROM bootloader) goes through a USB hub that the MCU itself must release from reset and configure over I2C: after a reset the bootloader never reaches the host. Same shape elsewhere: a sequencer or supervisor powered or configured by what it controls, a clock or PHY configured by the chip it serves, a config memory written through the bus it configures, a mux or level shifter on the programming path driven by the target ≈ SEQ-2 |
error |
planned |
LOGIC-6 Current through one pin above its maximum (an LED without resistor, a relay coil, a long pull chain) ≈ LOGIC-4 |
error |
planned |
LOGIC-7 Open-drain or open-collector output as the only driver of a net with no pull-up: never goes high |
error |
runs |
LOGIC-8 Polarity mismatch by name: an active-low output (_N, #, ~) into an active-high input or the reverse (PGOOD into ~EN, INT_N into a rising-edge IRQ) with no inverter |
warning |
runs |