I have ported the FreeRTOS on our proprietary DSP core.
Also ported an open source FAT File system and its working fine with my SD card driver.
But FATFS do not support multitasking environment.
FATFS Application note says that
“Porting to RTOS-When use FatFs module from only one task, no consideration is needed.
However when make access to a logical drive from two or more tasks simultaneously, any exclusion control will be required.”
Even after doing the semaphore control using mutex, I could not access multiple files from different tasks.
Example: File-A is opened in Task-A and doing some operation on it (f_lseek),
simultaneously I can not access to the file pointer of File-B in Task-B.
Do you have any suggestions on this?
Have anyone of you ported FATFS or any other File system for FreeRTOS and working in multitasking environment?
A: Audio files playing with audio decoder in Task-A.
B: JPG files displaying with JPG decoder in Task-B.