SDK: nRF5_SDK_17.1.0
I am currently encountering some difficulties regarding data deletion and garbage collection after recording in my Nordic application. I have followed the instructions provided by NRF closely, yet I seem to face persistent issues.
I have the impression that the code indicates that the deletion and garbage collection have been successfully completed, but when I examine the actual dirty records, they are not deleted. It seems that the garbage collection only works successfully during device initialization
Here's a snippet of the code I'm using:
In the fds_evt_handler
, m_fds_del_file
is set to true in response to FDS_EVT_DEL_FILE
.
Here's an excerpt from the log showing the behavior during startup:
At this point, querying the dirty records correctly returns 0, but if I save some data and try delete them the dirty records will never go back to 0.
I'm puzzled as to why this is happening. Could someone provide insights or suggestions on how to resolve this issue effectively?
Your assistance and expertise are greatly appreciated.