Open BelMoretto opened 7 years ago
Hmm, what does unrecognized mean in this context? It disappears totally?
I guess it could happen during stage 5 if the powerloss comes precisely between the deletion of the old version and the creation of the new version. Rewrite via O_CREAT | O_TRUNC first deletes, and then creates new in a non-atomic way.
Hey, I'm facing a similar issue. When I reset the MCU the file system (occasionally) outputs an error -10004 (ERR_DELETED). This is not seen every time I tried out this test. Also seen when I tried the "power loss test". Here's what I'm doing:
Hi all, I've experienced a file unrecognizing during a "power loss test".
The program flow was the following:
Meanwhile intentional power_loss/restart occurs. I noticed that when power loss occurs during the execution of SPIFFS_checks() it can happen that a file written in the previous cycle is unrecognized. Is this a well known issue? Thanks in advance. M.
MCU Kinetis KV5x Family