BAT-4 Primary cell with a path that can charge it¶
| Severity | Status | Implementation |
|---|---|---|
| error | planned | mid, depends on NET-5, NET-10, CFG-2 |
Looks at. Battery parts and their chemistry, the paths from rails or chargers to the cell.
What it catches. A primary (non-rechargeable) cell, a lithium coin cell or alkaline cells, connected so that current can flow into it: wired straight to a rail it shares with another supply, diode-ORed with only the rail's diode, or on a charger.
Why it matters. Primary cells are not built to take charge current. A lithium coin cell may take on the order of a microampere of reverse current; more generates gas inside the cell, which can then leak, swell or burst. The fault only shows after weeks of operation, in the field.
Example. An RTC backup with a CR2032 whose positive terminal joins +3V3 through one diode on the 3.3 V side only: whenever the board is on, 3.3 V drives current into the 3.0 V cell. Energizer's CR2032 sheet allows 1 µA of reverse charge; Maxell's warnings ask for a diode against charging plus a protective resistor that limits the current if the diode fails. An MCU backup pin with its own internal power switch (STM32 VBAT) is a different case: there the part does the switching.
How to check. Find battery parts and their chemistry (MPN or project, CFG-2); follow every path from the cell's positive terminal to a rail or a charger (NET-5, through resistors and diodes: NET-10); each path must have a diode blocking current into the cell, or end at a pin the library marks as a backup-supply input.
Fix. A low-leakage diode (silicon or low-reverse-current Schottky) in series with the cell plus a protective resistor, or a part with a dedicated backup input; never a charger on a primary cell.
References. CR2032 datasheet (Max Rev Charge 1 µA); Maxell CR warnings ("Never charge", diodes and protective resistor in memory and RTC backup); Wikipedia, Button cell.