I need a suggestion over the issue that I am facing with my controller.
My issue is as below.
Suppose .txt,.xls and binary files are in my pen drive and I dont know which files are inside the pendrive. Can you please tell me how to scan files inside my pendrive and display all file names on LCD. All files are at root of the pen drive.
Your suggestions are most welcome. Please help me.
You ask that basic questions, showing that you didn´t read them.
Without being familiar with renesas controllers or your file system software it took me about 10 seconds to find the solution:
* --> f_opendir, f_readdir and f_closedir
But that are only available if you didn´t choose: "2" or "3" for _FS_MINIMIZE
Thank you for your reply. I read the document. But its not happens with me. I am trying to do it harder but no luck.
See Below:
Code:
R_tfat_f_opendir(&dir, "0"); // Open a directory named "abc"
res = R_tfat_f_readdir(&dir, &finfo);
if( res != TFAT_FR_OK )
{
cd[0]=0x10;
}
res = R_tfat_f_close(&file);
if( res != TFAT_FR_OK )
{
cd[0]=0x10;
}
Nothing to be found in finfo as passed in function R_tfat_f_readdir.