![]() |
nRF5 SDK
v14.0.0
|
Choose documentation: | nRF5 SDK | S132 SoftDevice API | S140 SoftDevice API | S212 SoftDevice API |
Important: Before you run this example, make sure to program the SoftDevice.
The Buttonless Secure DFU Service Template Application is an example that shows the functionality of running a Buttonless Device Firmware Update using the hardware delivered in the nRF5 Development Kit.
You can configure this template project to either support bonds or not. If the template project is configured to support bonds, the application will exchange bond information with the bootloader, guaranteeing that only bonded devices are allowed to perform DFU operations.
For more information on the Buttonless Secure DFU Service, see Buttonless Secure DFU Service.
To enable or disable the support of bonds, modify the configuration parameters in the sdk_config
file. For details on editing the SDK configurations, see SDK configuration header file.
When the application starts, the Buttonless Secure DFU Service is initialized.
You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\ble_peripheral\ble_app_buttonless_dfu
Testing is done by using a pre-generated hex file that contains the following
The hex files available for testing have been compiled with or without bond support.
Test the Buttonless DFU Template Application with the nRF Toolbox app, which is available on both iOS (App Store) and Android (Google Play). You can also test the application with nRF Connect by performing the following steps:
dfu_test_buttonless_secure_dfu_with_bonds_s132.hex
or dfu_test_buttonless_secure_dfu_with_bonds_s140.hex
using nrfjprog.Secure DFU service
is shown in the connected device. Expand the service and observe that the characteristic named Buttonless Secure DFU with bonds
is present. insert_name_s132.zip
or insert_name_s140.zip
click Start DFU
..dfu_test_buttonless_secure_dfu_without_bonds_s132.hex
or dfu_test_buttonless_secure_dfu_without_bonds_s140.hex
using nrfjprog.Secure DFU service
is shown in the connected device. Expand the service and observe that the characteristic named Buttonless Secure DFU without bonds
is present. insert_name_s132.zip
or insert_name_s140.zip
and click Start DFU
.