Solved
SD Card
Posted on March 30, 2017 at 18:49
Hi,
I'm using the cubeF4 to work on FATFS application and i'm searching for a function in FATFS library that can return the content of the SD Card: number of files and their names.
Thank you.
Hi,
I'm using the cubeF4 to work on FATFS application and i'm searching for a function in FATFS library that can return the content of the SD Card: number of files and their names.
Thank you.
Thank you all, all your suggestions were helpful
I saved files in a directory created in the SD Card and i just used the function '
f_readdir'
into a loop to count files in my directoryf_opendir (&dir,'mydirectory');
while (1)
{ res_dir = f_readdir(&dir, &fno); if((res_dir==FR_OK)&&(fno.fname[0]!= 0)) { nb_file_dir++; }}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.