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.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I tried to write the file into Eye-Fi SD Card by using library SDHCFileSystem.
(Used Eye-Fi: http://www.eye.fi/products/connectx2 )
But it couldn't succeed and it showed error message as follows:
"Not in idle state after sending CMD8 (not an SD card?)"
Does anyone know how to write the file into Eye-Fi SD Card?
#include "mbed.h" #include "string" #include "SDHCFileSystem.h" SDFileSystem sd(p5, p6, p7, p8, "sd"); // mosi, miso, sclk, cs int main() { FILE *fp = fopen("/sd/DCIM/myfile.txt", "w"); fprintf(fp, "\n\rHello World!\n\r"); fclose(fp); printf("Finished!!\n"); }