Skip to content

LEAK-6 Pull-up on a line held low in sleep

Severity Status Implementation
suggestion planned hard, depends on NET-8, NET-7

Looks at. Pin levels per power state (NET-8), pulls.

What it catches. A pull-up on a line that some part holds low in a low-power state (or a pull-down on a line held high): the resistor carries V / R for the whole sleep.

Why it matters. Pull resistors are sized for the active state and forgotten for sleep. A 10 kΩ pull-up on an enable that the MCU holds low while asleep is 330 µA, ten times the sleep current of the MCU itself.

Example. A sensor's open-drain interrupt output with a 10 kΩ pull-up to 3.3 V, where the sensor asserts the interrupt (low) until read, and the MCU sleeps before reading it: 330 µA through the night. The internal pull-up of the MCU (~40 kΩ) or a 100 kΩ external one would do at that speed.

How to check. For each power state (NET-8), lines with a pull whose level in that state (driven by the MCU's sleep configuration or a device's known state, NET-7) is the opposite of the pull.

Fix. Raise the value, pull the other way, or change the firmware so the line rests at the pull's level.

References. AN4899 §5.1.3 "GPIO current consumption", §7.4 "Configure GPIO when entering low-power modes".