cancel
Showing results for 
Search instead for 
Did you mean: 

Any examples with f_findfirst/f_findnext for 746D?

LMI2
Lead
Posted on June 05, 2018 at 17:23

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.

11 REPLIES 11
Posted on June 06, 2018 at 13:24

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'

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 06, 2018 at 13:27

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) */
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..