MOD54415 f_findfirst

Discussion to talk about software related topics only.
Post Reply
nicobari
Posts: 110
Joined: Mon Jan 30, 2012 12:15 pm

MOD54415 f_findfirst

Post by nicobari »

Hi,
I plugged in a microSD card into the onboard SD card adapter of MOD54415 module. I was successful in mounting the card. I have a file named LOG045.txt on the microSD. When I am using the following command from an example in nburn folder

F_FIND finder;
volatile int rc = f_findfirst( "LOG045.txt", &finder );

I am getting "invalid filename" error i.e the function call is returning a value 4 in rc.

Am I using f_findfirst incorrectly? I won't lie I am having difficulty understanding the f_findfirst section in Effs implementation guide. Thanks in advance.

Regards,
TM
nicobari
Posts: 110
Joined: Mon Jan 30, 2012 12:15 pm

Re: MOD54415 f_findfirst

Post by nicobari »

Update: Its my mistake I didn't change drive to current drive after mounting the card before calling the f_findfirst function. Now its working properly.

Regards,
TM
Post Reply