2025-07-09 3:14 AM
Hi STM Community,
I am using a custom board based on the STM32F407VGT6 MCU. Currently, I’m not getting accurate RTC time when using the internal LSI clock (the drift is too high for my application). So I’ve decided to use an external 32.768 kHz crystal oscillator connected to PC14 (OSC32_IN) and PC15 (OSC32_OUT) as recommended.
Could you please clarify:
What are the exact hardware requirements (crystal specs, load capacitors, recommended ESR, drive level)?
How should I calculate and place the load capacitors to match the crystal?
Are there any layout best practices (trace length, shielding, keep-out) to get stable LSE operation?
Any recommended crystal part numbers that work well with STM32F4?
Any common issues or troubleshooting tips if the LSE does not start?
2025-07-09 6:02 AM
Hello,
You can refer to this article: How to select a compatible crystal and load capacitors for STM32 with layout guidelines
or for more details refer to the AN2867 "Guidelines for oscillator design on STM8AF/AL/S and STM32 MCUs/MPUs"
Also read this article on How to calibrate the STM32's real-time clock (RTC)