I'm using the code below to enter lp mode;waiting for rtc wake up interrupt to wake up the mcu;
Now I need the app_timer module to do more things ,so I add app_timer lib ,the app timer works good,
but I notice when the timer wakes up,the mcu can't wake up,after processing the app_timer handler ,it is still in lp mode,
but the next time,it will wake the mcu to exit lp mode,then again fail to wake up.
When I change the code to just one WFI function to enter lp mode ,that works good ,it will wake the mcu every time as I want.
So what's the difference between these,how this happen?
I'm not using the lastest sdk ,also not using the softdevice.
__WFI; __SEV; __WFI;
__WFI
Thanks!