Problems with SD file operations (writing)

Hello,

Is it possible that the SD I/O libraries for the Sakura have a bug for writing right now? It seems that we only get files filled with wrong characters and even corrupt files at the moment.

The codes for writing in our specific case have not been changed, but the output is changed dramatically. (as of 9-1-2018 for as far as we know)

 

-美月

Parents
  • Hi Mitsuki,

    Were you able to resolve the issue already? Please wait a little bit more until someone can confirm about your doubt on the Sakura SD I/O library. Thanks for understanding.

    JB
    RenesasRulz Forum Moderator
  • Hello JB,

    No luck yet, the issue is still present. I will wait until someone can confirm about the libraries. Meanwhile I will try to resolve it myself, too.


    -美月
  • Hello JB,

    I have since uploaded the example program and that one gives problems too. It can be read by the Sakura before it is close();'d, but after that I can't read it back on PC. Is it perhaps known whether there are demands for certain cluster sizes, SD card sizes or anything? I do know about the 8.3 names requirement.

    As for saving within my project, does it give problems if I first manually SD.flush(); and then SD.close();, since SD.close(); flushes as well? The reference does not mention anything about it not being allowed.

    Quick update: I just removed the SD.flush(); attempt to make it work and it stillproduces a file that cannot be opened on a PC. This also means that the file is not read by the Sakura. 


    -美月

Reply
  • Hello JB,

    I have since uploaded the example program and that one gives problems too. It can be read by the Sakura before it is close();'d, but after that I can't read it back on PC. Is it perhaps known whether there are demands for certain cluster sizes, SD card sizes or anything? I do know about the 8.3 names requirement.

    As for saving within my project, does it give problems if I first manually SD.flush(); and then SD.close();, since SD.close(); flushes as well? The reference does not mention anything about it not being allowed.

    Quick update: I just removed the SD.flush(); attempt to make it work and it stillproduces a file that cannot be opened on a PC. This also means that the file is not read by the Sakura. 


    -美月

Children
No Data