rtstofer wrote: >--- In lpc2000@yahoogroups.com, Tom Walsh <tom@o...> wrote: > > >>rtstofer wrote: >> >> >> >>>--- In lpc2000@yahoogroups.com, "Martin Maurer" >>> >>> ><mailingliste@c...> > > >>>wrote: >>> >>> >>> >>> >>>>Try >>>> >>>>http://alumnus.caltech.edu/~pje/rdcf2.txt >>>> >>>>It works ! >>>> >>>>Regards, >>>> >>>> Martin >>>> >>>> >>>> >>>> >>>It looks like rdcf2 is quite complete and includes a test suite. >>> >>> >It > > >>>supports FAT12 and FAT16 and the documentation is very good. >>> >>>It can also be built under DOS with TurboC so I can play with it >>> >>> >on > > >>>my DOS box before I port it to the LPC2106. >>> >>>Moving back to FAT16 versus getting nowhere with FAT32 seems like >>> >>> >a > > >>>good tradeoff. >>> >>> >>> >>> >>> >>The alloc() and free() function calls have to be written out. >> >> >Otherwise > > >>we are in danger of fragmenting the RAM on the LPC2000 processors. >> >>TomW >> >> > >Yes but many implemtations allocate storage for a predefined maximum >number of open files. Not a big deal, these are microcontrollers, >not workstations. > >I need to correct myself re: RDCF2. I compiled it and it executes >well when installed on a floppy and interacting with a floppy. > >It does not work from my hard drive whether interacting with the HD >where it fails completely or the floppy where it gets just about >everything wrong. > >I traced the hard drive failure to the first call to absread where >the code is trying to read absolute sector 0. I have to think about >this but I think it is incorrect. In any event, the call fails. > >Another limitation to RDCF2 is a 32 MB limit so the code is for a >very early version of FAT. From the very first paragraph of the doc >file: "RDCF is a reentrant and ROMable DOS-compatible file system >designed for use with floppy diskettes and hard disk partitions that >do not exceed 32 Mbytes in size." > >Anyway, scrap that version; it doesn't really work. > > > No, there is code in there to adapt between 12bit & 16bit FATs.. It does appear to be working, I'm writing files onto a 128Meg MMC image. More testing is needed before I'm confident that what I reworked is doing what it should: write a bunch of 32Meg files and verify contents. TomW -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net, http://cyberiansoftware.com "Windows? No thanks, I have work to do..." ----------------------------------------------------
Message
Re: [lpc2000] Re: Cheap SD Flash File System
2005-11-12 by Tom Walsh
Attachments
- No local attachments were found for this message.