FATFS f_unlink not works, error code FR_LOCKED
Hello,
On STM32H7 development board I implemented a FatFs file system from Cube library to external qspi flash. I have a standalone system, without any RTOS.
I can read and write files, but I cant delete them. f_unlink always was resulted by a FR_LOCKED error code.
Files are closed, so it is not a problem.
I try to set _FS_LOCK parameter in ffconf.h to 0. It helps, but for better safety a would like to let it switched on. Now _FS_LOCK = 2, but in this case I cant delete files.