I had to comment out the Write protect as it kept telling me "SD/MMC Card is write-protected..."
which its not, verified with 3 other cards.
Now, it does work fine for the most part, serves up the web page from SD card just fine.
however when i press "F" for format the card in the menu it then asks me am i sure press "Y" when i do that i get this response back.
Proceed with format? ('Y' to execute)y
Formatting SD/MMC card
*** Error in f_format(): F_ERR_ONDRIVE
Format complete
Now the code section for that is this:
Code: Select all
/*-------------------------------------------------------------------
BYTE FormatSD()
-------------------------------------------------------------------*/
BYTE FormatExtFlash( long FATtype )
{
int rv;
iprintf( "Formatting %s card\r\n\r\n", driveType );
rv = f_format( EXT_FLASH_DRV_NUM, FATtype );
if ( rv != F_NO_ERROR )
{
iprintf( "*** Error in f_format(): " );
DisplayEffsErrorCode( rv );
}
return rv;
}
Anyone know what the deal is here with this error ?
It says error, and then it says Format Complete, yet the card is not formatted.