I am having a peculiar problem with some of the SD example code. I am running the Adafruit version of the SD library (adafruit-SD-587d4ec.zip).
I ran the ReadWrite example and successfully created the "test.txt" file on the card. In fact, I ran it several times, and it appends to the existing file without any problem.
When I then query the card with the CardInfo example, the serial monitor reflects the following (note the filename at the bottom):
Initializing SD card ...
... wiring is correct and a card is present.
Card type: SD2
Volume type is FAT16
Volume size (bytes): 1947926528
Volume size (Kbytes): 1902272
Volume size (Mbytes): 1857
Files found on the card (name, date and size in bytes):
84698384.848884 2000-01-01 01:00:00 144
What is strange is that the filename is shown as ASCII numeric codes (84698384.848884) instead of the actual ASCII characters the codes represent (test.txt).
The line of code that generates this last line of data is:
// list all files in the card with date and size
root.ls(LS_R | LS_DATE | LS_SIZE);
I have examined the contents of the card on another machine, and the file is indeed named test.txt. Has anyone else observed this? Thank you.