AnsweredAssumed Answered

RTC calibration (STM32L011G4)

Question asked by A L on Apr 11, 2018
Latest reply on Apr 16, 2018 by waclawek.jan

Hi there! - After looking around for quite a while, I'm still not exactly sure how to calibrate the RTC on my STM32L011G4 board. - For our project, we are using an external LSE crystal (32.768 kHz) for the RTC. - Do I need to use the RTC_SmoothCalib method (example for other MCU types), or is there another way to adjust the RTC accuracy? I have an accurate 1s clock source from a GPS module hooked up and counting rising edges with EXTI interrupt... That works nicely. But how could the number of LSE clock ticks happening between the external 1s pulses be counted to adjust the calibration registers? (RTC_CALR) There are only 2 timers, and no 32-bit one on the STM32L011... - Any help / hints would be appreciated. I'm simply overwhelmed by all the cryptic options described in the docs...

Outcomes