Warning About Multitask Use of EFFS
Posted: Mon Oct 20, 2008 7:16 am
I have been using the EFFS for data logging. In a separate task I have a file monitor that FTPs data log files off the board and deletes them when complete. I kept running into file write failures and found after much testing that file operations in one task were interfering with operations in another task. I was able to fix this because I have an abstraction layer for all the file functions and added a critical resource lock around each operation.
Why isn't such a resource lock built into the FFS? The FFS is supposed to be intended for multitask use, but it basically falls apart in this situation and is unstable. The FFS needs a lot more testing than seems to have been done and I hope that the next release will resolve at least this basic issue.
Why isn't such a resource lock built into the FFS? The FFS is supposed to be intended for multitask use, but it basically falls apart in this situation and is unstable. The FFS needs a lot more testing than seems to have been done and I hope that the next release will resolve at least this basic issue.