Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

fds_gc() will not restore past updated records to 0xFF

Hi there,

I am using the FDS module to store some application data in flash. It is my understanding that every time the data is updated using fds_record_update, a different memory area is used. This is, the update does not overwrite the same area, but it copies the data in a different location. Our firmware would often update the stored data, thus, it is a concern for us that the flash page will be overloaded. This is why I am performing a garbage collection on every update:

err_code = fds_gc();
APP_ERROR_CHECK(err_code);

However, I am checking the memory registers with the memory view at position 0x7E000 and I can see that the data is not cleared to 0xFF. All the previous updates are still there after running the garbage collector. It was my understanding that calling fds_gc() will set the past update records to 0xFF, but it doesn't. Why is that?

I am on a PCA10040 and sdk v16.

Thanks!

Related