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 not use SDK 0.9.1 and SoftDevice alpha, these are outdated and not production versions. You should use the newest SDK 12 and SoftDevice S132 v3.0.0. With this SDK and SD it should work.

    When I tested with SDK 0.9.1 it did not work for me neither, I got a strange error code. I am not sure why you get this error, but if you change

    err = sd_softdevice_enable(NRF_CLOCK_LFCLKSRC_RC_250_PPM_1000MS_CALIBRATION,    softdevice_assertion_handler1);
    

    with

    SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_1000MS_CALIBRATION, NULL);
    

    It should work.

Reply
  • You should not use SDK 0.9.1 and SoftDevice alpha, these are outdated and not production versions. You should use the newest SDK 12 and SoftDevice S132 v3.0.0. With this SDK and SD it should work.

    When I tested with SDK 0.9.1 it did not work for me neither, I got a strange error code. I am not sure why you get this error, but if you change

    err = sd_softdevice_enable(NRF_CLOCK_LFCLKSRC_RC_250_PPM_1000MS_CALIBRATION,    softdevice_assertion_handler1);
    

    with

    SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_1000MS_CALIBRATION, NULL);
    

    It should work.

Children
No Data
Related