mircopizzichini

SD card writing after ejection

Discussion created by mircopizzichini on Jan 3, 2017
Latest reply on Feb 12, 2017 by Daniel Chen

Hi 

I've a problem with SD card writing.

The installation of SD card is ok, from esdhc to mfs over partition, as indicated in \mfs\examples\sdcard\demo.c, and I can write properly a file with the demo command "sd write".

But if I remove and then insert again the SD card, the "sd write" command gives me the answer "Error writing file...". With "sd dir" the file seems to be on the filesystem, but when I restart the device, that file is not there. I also tried to change cache mode with MFS_WRITE_THROUGH_CACHE, but the problem remains.

I saw similar topics about SD card writing, but no one can help me.

Maybe I need to reinstall filesystem again?

 

Thank you

Outcomes