Part Number: AM3352
Dear TI support team,
I use an AM3352 device with TI RTOS and I sometimes have problems with file system corruption.
The device runs
- 1st stage bootloader (-> StarterWare bootloader)
- 2nd stage bootloader (-> decides whether to jump into an existing application or into a firmware update application)
- firmware update app or application
The system features an eMMC which usually works fine (f_read, f_write, f_mkdir, f_unlink, f_stat).
But in some cases the file system gets corrupt which leads to unaccessible files and therefore the system may not boot anymore (depends on the affected files).
I have checked the FATFS files (ffconf.h) and it looks like the 're-entrancy' feature is disabled by default:
#define _FS_REENTRANT 0
Because our application reads and writes (different!) files from different tasks (in which a FATFS function may be interrupted by itself in another task), I assume that there may be a problem with re-entrancy.
Can you please confirm if the TI RTOS FATFS implementation for AM335x is thread-safe/allows re-entrancy or not?
Toolchain:
- PDK 1.0.10
- SYS/BIOS 6.52.0.12
Thank you,
Markus