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

Custom service with DFU, reinitialize

I have a custom service that on a event needs to be re-initialized. The custom profile also has DFU. It seems that when I re-initialize services_init() the micro crashes on the 2nd invocation of

err_code = ble_dfu_init(&m_dfus, &dfus_init);

I am using the following before re-initializing the BLE stack

err_code = sd_softdevice_disable();

Is there a way to de-init the DFU

UPDATE:

I'm getting err_code = 8 after the 2nd invocation of:

err_code = ble_conn_params_init(&cp_init);

So it may not be the DFU

Parents Reply Children
Related