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

nRF51822 Problem with Garbage Collection

Hello,

I am using SDK12.3 and have problem with garbage collection (FDS module).

My apllication depends on timeslot, so that FDS is supposed to run together with Bluetooth and ESB.Besides, I use scheduler, APP timer and ADC module.

R/W record, deleting record are functional, but garbage collection does not.

What happens is the following:

The problem uccurs when I keep on updating one record with function fds_record_update. After many times of updating, the storage becomes full and the error code FDS_ERR_NO_SPACE_IN_FLASH is returned.

As soon as I receive this error, I call the function fds_gc() to start a garbage collection. 

However, after calling fds_gc(), something in softdevice goes wrong and the function softdevice_fault_handler(uint32_t id, uint32_t pc, uint32_t info) is called, with id = 0x00000001, pc = 0x000104AE, info = 0.

The error handler app_error_save_and_stop does not give any valid file name, but only a line number, which is line 1984.

Can anyone help me to understand what this means?  How can I locate the problem?

Related