This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52832 bootloader upgrade issue

The chip we use is nrf52832 and the SDK is nrf5_ SDK_ 15.3.0_ 59ac345,
Can we use nrf Toolbox (version: 2.7.2) to upgrade bootloader?

1. How to make bootloader upgrade package? Is there any SOP for bootloader upgrade

2. Does the application or bootloader need to be changed in the code

Parents
  • Hello,

    Yes, you should be able to upgrade the bootloader. Are you seeing any errors?

    1. You can generate a bootloader upgrade package with nrfutil similiar do how you would to it for other type of updates. The difference is that you must provide the --bootloader and --bootloader-version argument:

    nrfutil pkg generate --hw-version 52 --app-boot-validation VALIDATE_GENERATED_CRC ^
    --bootloader-version VERSION ^
    --bootloader BOOTLOADER.hex ^
    --sd-req 0xB7 ^
    --key-file PRIVATE.pem dfu_bootloader.zip

    2. The new bootloader image will not be swapped with the existing bootloader if they are 100 % identical. So the new bootloader must have some changes to get updated. And the bootloader can usually be updated separately without requiring an update of the application.

  • Hello:

    OK,Got it.and also we want to know how to make BL + SD + APP package?

    Tks!

Reply Children
  • Hello,

    You can create a complete SD+BL+APP DFU package by adding the nrfutil arguments shown in the example snippet below. You may also run "nrfutil pkg generate --help" to get a help description for all of the command options.

    nrfutil pkg generate --hw-version 52 --app-boot-validation VALIDATE_GENERATED_CRC ^
    --bootloader-version VERSION ^
    --bootloader BOOTLOADER.hex ^
    --softdevice SOFTDEVICE.hex ^
    --application APPLICATION.hex ^
    --application-version-string "1.0.0" ^
    --sd-req <insert SD FWID required for the SD+BL part of the update> ^
    --sd-id  <insert the new SD FWID required for the application update> ^
    --key-file PRIVATE.pem dfu_complete.zip

Related