No matter flash is full or not, calling fds_file_delete() and fds_gc() does not free storage. We checked the content in flash are not 0xFF. Moreover, after this issue, always fail to create files or records.
No matter flash is full or not, calling fds_file_delete() and fds_gc() does not free storage. We checked the content in flash are not 0xFF. Moreover, after this issue, always fail to create files or records.
When I test fds_gc() with SDK 12.3 here, it works:
S132 v.3.1.0
Read memory: fds_read_mem.bat
To test if garbage collection works, you can do the following:
1.1) Remove garbage collection from line 1192 in main.c (err_code = fds_fc()
).
1.2) Compile and run the code.
1.3) Read the memory.
2.1) Insert garbage collection at line 1192 in main.c.
2.2) Compile and run the code.
2.3) Read the memory.
3) Compare the readout of the memory for the two cases.
When I test fds_gc() with SDK 12.3 here, it works:
S132 v.3.1.0
Read memory: fds_read_mem.bat
To test if garbage collection works, you can do the following:
1.1) Remove garbage collection from line 1192 in main.c (err_code = fds_fc()
).
1.2) Compile and run the code.
1.3) Read the memory.
2.1) Insert garbage collection at line 1192 in main.c.
2.2) Compile and run the code.
2.3) Read the memory.
3) Compare the readout of the memory for the two cases.
We already fixed the problem by searching discussions on net. TKS Kristin anyway. This issue can be closed.
Louis, what was the solution? I'm having a similar issue
Might or might not be the same. Please consider asking a new question. Did you also try the suggestion made by Kristin..?