SD Card
Posted: Wed Oct 22, 2014 10:59 pm
Hi,
SD Card is not working. i use mbed compiler.
code (mbed)
if i use the same code on mbed LPC1768 then it works,
the Wifi-DipCortex has two SPI Interfaces. Right? SPI-1 is for the CC3000 and SPI-0 is available for other. is this right?
Werner
SD Card is not working. i use mbed compiler.
code (mbed)
- Code: Select all
SDFileSystem sd(p16, p15, p13, p17, "sd"); // MOSI, MISO, SCK, CS
FILE *fp = fopen("/sd/sdtest.txt", "w");
if (fp) {
fprintf(fp, "Hello fun SD Card World!");
fclose(fp);
pc.printf("write SD card done\r\n");
} else {
pc.printf("Could not open file for write\r\n");
}
if i use the same code on mbed LPC1768 then it works,
the Wifi-DipCortex has two SPI Interfaces. Right? SPI-1 is for the CC3000 and SPI-0 is available for other. is this right?
Werner