I have been trying @nagelc code with a lot of debug prints and I think that my device is stuck after
MyHwNRF5.cpp
inline void hwSleep(void)
{ CORE_DEBUG(PSTR("In hwSleep, 345\n"));
__WFE();
__SEV();
__WFE();
CORE_DEBUG(PSTR("In hwSleep, 351\n"));
}
int8_t hwSleep(uint32_t ms)
{
hwSleepPrepare(ms);
while (nrf5_rtc_event_triggered == false) {
hwSleep();
}
CORE_DEBUG(PSTR("In hwSleep, 357\n"));
hwSleepEnd(ms);
return MY_WAKE_UP_BY_TIMER;
}
And I will not go to hwSleepEnd
11274 MCO:SLP:MS=5000,SMS=0,I1=255,M1=255,I2=255,M2=255
11280 TSF:TDI:TPD
11281 After transport Disable
11284 Before hwSleep
11286 In hwSleepPrepare, 287
11289 In hwSleepPrepare,300
11291 In hwSleep, 345