RTC Calibration

Working libraries, libraries being ported and related hardware
Post Reply
masrodjie
Posts: 1
Joined: Tue Jul 14, 2020 6:22 am

RTC Calibration

Post 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?
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: RTC Calibration

Post by fpiSTM »

There is no calibration implemented in the lib.
You can try using the HAL directly.
Post Reply

Return to “Libraries & Hardware”