nRF5 SDK v11.0.0
Creating a DFU bootloader
This information applies to the following SoftDevices: S130, S132, S332

The SDK provides some example projects that implement a bootloader with Device Firmware Update (DFU) capabilities, which can receive a firmware image and copy it to the nRF5 IC to replace the current bootloader, SoftDevice, or application.

The examples support the following Device Firmware Updates:

Before updating the device firmware, make sure that the S130 or S132 SoftDevice v2.0.0-7.alpha or later is installed on the IC. For nRF51 ICs, the following prerequisites must be fulfilled as well:

If the device has an existing application when performing a SoftDevice update, the application is erased. Transferring a bootloader or application using dual-bank mode (see Dual-bank and single-bank updates) preserves the current image until the new image is copied, validated, and activated.

To get started, program and test one of the provided example projects. Running the BLE bootloader example describes the process for the default example, which uses BLE transport. Alternatively, you can run an example that uses serial transport (see Running the serial bootloader example).

The SDK provides sample images that you can use to test the DFU process. Creating an image file explains how you can convert your own image into the correct format.

The examples include a method for ensuring that the uploaded image is valid. See Safety-checking the image for information on how to ensure that only valid images are accepted.

If you encounter any errors, check the Troubleshooting section.

Documentation feedback | Developer Zone | Updated