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

Nrf52 with softdevice doesn't exit system off

Hi

I am trying to put nrf52 device to system off mode, and wake up by button press.

If I do not enable the softdevice everything works fine, and button press wakes up the device. But if I enable the softdevice then button press has no affect.

here is my code:

uint32_t err;

// config wakeup button
nrf_gpio_cfg_sense_input(BUTTON_GPIO, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);

// enable softdevice
err = sd_softdevice_enable(NRF_CLOCK_LFCLKSRC_RC_250_PPM_1000MS_CALIBRATION,    softdevice_assertion_handler1);

// enter system off state
sd_power_system_off();

I am using nRF52832 chip, revision Rev 1 (QFAA-B00), SDK 0.9.1, softdevice s132_nrf52_1.0.0-3.alpha_softdevice

please advise

Yaron

Related