Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] MMC DOS FAT16 filesystem source available

2005-11-16 by Bertrik Sikken

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom Walsh wrote:
> I have posted my project for the MMC FAT16 DOS driver system.  This is 
> build on NewLib stubs and the RDCF2 filesystem driver code.  Also, the 
> project has support for the gettimeofday() and settimeofday() library 
> functions, as well as the fopen(), fclose(), fread(), fwrite(), etc..
> 
> The site is http://openhardware.net 
> 
> and for the impatient:  
> <http://www.openhardware.net/?title=RDCF2%20DOS%20FAT%20Filesystem%20for%20LPC2138&dir=rdcf2&file=rdcf2lpc2138.html> 

This is cool stuff. Also nice to release it under BSD style license!

By the way, I think the Keil USB mass storage example for LPC214x
would be a nice complement to this software, see:
http://www.keil.com/download/docs/307.asp
This would allow you to use the LPC to write files on the SD/MMC
card, then plug the LPC into a PC's USB port and let the PC
access the SD/MMC card like it was a removeable drive (and read
the files).
The device layer needs to be sufficiently independent, which
already seems to be the case in your code, although the API
probably needs to be a bit more elaborate. For example not just
read / write sector, but also functions to get card info (for the
SCSI INQUIRY command) and to get the size of the card (for the
SCSI GET CAPACITY command), etc.

I am myself thinking of using FAT32. I found this driver (GPL)
that already provides FAT32 read support:
http://www.robs-projects.com/filelib.html
I am investigating if it is possible to add write support to it.

There really should be something small, portable and configureable
for FAT like lwIP (light-weight IP) is for embedded TCP/IP stacks.
Would be cool to call that "light-weight FAT" :)

All the best,
Bertrik Sikken
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDe3W/ETD6mlrWxPURAmYdAKC50Syy5LrykBWvzaHoLhUYwyvJqACbBpBf
582ttm7mNkF9+4Uh2gZfiOo=
=R618
-----END PGP SIGNATURE-----

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.