Go Down

Topic: Windows Errors on opening SD card file (Read 552 times) previous topic - next topic

lax123

Hi,

my lcd shows me "SD" as long ardu is writing to SD / file not closed, so i can pull it out when ardu isnt writing, but no matter when i pull out the SD card i get an error on opening the csv log file in windows.
windows is giving some messages like that atleast one piece of data is corrupted. i can still open the file and everything is perfect, no errors or whatsover inside.

what can i do to not get those messages/ what is the reason for that message?

fat16lib

If you remove the SD without closing the file you will most likely have a corrupt file.  Closing the file updates the directory entry for the file and insures the SD file structures are consistent.

If you check the SD for errors with the windows, the volume will probably have problems.

In Windows right click on the SD and select properties then click on the tools tab then click "Check now..."  under Error-checking.

If closing the file before removing the SD doesn't fix the problem post the exact Windows message and describe the app that was used to open the file

lax123

Hi,

Windowscheck: everything fine

opening the csv file in excel (my translation would be): "cant read data record 1. If there are more, show other errors? yes/no"
"excel noticed the file log.csv is a SYLK file, but cant load the file. either the file is corrupted or it is no actual SYLK file. Press OK to open in other format"

on pressing ok and opening the file its perfectly fine, no corruption, no errors, no missing records.


Reading about SYLK stuff its coming because the first entry in the file is ID.
So setting "data record 1" into that context, that also must be the reason for that error

lax123

funny

changing the header into #ID instead of ID and no more errors

fat16lib

Wow!  Looks like you are hitting every pothole.  The SYLK trap is a good one.

Go Up