Hi,
I want to put my nrf52832 into the low-power mode. I select SYSTEM ON with low-power (instead of SYSTEM OFF) in order to overcome reset. In order to do it I call sd_app_evt_wait(), but after that device immediately wakeup. Before calling this function, I've disabled all interrupts, beside gpiote. I want to use gpio event to wakeup. How to understand, what event causing wake-up?
Also, I try to make some debug, to find event source. I use this code:
printf("evt id before = %d\n", sd_evt_get(&evt_id)); sd_app_evt_wait(); printf("evt id after = %d\n", sd_evt_get(&evt_id));
In terminal I obtain:
evt id before = 5
evt id after = 5
evt id = 5 it is NRF_EVT_RADIO_CANCELED
So, before sd_app_evt_wait(), I call sd_nvic_ClearPendingIRQ(RADIO_IRQn), but it is not help.
I use SDK 15.2, Softdevice s132 6.1.0