This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DFU not preserving app data

Hi all, I have made some modifications to the bootloader example project (dfu_dual_bank_ble, s110) to get a bootloader that meets my requirements. It is working ok, I can upgrade the firmware over the air but application data does not get preserved. In the bootloader project I have made this change:

#define DFU_APP_DATA_RESERVED 0x0400

So to my understanding 1K of flash destinated to the application data should be preserved when upgrading.

The app that gets upgraded just uses 32B of flash to store the device name but everytime that I do an OTA upgrade the device name gets erased. What is it failing here? In the app I do the saving properly because the name is preserved across power cycles.

Thanks in advance

Regards

Parents
  • Forgot to mention that I have incresed the size reserved for the bootloader as I had added some functionality but I have made the pertinent changes in BOOTLOADER_REGION_START and in the project properties, as stated in the documentation.

Reply
  • Forgot to mention that I have incresed the size reserved for the bootloader as I had added some functionality but I have made the pertinent changes in BOOTLOADER_REGION_START and in the project properties, as stated in the documentation.

Children
No Data
Related