Skip to content

CLK-4 Crystal pins used as IO: warn about low drive strength

Severity Status Implementation
warning planned mid, depends on NET-12

Looks at. Which pins are oscillator pins, their drive limits.

What it catches. Oscillator pins (OSC32_IN/OUT, PC14/PC15, XIN/XOUT) used as GPIO for a load that needs current or speed.

Why it matters. On STM32 the LSE pins and PC13 sit in the backup (VBAT) domain, supplied through a switch that limits them to 3 mA and low speed even with VDD present (AN4899 §6.8). Toggling PC13 also disturbs the LSE (AN2867 §7.4). An LED or a fast signal on these pins gives a weak level and a drifting RTC.

Example. An LED at 10 mA on PC14 because the board has no 32 kHz crystal: the LED is dim, and the pin's supply switch is overloaded.

How to check. Pins with an oscillator function (NET-12) used as GPIO; estimate the load (LED, pull to the other rail) against the pin's limit.

Fix. Use these pins for slow inputs; move LEDs and fast signals elsewhere.

References. AN4899 §6.8; AN2867 §7.4.