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.
11 years, 10 months ago.
USBMSD with SDFilesystem and FATFilesystem
I am trying to access a SD card via USB with the LPC11U24. When I use all the latest mbed official libraries SDFilesystem and FATFilesystem, I can't get beyond the compiler error message:
Error: Identifier "_is_initialized" is undefined in "USBMSD_SD/USBMSD_SD.h", Line: 58, Col: 40
Anybody any idea?
Thanks a lot!!!
Could you explain more what you did, and perhaps publish your code? USBMSD_SD does not use FATFileSystem/SDFileSystem. Also make sure all your libs are updated (click on them, and there is an update button).
posted by Erik - 03 Apr 2014Here is the simple 'Hello World' SD example code I am trying to compile: All libs are updated! But still get:
Error: Identifier "_is_initialized" is undefined in "USBMSD_SD/USBMSD_SD.h", Line: 58, Col: 40
posted by Martin Heine 04 Apr 2014USBMSD
#include "mbed.h" #include "USBMSD_SD.h" USBMSD_SD sd(p5, p6, p7, p8, "sd"); // the pinout on the LPC11U24 int main() { printf("Hello World!\n"); mkdir("/sd/mydir", 0777); FILE *fp = fopen("/sd/mydir/sdtest.txt", "w"); if(fp == NULL) { error("Could not open file for write\n"); } fprintf(fp, "Hello fun SD Card World!"); fclose(fp); printf("Goodbye World!\n"); while(1); }