I dig a bit more and found some examples on github about using lsi to autocalibrate the rtc https://github.com/g4lvanix/STM32F4-workarea/tree/master/Project/STM32F4xx_StdPeriph_Examples/RTC/RTC_LSI
@asez73 started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I dig a bit more and found some examples on github about using lsi to autocalibrate the rtc
https://github.com/g4lvanix/STM32F4-workarea/tree/master/Project/STM32F4xx_StdPeriph_Examples/RTC/RTC_LSI