Hello,
I have some problem in DFU. I followed Nordic tutorial but I failed. Would you let me know what’s wrong?
- If you want to create your own firmware package for testing:
a. Create a private key for the example. See Working with keys for instructions.
b. Create a public key in code format and store it in a file named dfu_public_key.c. See Working with keys for instructions.
c. Copy the dfu_public_key.c file to the project folder, replacing the existing file. --> I compiled bootloader_secure using this key.
d. Prepare a firmware package (in zip format) that you want to use. See Creating a firmware package for instructions. --> I made package using priv.pem(made in a) and experimental_ble_buttonless_dfu hex. --> Command : nrfutil pkg generate --hw-version 1 --sd-req 0x87 -- application-version 4 --application app.hex --key-file priv.pem app_dfu_package.zip
e. Generate a HEX file that contains the Bootloader settings page. See the nrfutil documentation for instructions. --> command : nrfutil settings generate --family NRF51 --application app.hex --application- version 3 --bootloader-version 2 --bl-settings-version settings.hex
-
Install micro-ecc. This library is required for the Cryptography library, which is used in the BLE Secure DFU Bootloader example.
-
Compile the bootloader.
-
If you generated a bootloader settings HEX file, use mergehex (part of the nRF5x Command Line Tools, see the mergehex documentation) to merge the bootloader HEX file and the bootloader settings HEX file. --> I merged bootloader HEX file and the bootloader settings HEX file
-
Program the HEX file. See Programming the bootloader. --> I programmed this and SD130 into PCA 10028 board.
-
I tried to DFU test package in SDK using my phone but failed to upload. --> I got a fail message - upload failed : unknown 8202.
That's all.