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

Cannot update zip file after enabling dfu

Hi,

I am using sdk_17 and nrf52810. I have build a bootloader from the examples folder(examples/dfu/secure_bootloader/pca10040e_S112_ble) for my device. After flashing, the device enters into dfu mode. When I select the required zip package from my phone for updating, it simple just gets disconnected. I am using the proper private and public keys for creating the files.

Parents Reply
  • Hi,

    Thanks. I have tested your projects and see the same as you. Upgrade fails with an INSUFFICIENT RESOURCES error. This is unexpected, as the app clearly fits. I verified on a different project with a debug bootloader that putting data in the last available page before the app data reserved can work with the SDK 17 bootloader, and I do not see what is different in your case.

    Debugging it is a bit difficult as it is a tight fit and the bootloader is built with size optimization, so I have not made progress in understanding what causes this issue yet.

    Regarding reducing the reserved app data to 4 kB, this will not work if the application use FDS. FDS needs at least two pages - 8 kB (1 swap page and 1 data page).

Children
No Data
Related