How to properly implement external 32.768 kHz crystal for accurate RTC on STM32F407VGT6?
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?
