This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SoftReset on sd_power_system_off();

For some reason I get a softreset instead of a sleepmode when I call sd_power_system_off();

Device: NRF52832
SDK: 12.2
S132 v 3.0

I do clear all gpiote interrupts before the sleep: nrf_gpiote_event_clear(NRF_GPIOTE_EVENTS_PORT);

Im not in debug mode.

Any idea what could be the reason for this?

Thanks!

  • FormerMember
    0 FormerMember

    Could you double check if there is not anything triggering a wake-up immediately after entering system off?

  • I disabled gpio interrupts, I never use adc, so not sure what else could wake it up?

  • FormerMember
    0 FormerMember

    To get to know exactly what is going on, you can disable the softdevice (sd_softdevice_disable() ) before entering system off. Then the chip can enter system off by setting then SYSTEMOFF register directly. Could you check if doing so change anything?

  • Found a problem...I used nrf_drv_gpiote_in_init()...and had to do nrf_drv_gpiote_in_uninit() before going to sleep. But was expecting this to be fixed with nrf_gpiote_event_clear(NRF_GPIOTE_EVENTS_PORT);