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

Parents
  • You should update the SoftDevice and the SDK sooner or later so why not do it know? SDK 0.9.1 and SD S132 v1 alpha has a lot of bugs that are fixed in the later versions, and in addition they were designed for the Engineering A version of the chip.

    If you want to test this now you can use SOFTDEVICE_HANDLER_INIT(..) instead. It will call sd_softdevice_enable(..) and in addition set up buffers and enable the ble event interrupt. If this does not work let me know.

Reply
  • You should update the SoftDevice and the SDK sooner or later so why not do it know? SDK 0.9.1 and SD S132 v1 alpha has a lot of bugs that are fixed in the later versions, and in addition they were designed for the Engineering A version of the chip.

    If you want to test this now you can use SOFTDEVICE_HANDLER_INIT(..) instead. It will call sd_softdevice_enable(..) and in addition set up buffers and enable the ble event interrupt. If this does not work let me know.

Children
No Data
Related