Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

File system issue for knowing names inside the pendrive

Status
Not open for further replies.

RenesasT

Full Member level 2
Full Member level 2
Joined
Mar 11, 2016
Messages
149
Helped
0
Reputation
0
Reaction score
0
Trophy points
16
Activity points
1,330
Hi,

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.
 

Hi,

in the other thread: https://www.edaboard.com/threads/354173/#post1515538

I told you to read documentation.

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

Klaus
 
Dear KluasST,

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.

Please help me.

Thanking You in advance.
 

Dear KlausST,

Thanks for your help. Great to feel speak, "Problem is Resolved".

Have a great FEELING THAT YOU ARE WITH ME. LOVE YOU. FEELS GREAT, MY PROJECT IS COMPLETED. ALL CREDIT GOES TO KLAUSST.

gREAT DAY.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top