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

FDS init with 2 pages labeled as swap

I have an found a problem where I find FDS has 2 pages labeled as swap, which results in loss of one of the data pages.

my configuration is 2 data pages and 1 swap page.  at start up, the pages show 1 data page and 2 swap pages.

after init the swap is not completed and only 1 data page is found.  the second entry in m_pages has an p_addr of 0

I presume this occurred when a reset interrupted a page swap.  

Is there any existing fix for this condition?

I'm using SDK 15.0.0 however I have backported/pactched FDS with fixes from 15.3.0

Parents
  • Hello,

    I have not seen this happen before. Do you have a reliable way to replicate this? Are you sure that both pages are defined as swap page, and that you don't have one corrupted page, one swap page and one data page?

    Can you send a flash dump of your device? You can use "nrfjprog --readcode my_flash_dump.hex" to generate the flash dump.

    As mentioned, I have not seen any issues with 2x swap pages before, but there are some bugfixes that were applied to SDK16.0.0 or SDK17.0.0 (I don't remember which one, but you can check the release notes. I would suggest to port to that version if you have FDS issues. There are very few (if any) API changes between the later SDKs.

    BR,

    Edvin

Reply
  • Hello,

    I have not seen this happen before. Do you have a reliable way to replicate this? Are you sure that both pages are defined as swap page, and that you don't have one corrupted page, one swap page and one data page?

    Can you send a flash dump of your device? You can use "nrfjprog --readcode my_flash_dump.hex" to generate the flash dump.

    As mentioned, I have not seen any issues with 2x swap pages before, but there are some bugfixes that were applied to SDK16.0.0 or SDK17.0.0 (I don't remember which one, but you can check the release notes. I would suggest to port to that version if you have FDS issues. There are very few (if any) API changes between the later SDKs.

    BR,

    Edvin

Children
No Data
Related