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

SDK 15.3 FDS garbage collection not working

Hello,

I have a problem with using the FDS library.

I started by exploring the example CLI program (examples\peripheral\flash_fds), it seemed to work as expected.

Then I started to integrate FDS to my own application. So far I can write and update records. It seems to work as expected.

But the problem i have is with Garbage Collection, it seems not to work in my application, even though it works perfectly in the CLI example.

I'm using the same function fds_gc() and I wait for the event before i proceed. Both the function and event succeed (FDS_SUCCESS), but the flash does not get deleted.

DEADC0DE F11E01FE 
00010000 913E7000 00000001 44444444 <- "Deleted" record
00010002 A9DE7000 00000002 77777777 <- Active records
00010003 6F007000 00000003 11111111 <-
00010004 A5287000 00000004 22222222 <-
00010000 AA487000 00000005 00000052 <- "Deleted" record

This is how the memory looks before and after Garbage Collection.

Am i doing something wrong?

Parents Reply Children
No Data
Related