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 Children
  • oops.. my mistake. Complete project->nRF5_SDK_17.0.2_.zip.And can you tell me the use of Application data area present above the application layer. By default it takes 8kB from the flash. I tried to reduce it to 4kB. Then I was able to update the application zip file, but after the update the device is not responding. From the nrf document I came to know that the application data size should be a multiple of the flash page size, which is 4kB.

  • go to->E:~\nRF5_SDK_17.0.2_\examples\dfu\secure_bootloader\pca10040e_s112_ble\ses for bootloader project.

    And go to->~\nRF5_SDK_17.0.2_\examples\ble_peripheral\ble_app_buttonless_dfu\pca10040e\s112\ses for application project file.

  • 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).

Related