FatFS+FreeRTOS+ continuous SD write is failing with FR_DISK_ERR or FR_INVALID_OBJECT
Hi,
I am using STM32L4 controller. I am using FatFS+FreeRTOS example project to make sure that SD read and write is working properly. But i am facing problem when i do continuous SD write to the SD card.
I have four thread in my application in that one thread will do continuous SD write function. But randomly after writing some junk of data 'f_write()' function is returning FR_DISK_ERR or FR_INVALID_OBJECT error. The same project before starting FreeRTOS (oskernalstart();) if i do continuous SD write i am not facing any problem. able to write 2GB of data without any fail. problem is only if i run f_write with FreeRTOS thread.
Able to do continuous SD write operation in two scenario:
1) FatFS f_write() and without FreeRTOS
2) FatFS+FreeRTOS+taskENTER_CRITICAL
#fatfs+freertos+-continuous-sd-write-is-failing