This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

sd130 sdk 12.0.1 DFU problem

Hello,

I have some problem in DFU. I followed Nordic tutorial but I failed. Would you let me know what’s wrong?

  1. 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

  1. Install micro-ecc. This library is required for the Cryptography library, which is used in the BLE Secure DFU Bootloader example.

  2. Compile the bootloader.

  3. 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

  4. Program the HEX file. See Programming the bootloader. --> I programmed this and SD130 into PCA 10028 board.

  5. 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.

Related