I am using the nrf52832 soc, and have a requirement to run the device in low power mode and using the timer with a timeout value in days? how can I do so?
Sample code would be of great help.
I am using the nrf52832 soc, and have a requirement to run the device in low power mode and using the timer with a timeout value in days? how can I do so?
Sample code would be of great help.
Ok, sounds like you have it figured out. I just wanted to remind you that if you use a soft device you can't use RTC0, but RTC1 and RTC2 are available.
Yes we got it what we want. And yes we are using RTC2 as RTC0 and RTC1 are not available and being used by Softdevice.
Thank you.
I'm glad you were able so solve it!
Maybe you could convert the comment to an answer and mark it as correct, so that others can see that the issue has been resolved?
Best regards,
Joakim.
Why not just use an app_timer with a variable that you count up with in the handler. I believe (due to an SDK bug) ~4hrs was the maximum timeout you could set an RTC to. So after 6 timeouts you have your 24hrs elapsed
If I use app_timer, then at what frequency my soc will wake up? If app_timer is generic timer which wakes up every 10ms and if it counts for 24 hours on behalf of me, then it is not usefull to me as I want to sleep(soc must be sleeping) for max period of time.