Solved
Using FatFs , i am unable to get long filenames, but i get the short filenames
I am able to read the fixed length fname.
But the pointer to the long filename is always 0.
this is how im reading trough the list of files
FRESULT detect_binariesFolder(){
fresult=f_opendir(&dir, "lu");
fresult=f_readdir(&dir, &filinfo);
fresult=f_findfirst(&dir, &filinfo, "lu", "*.bin");//http://elm-chan.org/fsw/ff/doc/findfirst.html
while (fresult == FR_OK && filinfo.fname[0]) { /* Repeat while an item is found */
fresult=f_findnext (&dir, &filinfo);
}
fresult=f_closedir(&dir);
return fresult;
}I tried the three different cubeMx options for long filenames :
- static buffer on the BSS
- dynamic buffer on heap
- dynamic buffer on stack
None of them works.
My setup:
- stm32f105RBt6 custom board.
- SD Card trough SPI2, sandisk ultra 16GB.
- CubeMx version 6.4.0, STM32Cube_FW_F1_V1.8.4 package which uses FatFs version R0.10c, Nov 09, 2014.
- CubeIDE Version: 1.8.0


