STM31L431 RTC calibration with LSI
I need to calibrate STM32l431 RTC in software for using LSI clock.
When I compare STM32 RTC with GPS reference I get the following
GPS 1759492828 1759493307 => RTC 1759500022 1759500494
Diff GPS: 479 seconds
Diff STM32: 472 seconds
=> 7 seconds = 1.48% difference and
Prefered frequency to RTC 32473
I thought smooth calibration could be used for this kind of calibration but it seems it can only calibrate small changes for crystal.
Any ideas how this can be done? I cannot modify PCB for external pulses, I need to correct in software.
Clock will be syncronised 8, 16 and 24 hours interval, so accuracy does not need to be like a crystal.
