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.

  • Hi Kristin,

    I attached a printout from my program. It waits till FDS is initialized then it writes to a record and then it reads from it, Question is Why FDS Init callback gets called twice? Actually its called once at the first program run and after I reboot device it gets called twice. Any idea?

Reply Children
No Data
Related