Hi
Problem description:
Disable the softdevice before writing uicr. After uicr is written, it fails to enable the softdevice again.
Can't softdevice be enabled again after uicr is written?
Hi
Problem description:
Disable the softdevice before writing uicr. After uicr is written, it fails to enable the softdevice again.
Can't softdevice be enabled again after uicr is written?
Hi,
Disable the softdevice before writing uicr. After uicr is written, it fails to enable the softdevice again.
You should remember that when you initialize the SoftDevice the second time, all configuration is lost. So you also need to configure everything SoftDevice related again, and that means that you need to do all or most of the work done by your preceding functions also ( ble_stack_init(), gap_params_init(), gatt_init(), services_init(), advertising_init(), and conn_params_init()). As mentioned, there are a number of things, and the most sensible way to do this is probably to do the obvious things (that everything SoftDevice/BLE related needs to be configured again), and then continue to do it gradually while debugging, fixing the errors one by one until it works.
An alternative solution could be to simply reset after writing to the UICR. Also, see this post.
Regards,
Amanda
Hi,
Disable the softdevice before writing uicr. After uicr is written, it fails to enable the softdevice again.
You should remember that when you initialize the SoftDevice the second time, all configuration is lost. So you also need to configure everything SoftDevice related again, and that means that you need to do all or most of the work done by your preceding functions also ( ble_stack_init(), gap_params_init(), gatt_init(), services_init(), advertising_init(), and conn_params_init()). As mentioned, there are a number of things, and the most sensible way to do this is probably to do the obvious things (that everything SoftDevice/BLE related needs to be configured again), and then continue to do it gradually while debugging, fixing the errors one by one until it works.
An alternative solution could be to simply reset after writing to the UICR. Also, see this post.
Regards,
Amanda