Hello Team,
I am using nrf54l15 dk for the development. In this, I am using k_sleep to put the device in system-on sleep mode. Using this, I have achieved the sleep current of 4 micro Amps with all RAM enabled. But I have a use case where I want to periodically wake the device from sleep mode. To wake up the device periodically, I configured the RTC by referring to the "Counter RTC Driver Sample" sample code from NCS v2.9.0, which provides an example of an alarm application. It sets an alarm with the desired time and sets a wake-up flag at alarm expiry. This is working as expected, but after configuring RTC sleep current is drastically increased from 4 micro Amps to 149 micro Amps, to reduce the sleep current, I tried to disable the RTC before putting the device in sleep mode, by disabling the RTC current is reduced to 4 micro Amps but here device will not wake up in a sleep mode. Below is the code snippet for the same.
I am continuously checking the value of timer_wakeup, if it is 1, the device will wake up.
Can you please help to configure the RTC with a reduced sleep current?
Along with this I came to know about GRTC but couldn't find the sample code for it.
The end goal is to wake up the device from sleep periodically. Could you help us with this query?
Thank you,
Payal