when i need to write some data to sdcard, why the USB stop working as image attached?
my code was:
myled = 1;
char_gps = gps.getc();
read_gps = true;
myled = 0;
read_gps = false;
tgps.f_get_position(&flat, &flon, &age);
FILE *fp = fopen("/sd/tes.txt",“a”);
sprintf(data,"%f,%f\r\n", flat, flon);
if the sdcard is not inserted, the program running well, but when i insert the sdcard, it suddenly stop working.