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

FDS initial state

Hi, Id like to understand the FDS state after flashing the device. Im trying to check if the record exists then I use it, otherwise I write a valid info into the record. For some reason after flashing the record always exists, but obviously with some random data. How can I make sure that there is no data written in FDS?

Thanks!

image description

Parents
  • FormerMember
    0 FormerMember

    The data in flash will only be erased if you specifically do so. Re-programming chip will not erase flash.

    When using FDS, data in flash will only be erased from flash if you do a garbage collection. When deleting a record using FDS, the record itself will not immediately be deleted, but instead its record key will be set to 'zero' only. When doing garbage collection, the records with the record key 'zero' will be deleted.

  • FormerMember
    0 FormerMember in reply to FormerMember

    Where in your code will "FDS init completed" be printed? If you run the chip in debug mode, you can check the program flow, and perhaps get some more insight in why "FDS init completed" is printed twice.

Reply Children
No Data
Related