Skip to content

CONN-2 GPIOs straight to connectors without series protection

Severity Status Implementation
suggestion runs in better_erc easy, depends on netlist

Data it needs: graph, part classes, rails.

Looks at. Connector pins, IC pins on the same net, series resistors.

What it catches. An MCU or logic pin on the same net as a connector pin with no series resistor between them (protection diodes alone do not count); on long or off-board lines a series resistor of about 1 kΩ, or a buffer, is the usual minimum.

Why it matters. A TVS clamps fast transients, but it clamps at its breakdown voltage, above the pin's supply: a sustained overvoltage (a short to a neighbouring 12 V pin, a miswired cable, the other board powered first) then drives current straight into the pin's own clamp diodes. MCUs allow only a few milliamps of injected current: the STM32G0B1 allows −5 mA per pin, no positive injection at all on its FT pins and 25 mA summed over the chip (DS13560 Table 22). A series resistor turns a volt of overdrive into a small, legal current and also slows the edges that leave the board.

Example. On B153A the USB-C plug pins A2 and B2 (TX1+, TX2+) go straight to PB13 and PB5 with an ESD array only, no series resistor and no OVP. A damaged cable or a bit of debris that bridges them to VBUS (up to 20 V once PD has negotiated) puts that voltage on the MCU pin with only the ESD array to stop it. On the same board the header lines IO7-IO10 have 255 Ω, a 5V6 Zener on the MCU side and a 12 V TVS at the connector: a 12 V fault there drives about 25 mA into the Zener, not into the MCU.

How to check. Pins of ICs (MCU, logic, transceiver logic side) on a net that also has a connector pin, with no resistor, ferrite or buffer between them (find_chains). Pins of interfaces that cannot take a series resistor (USB, Ethernet, high-speed lanes) are exempt by net class.

Fix. 100 Ω-1 kΩ in series near the connector, behind the TVS; size it from the worst fault voltage and the pin's injection limit, and check it against the signal's speed and the receiver's input current. A buffer or a translator with Ioff for lines that need drive.

References. DS13560 Table 22 (IINJ(PIN), ∑IINJ(PIN)); SSZB130 §2.1; Ott §15.6 (hardening sensitive circuits); B153A hardware notes §5 (plug A2/B2).

Test schematics

Each schematic below is in test_schematics/sources. The block under it is what berc check --only CONN-2 reports on it.

conn-2_gpio_protection

The test schematic conn-2_gpio_protection The test schematic conn-2_gpio_protection

  suggestion CONN-2 #1w7    /IO_A goes straight from J1.2 (Pin_2) to U1.3 (PA0) with nothing in series: a fault on the cable drives the pin's clamp diodes
                            net /IO_A, pin J1.2, pin U1.3
                            fix: 100 Ω-1 kΩ in series near the connector, behind the TVS, sized from the worst fault voltage and the pin's injection limit; a buffer with Ioff for lines that need drive
  suggestion CONN-2 #h9v    /IO_C goes straight from J1.4 (Pin_4) to U1.5 (PA2) with nothing in series: a fault on the cable drives the pin's clamp diodes
                            net /IO_C, pin J1.4, pin U1.5
                            fix: 100 Ω-1 kΩ in series near the connector, behind the TVS, sized from the worst fault voltage and the pin's injection limit; a buffer with Ioff for lines that need drive

CONN-2 also fires on the test schematics of other checks: clk-14_push_pull_reset, conn-16_floating_shell, conn-17_look_alike_pinouts, dbg-17_swd_without_reset, dbg-1_swd_not_connected, dbg-2_swd_series_resistors, dbg-3_no_leds, i2c-7_segments, logic-7_mcu_switched_resistor, mem-1_sd_pull_ups, mem-3_clk_and_detect_pulls, mux-1_swapped_signals, test-5_bring_up_test_points, wire-1_single_pin_nets.