Hi
I am using nrRF52832 S132, I have a timer interrupt which wakes up the processor from sleep periodically.
In that timeout interrupt even handler, I queue and event which I wish to be executed from main loop using the scheduler (I don't want to execute too much code from the interrupt)
My problem is that after waking and queuing the event, the processor just goes back to sleep, it handles the interrupt only after the next cyclic wake-up.
For example, the timeout interrupt occurs each 1sec, but the scheduler only calls the event each 2sec.
I also tried to implement the same concept without the scheduler (using a simple flag set by the timer interrupt and checked in the main loop)
Why would something like that happen? Is there a way to prevent the processor from going back to sleep until I allow it again?
Thanks!