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

NRF52 DFU ZIP Generation

Hi,

I want to be able to update the bootloader along with the application via OTA DFU. I know I can't generate both the application and bootloader in one image/zip so I have to make two different zip packages. 

I can't find any guide on how to do that. Please help out. 

Parents Reply
  • Hi ,

    The number of flash pages set aside for the bootloader cannot increase during DFU, so the new bootloader must be within the settings used for the old one. For the bootloader example the limitat is at 24 kB, which is 24576 bytes (0x6000 in hexadecimal.) I see from the zip packet that the size of your new bootloader is 24896 bytes (0x6140 in hexadecimal), so you are overshooting by 320 bytes.

    You might be able to get under 24 kB in size by increasing the optimization level (or set it to optimize for size.) If that is not enough, or you are already getting the smallest possible build, then you have to either remove something from the project or to set aside more space for the bootloader in the first place.

    Regards,
    Terje

Children
Related