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

how to erase fds previous data

i have done read and write operations on fds with dummy buffer. now when im writing new data into fds it is showing the previous data .can anyone give the function to erase the fds of previous data.

Parents
  • Hi

    fds_gc (garbage collection) reclaims the flash space that is occupied by records that have been deleted, or that failed to be completely written due to, I.E., a power loss. So, in order to get rid of old records and make space for new ones, you have to first delete the records you don't want/need anymore by using fds_record_delete or fds_file_delete and then run a garbage collection with fds_gc to free them before you can write to these records again.

    These commands should all be very well described in the Flash Data Storage documentation on the Infocenter, as well as in the fds example.

    Best regards,

    Simon

Reply
  • Hi

    fds_gc (garbage collection) reclaims the flash space that is occupied by records that have been deleted, or that failed to be completely written due to, I.E., a power loss. So, in order to get rid of old records and make space for new ones, you have to first delete the records you don't want/need anymore by using fds_record_delete or fds_file_delete and then run a garbage collection with fds_gc to free them before you can write to these records again.

    These commands should all be very well described in the Flash Data Storage documentation on the Infocenter, as well as in the fds example.

    Best regards,

    Simon

Children
Related