Our project uses nRF51822 with SDK12.3.0 and s130. We are using app_timer_appsh.h and app_scheduler.h to make a "UTC timer" by counting a static variable each 1S timeout . Now we need implement power saver to project. Then we decide to use system ON low power mode ( this function sd_app_evt_wait() ) when event BLE_ADV_EVT_IDLE happen. After add power saver to project, "UTC timer" runs wrong. my question is:
+ Can app_timer timeout interrupt can wake system from __WFE() ?
+ when waking from __WFE, ram is retain or not ?
+ Is there any event from softdevice make we know that cpu is in idle time to push device to low power mode ?
Thank you so much!