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

p_stat.valid_records not increasing though fds_write gives success

Hello,

I am using sdk 12.2.2 and nrf52 customised development board. My challenge is as follows.

1) I am getting success in fds'_write function.

ret_code_t ret = fds_record_write(&record_desc, &record);
if (ret != FDS_SUCCESS)
{
if(ret == FDS_ERR_NO_SPACE_IN_FLASH)
{
NRF_LOG_INFO("full\r\n");
gc_running = 1;
ret = fds_gc();
while(gc_running);
NRF_LOG_INFO("gc\r\n");
}
sf_print_fds_stat();
fds_record_write(&record_desc, &record);\

2) When I am calling below function

In p_stat.valid_records my valid records are not increasing after 4846. You can find the details in log file after line number 125938.

Please help me to solve this challenge.

I am also attaching log file for same.

Thanks,

040818.txt

  • You need to single step through the code in order to figure out why the fds does not increase the variable 'valid_records'. 

    I also suggest you migrate to SDK14.2 or SDK15. The FDS library has been completely re-written for the newer SDKs.