Hi,
I was in contact with support already but we couldn't find a solution, I am hoping someone here might know something we might have overlooked:
According to the DA14531 datasheet, the timer power domain (PD_TIM) can be kept alive during deep sleep mode, which means that the RTC can be kept running. Upon a button press, the device should wake up from deep sleep and RTC date/time should be persisted and not lost (it's always reset/initialized to 0 after coming out of deep sleep).
The idea is to set the device date/time once during manufacturing of the device (and always re-sync whenever there is a connection to an app), but never not to know date/time at all.
Does anyone know how to keep RTC date/time information when waking up from deep sleep?
Many thanks and best regards,
Josef
Hi Josef,
Thanks for your question online. Let me check this and I’ll get back to you.
Thanks, PM_Dialog
Hi Josef,
Apologies for the delay and thanks for posting online. At this moment this is not possible – if we found anything further on this, we will post it on our public forums.
If you would like to keep the RTC values when the chip wakes-up, you could use the extended sleep mode. In this mode, all the RAM blocks are retained (default configuration), so the registers are not reset.
When the DA14531 wakes up, the application code will start executing immediately and no data will be lost.
The SDK6.0.14.1114 provides 2 examples to understand how to use the extended sleep mode and how to wake-up the DA4531 too.
projects\target_apps\ble_examples\prox_reporter\Keil_5
projects\target_apps\ble_examples\ble_app_sleepmode\Keil_5
Thanks, PM_Dialog
谢谢,会尝试!Br, J