- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I lose my date time when VDD power lost. We do have a battery connected to VBAT.
I think we are missing some configuration for enabling battery back up.
We are doing the following:
[..] To enable access to the RTC Domain and RTC registers, proceed as follows:
Enable the Power Controller (PWR) APB1 interface clock using the
RCC_APB1PeriphClockCmd() function.
Enable access to RTC domain using the PWR_BackupAccessCmd() function.
Select the RTC clock source using the RCC_RTCCLKConfig() function.
Enable RTC Clock using the RCC_RTCCLKCmd() function.
Is there more we need to do?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Raktim Roy wrote:
With just WICED_ENABLE_MCU_RTC defined, in my setup I am able to set up the time. Please check the same in your setup and update the thread.
Do you notice the platform_rtc_init() always set the time to default_rtc_time?
i.e. Everytime you reboot or reset the device, the rtc time is reset to wrong time.
I reported it very long time ago in