2018-06-05 08:23 AM
ST seems to do reading all files in a directory in a hard way.
I am combining two examples about Sdfat but ST uses unfamiliar commands for reading all files in a directory. I think I could do it with a hard way but isn't f_findfirst/f_findnext more common.
I have examples for reading all bmp files and an other showing one jpg file.
Edit: By the way. I still have to accept cookies several times in one session.
Solved! Go to Solution.
2018-06-06 06:24 AM
The Keil error you reported earlier was a linker error complaining the functions have no code behind them. The &sharpinclude provides no body code. The code for the functions is in FF.C, this needs to be in the project, and needs to build against the ffconf.h settings. You might want to double check the include path settings, or check the dependency trees (expand ff.c in the left hand pane) to see the include file the compiler is using to build the object.
The &sharpinclude 'ff.h' implicitly pulls 'ffconf.h'
2018-06-06 06:27 AM
STM32Cube_FW_F7_V1.11.0\Projects\STM32746G-Discovery\Applications\Display\LTDC_PicturesFromSDCard\Inc\ffconf.h
&sharpdefine _USE_FIND 1
/* This option switches filtered directory read functions, f_findfirst() and/ f_findnext(). (0:Disable, 1:Enable 2:Enable with matching altname[] too) */