Updated Full File System Driver
Kye
Posts: 2,200
Hey everybody,
I've updated my Full File System Diver to version 2.0.
No major features have been added or anything. I just made some minor bug fixes.
Here's what they are:
"flushData" now saves meta data information about the file too. Before it did not, which meant that even if your data was saved on the SD card, the file meta data (like the size of the file) would not be correct until the file was closed. This problem is now fixed.
"unmountPartition" now waits for the last write to finish before returning.
Calls to any function in the driver will now no longer possibly hang if the block driver was not started previously.
Calls to any function in the driver will now no longer possibly access an unchecked out lock if the block driver was not started previously.
...
The driver update will be pushed to the Parallax Semiconductor website soon. If I don't hear of any new problems I'll go ahead and update the OBEX also.
Thanks,
And yes, the driver got slightly larger =(.
I've updated my Full File System Diver to version 2.0.
No major features have been added or anything. I just made some minor bug fixes.
Here's what they are:
"flushData" now saves meta data information about the file too. Before it did not, which meant that even if your data was saved on the SD card, the file meta data (like the size of the file) would not be correct until the file was closed. This problem is now fixed.
"unmountPartition" now waits for the last write to finish before returning.
Calls to any function in the driver will now no longer possibly hang if the block driver was not started previously.
Calls to any function in the driver will now no longer possibly access an unchecked out lock if the block driver was not started previously.
...
The driver update will be pushed to the Parallax Semiconductor website soon. If I don't hear of any new problems I'll go ahead and update the OBEX also.
Thanks,
And yes, the driver got slightly larger =(.
Comments
I'm working on higher resolution graphics and because there are more pixels, any movies need faster data throughput. What is the speed (roughly) in kilobytes per second for your driver?
I'm now using your driver to store test data for Parallax's new altimeter/barometer module (about which more on Monday) via the Spinneret's SD card interface. It has worked flawlessly so far! Thanks for your efforts on an excellent object!
-Phil
Thanks,
BTW, a very well written app note.
fat0.mountPartition(0)
fat0.listEntries("W")
repeat while(entryName := fat0.listEntries("N"))
term.str(entryName) '<
DIR1 shows up in the listing and is a valid directory
term.tx(13)
fat0.changeDirectory(string("\DIR1")) '<
DIR1 exists and has files in it
repeat while(entryName := fat0.listEntries("N"))
term.str(entryName) '<
second listing of files remains in the root of the card
term.tx(13)
fat0.newDirectory(string("test1"))
fat0.changeDirectory(string("test1")) '<
even creating a new directoy doesnt work. it doesnt show up on listings
fat0.listEntries("W")
repeat while(entryName := fat0.listEntries("N"))
term.str(entryName)
term.tx(13)
fat0.unmountPartition
Im sure it is something obvious, I've tried numerous permutations and cant seem to get it to work.
Thanks!
Greg