Skip to content

IO checks

The IO 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:

Checks

Check Severity Status
IO-1 Input pin without a drive source, smart about resistors, FETs etc. ≈ IO-2 warning runs
IO-2 IO to an input without pull-up/down: High-Z gives an undefined state warning planned
IO-3 Enable driven by an MCU or SoC GPIO without a pull: think of uninit and reboot state; default_gpio_state part property overrides error planned
IO-4 Assume IO pins are high/low/Z by default and look for bugs ≈ IO-5 warning planned
IO-5 If IO pin default states are known, derive checks warning planned
IO-6 High impedance nets acting as touch buttons ≈ IO-1 warning runs
IO-7 Button to ground with a pull-down, or button to power with a pull-up ≈ IO-8 error runs
IO-8 Mention a needed pull-up or down where it applies, e.g. buttons suggestion runs
IO-9 Pins a part drives in its non-firmware modes: ROM bootloader, factory test, reset and fault states. A ROM bootloader configures its interfaces (UART, I2C, SPI, CAN, USB) and may drive or toggle those pins while it scans for a host, with no firmware to keep anything else safe; check what each such pin controls (switches, enables, buses, resets) and what that level does there. Example: an STM32 ROM bootloader drives its USART TX pin high while it scans for a host; if that pin also selects a USB data switch, a firmware update over the ROM cuts the downstream device's data ≈ IO-3, IO-4 error planned
IO-10 Input driven only from a connector: floats when nothing is plugged in ≈ IO-6 warning runs
IO-11 MOSFET gate without a pull: floats while its driver is in reset or unpowered error runs
IO-12 Output enable (~OE, ~G, EN) of a shift register, driver, mux or buffer without a pull to its disabled state: outputs do whatever until firmware loads them error planned
IO-13 Peripheral reset pin pulled into reset by default, driven by a controller that resets: every controller reset (also into its ROM bootloader) takes the peripheral down with it. Decide on purpose: a pull-up with the controller able to drive low keeps the peripheral configured ≈ LOGIC-5 warning planned
IO-14 Configuration, mode or address straps of a non-MCU part (PHY, hub, codec, sensor) floating where the datasheet requires a level error planned
IO-15 Open-drain interrupt or fault output without a pull-up error runs
IO-16 Pull-up and pull-down both on one net: an accidental divider, neither level clean error runs
IO-17 Pull value too weak for the leakage on the net (1 MΩ against ESD diode and input leakage) or too strong for the driver (1 kΩ on an open-drain output) warning planned
IO-18 Button without a debounce capacitor where the firmware assumes an RC filter suggestion planned