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 app data and FDS

Hi, I have initial flashed boot loader and application based on SD version 3.1 and SDK 12.2.0 with

DFU_APP_DATA_RESERVED CODE_PAGE_SIZE * 3

FDS_VIRTUAL_PAGES 3

later updated both boot loader and Application with below change

DFU_APP_DATA_RESERVED CODE_PAGE_SIZE * 6
FDS_VIRTUAL_PAGES 6

Issue is bootloader and application FDS API are not working as expected and data is not stored in flash but If I reflashed both application and bootloader then FDS API,s are working as expected.

Is my understanding correct that DFU_APP_DATA_RESERVED and FDS_VIRTUAL_PAGES are related to each other?

  • DFU_APP_DATA_RESERVED only referes to how many pages below the bootloader start address it shoudl preserve during a DFU, i.e. not erase, see this page. Whereas, FDS_VIRTUAL_PAGES defines how many pages below the bootloader start address that are reserved for the FDS module. So if you want to preserve the data stored by FDS you should set DFU_APP_DATA_RESERVED equal to FDS_VIRTUAL_PAGES.

Related