AnsweredAssumed Answered

SDIO timeout

Question asked by yun.yan on Jul 16, 2014
Latest reply on Jul 16, 2014 by Clive One
Hi!

I have a small rtos and I have to write a string every 5 ms to a sdcard.
This (pseudo)Code works fine:

void SDTask(...){
    // some init
    for( ;; ){
        SDopen(&File);
        SDWriteString(&File,SDstring);
        SDclose(&File);
        // leave the task here
    }
}



Due to the long time for opening and closing the filepointer I did the following:

void SDTask(...){
    // some init
    SDopen(&File);
    for( ;; ){
        SDWriteString(&File,SDstring);
        // leave the task here
    }
}


But this code isnt working! My file is empty, but in the filepointer the filesize is increasing and there is also no error while "writing" the data. But it seems as if the data goes everywhere else but in the file.. :(

what could be wrong? Not closing the file is intentionally.


Outcomes