Page 1 of 1

MOD54415 f_findfirst

Posted: Mon Feb 11, 2013 4:48 pm
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

Re: MOD54415 f_findfirst

Posted: Tue Feb 12, 2013 8:02 am
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