STM32F051 RTC Vbat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-07 3: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-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-07 3: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-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-07 6:00 AM
Perfect,after a little modification in the code, the clock works like expected.
Thank you
ELMHIRI.Syrine
,great help !- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-07 7:35 AM
It is good to hear that it was solved.
If my suggest answers your question, please mark it as correct.
