I am using nrf52832, and I want to use SYSTEM ON Sleep.
Also , my wake up sourses are timer based, and also GPIO interrupt based.
But I observed that the device cannot go to sleep for more than approximately 4 minutes.
Code:
I am using nrf52832, and I want to use SYSTEM ON Sleep.
Also , my wake up sourses are timer based, and also GPIO interrupt based.
But I observed that the device cannot go to sleep for more than approximately 4 minutes.
Code:
Hello,
Yes, As you suggested, I tried to use k_timer related functions alone, and the _WFI related issues are not seen anymore.
But, earlier, my device was running on 3uA during sleep(in _WFI).
But after making these changes, the device is taking 6.2uA in sleep. Which is not acceptable, as this is a low power device.
Please look at the samples that I shared with you for an event/ISR based approach.
The reason why you are seeing a higher consumption is because you are polling every 100 ms:
k_msleep(100);
Kind regards,
Håkon
You might find this code useful on ascertaining pending interrupts: how-do-i-read-the-event-register