Hello everyone,
I'm using nRF52832 with SDK v17 (S132 Softdevice).
I don't know why, but I can't disable softdevice. I can enable it normally, but when i make use of nrf_sdh_disable_request(), the process just never ends (i debugged the code and the function never returns).
I think there is some problem with the buttonless_dfu_sdh_state_observer, as the code returns correctly with other observers, but don't understand why would this be a problem or how to solve it.
More exactly, the code enters this function:
static void buttonless_dfu_sdh_state_observer(nrf_sdh_state_evt_t state, void * p_context)
{
if (state == NRF_SDH_EVT_STATE_DISABLED)
{
// Softdevice was disabled before going into reset. Inform bootloader to skip CRC on next boot.
nrf_power_gpregret2_set(BOOTLOADER_DFU_SKIP_CRC);
//Go to system off.
nrf_pwr_mgmt_shutdown(NRF_PWR_MGMT_SHUTDOWN_GOTO_SYSOFF);
}
}
And there, inside, it goes to system off, so i can't do anyuthing after disabling the softdevice. I don't know if this is supposed to happen this way, or if i'm doing something wrong.
Thanks for reading.