Skip to content

LEAK-3 NC pins: set them to analog or pull them

Severity Status Implementation
suggestion planned mid, depends on NET-7

Looks at. Which pins are GPIOs (pin roles), the MCU's reset state.

What it catches. Unconnected GPIO pins of MCUs, FPGAs and IO expanders, listed with a note on what the firmware (or the board) must do with them.

Why it matters. A floating digital input sits somewhere between the thresholds, both input transistors conduct a little, and the pin draws current and may toggle with noise. Some MCUs reset their pins to analog mode (input buffer off, no leak), others to floating input, where every unused pin leaks until firmware changes it. Which one decides whether the board needs firmware care or nothing.

Example. An STM32F103 whose pins come out of reset as floating inputs: twenty unused pins left so in a low-power product add measurable current in Stop mode. The STM32G0 on B153A resets its pins to analog, so its spares cost nothing until firmware touches them.

How to check. Unconnected pins of IO role (NET-7) per part, with the part's reset state from the part data.

Fix. Configure unused pins as analog (or output low) in firmware; for parts without an analog mode, enable an internal pull or tie them through a resistor.

References. AN4899 §6.1 "Avoid floating unused pin", §7.1 "Configure unused GPIO input as analog input"; RM0008 §9.1.1 (STM32F1 pins in Input Floating mode during and after reset); SCBA004 §1.