2017-03-06 10:09 PM
Hello
i have created my project with STM32 CubeMX and everything works like a charm, But i am stuck with the clock, i want to configure a RTC clock with Vbat pin to keep time running even if VDD power loss, apparently CubeMX configue only RTC, and doesn't configure Vbat pin or the register backup and ST doesn't provide any example for this.
Target MPU : STM32F051R8
I succeeded to get the RTC work with LSE but the time get lost when i remove the main power (VDD),
An example for RTC with register backup (vbat) for STM32F0 will be appreciated.
Thanks
Solved! Go to Solution.
2017-03-07 03:06 AM
Hi
majdoub.omar
,Please refer to RTC example under the STM32F0 firmware package:
STM32Cube_FW_F0_V1.7.0\Projects\STM32091C_EVAL\Examples\RTC\RTC_Calendar
-Nesrine-
2017-03-07 03:06 AM
Hi
majdoub.omar
,Please refer to RTC example under the STM32F0 firmware package:
STM32Cube_FW_F0_V1.7.0\Projects\STM32091C_EVAL\Examples\RTC\RTC_Calendar
-Nesrine-
2017-03-07 06:00 AM
Perfect,after a little modification in the code, the clock works like expected.
Thank you
ELMHIRI.Syrine
,great help !2017-03-07 07:35 AM
It is good to hear that it was solved.
If my suggest answers your question, please mark it as correct.