FATFS: f_stat returns FR_NO_FILE
Hello community,
I am using STWINKT1B board and trying to implement basic accelerometer datalogging from scratch. I don't want to use HSDatalog because I don't need so many functionnalities.
I am using FATFS functions, able to use mount, mkfs, mkdir, open and write functions to create this file DATA/data_000.TXT.
When I add the f_stat (after mount and mkfs) function with the path "DATA/data_000.TXT" and restart the board, I always get a FR_NO_FILE error.
If I put the SD card in my laptop I can see the file in DATA/data_000.TXT:

Here is my code:

Any idea about what could cause the issue ?
Thank you
