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

Flash Data Storage: Defining two Instances or flash segments

Hello,

We want to use the flash to store two types of information: application configuration settings (which should be protected during DFU) and temporary data (which can be erased during DFU). Since the bootloader sdk_config settings specifies a number of pages to protect during DFU, we will need to store the temporary data in a different flash segment from the application configuration setting. Is it possible to declare two different segments (or instances) of the Flash Data Storage; one for application data, and one for temporary data?

We have found an another user who also ran into this issue, but there was no resolution: https://devzone.nordicsemi.com/f/nordic-q-a/51225/using-fds-flash-storage-for-user-settings-as-well-as-for-dfu/205718#205718 

Thank you.

Parents
  • Hello,

    FDS does not support multiple instances, unfortunately. Would it be an option to use fstorage for managing the configuration data and FDS for the temporary data? Newer versions of FDS allows you to reserve pages to other modules through the FDS_VIRTUAL_PAGES_RESERVED setting.

    And please be aware that allowing overwrite of the FDS section during DFU may lead to problems with re-initialization of the file system when the new application starts up. To avoid problems with this I would recommend that you add a mechanism that fully erases FDS flash pages after the DFU is complete.

Reply
  • Hello,

    FDS does not support multiple instances, unfortunately. Would it be an option to use fstorage for managing the configuration data and FDS for the temporary data? Newer versions of FDS allows you to reserve pages to other modules through the FDS_VIRTUAL_PAGES_RESERVED setting.

    And please be aware that allowing overwrite of the FDS section during DFU may lead to problems with re-initialization of the file system when the new application starts up. To avoid problems with this I would recommend that you add a mechanism that fully erases FDS flash pages after the DFU is complete.

Children
No Data
Related