- Sun Aug 14, 2016 3:09 am
#52895
I've got a WeMOS D1 mini to which is attached a WeMOS SD shield.
Before I go further and everybody leaps on my back, I've tried the latest R2.3.0 distribution and it compiles OK, once I've set the IDE to report ALL compiler messages and fixed all its complaints BUT the downloaded (the IDE says it's uploading but my convention is different - transfer from a big computer to a little computer is DOWNloading!) program doesn't run at all, at all. Debugging output is all garbage.
I'm using R2.2.0 and as I've added features to the sketch I'm writing, correct functionality from the SD library has decreased and become sporadic.
Now, the filesystem is on a 512Mb card which has had the file system checked, it's been reformatted, the files written back to it and deleted individually before being written back to the card by WIN7.
Initially, everything worked, but when I added some functionality in a totally unrelated part of the sketch:
First, the library refused to remove a file unless I tickled it just right as follows.
String myFileName = "MYFILENA.ME1"
SD.remove(myFileName); // DOESN'T WORK
SD.remove(myFileName.c_str()); // DOESN'T WORK
SD.remove("MYFILENA.ME1"); // WORKS???? but compiler complains.
I was happy with that for a while but it got worse as the sketch grew. Now, some files can be opened and read in one part of the sketch but refuse to open at all in a different part of the sketch. Now no files can be removed by the WeMOS D1 mini, no matter what calling convention I use.
I'm trying to trace the problems by adding debugging output to SerialHardware in an increasing number of places in the SD and SdFat libraries but this is driving me not-so-slowly CRAZY.
Is there anybody already familiar with the SdFat library who can assist with this problem?
Peter.