Hello,
I want to evaluate the ble_app_buttonless_dfu example (C:\nRF5SDK160098a08e\examples\ble_peripheral\ble_app_buttonless_dfu).
I am using the nRF5 SDK 16.0.0, IAR EWARM 7.80 and a nrf52833 board.
That’s what I am doing:
1. generate private key:
nrfutil keys generate private.key
2. generate public key:
nrfutil keys display --key pk --format code private.key --out_file dfu_public_key.c
3. copy dfu_public_key.c to C:\nRF5SDK160098a08e\examples\dfu
4. build the secure_bootloader with IAR using the following project:
secure_bootloader_ble_s132_pca10040.ewp to get: secure_bootloader_ble_s132_pca10040.hex
5. build the ble_app_buttonless_dfu application with IAR using the following project: ble_app_buttonless_dfu_pca10040_s132.ewp to get: ble_app_buttonless_dfu_pca10040_s132.hex
6. generate bootloader settings:
nrfutil settings generate --family NRF52 --application ble_app_buttonless_dfu_pca10040_s132.hex --application-version 1 --bootloader-version 0 --bl-settings-version 1 bootloader_setting.hex
7. merge application, bootloader, softdevice and bootloader-settings:
mergehex --merge s132_nrf52_7.0.1_softdevice.hex ble_app_buttonless_dfu_pca10040_s132.hex secure_bootloader_ble_s132_pca10040.hex bootloader_setting.hex --output my_ble_app_buttonless_dfu_without_bonds_s132_with_setting_page.hex
8. generate the zip file
nrfutil pkg generate --hw-version 52 --application-version 1 --application ble_app_buttonless_dfu_pca10040_s132.hex --sd-req 0xCB --key-file private.key my_ble_app_buttonless_dfu_without_bonds_s132.zip
8. use nRF Connect/ Programmer to flash my_ble_app_buttonless_dfu_without_bonds_s132_with_setting_page.hex into the nrf52833
9. Copy my_ble_app_buttonless_dfu_without_bonds_s132.zip to the smartphone and start the nRF Toolbox/DFU, SELECT DEVICE (DfuTarg), SELECT FILE (my_ble_app_buttonless_dfu_without_bonds_s132.zip) and start press UPLOAD. The upload process failed with the following message “INVALID OBJECT”
In the directory C:\nRF5SDK160098a08e\examples\dfu\secure_dfu_test_images\ble\nrf52832
I found 2 files that are working fine.
ble_app_buttonless_dfu_without_bonds_s132_with_setting_page.hex
ble_app_buttonless_dfu_without_bonds_s132.zip
What do I wrong ? How can I get a working ble_app_buttonless_dfu example out of the source code ?
See my hex- and zip File in the attachment.
Thank you for your support !
my_ble_app_buttonless_dfu_without_bonds_s132.zipmy_ble_app_buttonless_dfu_without_bonds_s132_with_setting_page.hex