I am using the following code to enable the softdevice s130, which seems to run successfully:
err_code = softdevice_enable(&ble_enable_params); APP_ERROR_CHECK(err_code); // Subscribe for BLE events. err_code = softdevice_ble_evt_handler_set(ble_evt_dispatch); APP_ERROR_CHECK(err_code); err_code = softdevice_sys_evt_handler_set(sys_evt_dispatch); APP_ERROR_CHECK(err_code);
My sys_evt_dispatch then tries to filter out FLASH events, but never gets called:
void sys_evt_dispatch(uint32_t sys_evt) { NRF_LOG_WARNING("evt is flash: %d\n", sys_evt == NRF_EVT_FLASH_OPERATION_SUCCESS || sys_evt == NRF_EVT_FLASH_OPERATION_ERROR); storage_on_sys_evt(sys_evt); ble_advertising_on_sys_evt(sys_evt); }
So, I never receive the