Page 1 of 1

RTC Calibration

Posted: Tue Jul 14, 2020 6:34 am
by masrodjie
I am using STM32F407VET6 https://github.com/mcauser/BLACK_F407VE
It has 32.768KHz RTC crystal and RTC battery.
I am using library https://github.com/stm32duino/STM32RTC
And set to LSE clock

Code: Select all

rtc.setClockSource(STM32RTC::LSE_CLOCK);
For a day it has offset a few seconds (about 5 seconds).
How to calibrate the RTC?

Re: RTC Calibration

Posted: Tue Jul 14, 2020 7:15 am
by fpiSTM
There is no calibration implemented in the lib.
You can try using the HAL directly.