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

Bootloader-Only update over BLE DFU

I am running SDK 14.2.0 and trying to update only the bootloader.  Very minor changes were made, resulting in no size increase.

I ran nrfutil (V3.4.0) using the following command:

nrfutil pkg generate --hw-version 52 --bootloader-version 3 --bootloader Bootloader.hex --sd-req 0x9d --key-file Signing\private.key Bootloader-Pack
age.zip

When I try to update, I get a quick error just after the dfu starts:

DFU failed with error: When writing 'EXECUTE' command to Control Point Characteristic of DFU Target: Operation code 4 (EXECUTE) failed on DFU Target.  Result code 4 (INSUFFICIENT_RESOURCES).

I think this means there is not enough room to perform the update, but the bootloader is within the range allocated and merges/works fine when loaded directly using a j-link.

Any ideas?

Parents
  • Hello,

     

    When you are updating using j-link, you are reprogramming the device using the programming chip. When you use the bootloader to update any firmware, the chip must do this itself. Therefore, it will not delete the old bootloader before the new one is verified. Hence, you need to have space for 2x bootloader for the chip to accept it. The reason for this is that the bootloader is needed to transfer the packet. 

    Are you sure there is enough room in the ram/flash to store the new bootloader?

     

    Best regards,

    Edvin

Reply
  • Hello,

     

    When you are updating using j-link, you are reprogramming the device using the programming chip. When you use the bootloader to update any firmware, the chip must do this itself. Therefore, it will not delete the old bootloader before the new one is verified. Hence, you need to have space for 2x bootloader for the chip to accept it. The reason for this is that the bootloader is needed to transfer the packet. 

    Are you sure there is enough room in the ram/flash to store the new bootloader?

     

    Best regards,

    Edvin

Children
Related