Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 12 months ago.
Seeedstudio ArchMax SDCardSystem wont work
I tried following program on 8 GB, 16 GB, and 32 GB, Samsung, SanDisk sdcards, format is FAT32, but got error messages
Error message = No disk, or could not put SD card in to SPI idle sta disk
Error message = Set 512-byte block timed out
#include "mbed.h"
#include "SDFileSystem.h"
SDFileSystem Handle_SdCard (PC_3, PC_2, PB_10, PE_2, "sdcard");
 
int main ()
{
    FILE *Handle_File= fopen ("/sdcard/bmp/02x02_01.bmp", "r");
    if (Handle_File == NULL)
    {
        error ("Could not open file for read\n");
    }
    fprintf (Handle_File, "Hello fun SD Card World!");
    fclose  (Handle_File); 
}
Any help is welcome