There is a product replacement bootloader program

  • Description of the requirements

SDK:15.0.0

MCU:NRF52840

I currently have a product that is already in production, and I need to replace its boot program, and the new boot mainly replaces the name of the broadcast and the content of const uint8_t pk[64].

  • Procedure

I have prepared the following:

New boot program with the name: new_boot.hex 、new_private.key。

Private key for the old product: The name is :old_private.key。

I created the zip package using the following command

./nrfutil nrf5sdk-tools pkg generate --hw-version 52 --sd-req 0xA9 --bootloader-version 2 --bootloader ./new_boot.hex --key-file ./old_private.key boot.zip

I used nRF Toolbox to upgrade the device, and the upgrade can be carried out normally, but the program cannot be started normally, and after debugging, I can see that it has entered HardFault。

  • issue
    1. Why does this operation enter the HardFault? How to fix it?
Related