This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Low-Power Timekeeping on nRF52

Hello,

I'd like to keep an epoch time on the nRF52 by incrementing a 64-bit second counter in RAM by using app_timer once per minute (happy with this granularity). Between increments I'd like to be in the lowest-possible power state.

My understanding is that this is SYSTEM_ON in the Low Power Sub-mode, with app_timer using the RTC peripheral to trigger wake-ups. Where I'm unclear is in relation to RAM retention and the behaviour of app_timer in this situation.

Are my assumptions correct? Will RAM be retained or do I have to do something special here?

Related