FatFs F_Open Fails when Long File Name is enabled
Setup:
STM32H743
FreeRTOS
FatFs
8G SD card on SDMCC1 (FAT32 formatted)
Hi,
I have a problem with f_open which does not work when Long File Name is enabled (_USE_LFN = 2).
f_open(&MyFile, "TEST.TXT", FA_CREATE_ALWAYS | FA_WRITE) == FR_OK) returns FR_INT_ERR.
Looking into f_open, I can trace the error to dir_find() which returns the FR_INT_ERR flag.
However, find_volume() which is called just before is working.
If I disable Long File Name (_USE_LFN = 0), everything works fine.
I have tried to increase the MCU heap and stack and the stack of the thread managing the SD card with no effect.
Thanks for any help.
