RE: [AVR-Chat] Re: readin USB thumb drive and USB keyboards
2005-07-21 by Paul Curtis
Hi Jesper, > > By the time you get as far as having all the code to read and write > > FAT and FAT32, I'm not sure if I'd call it "simple" anymore > -- we're > > talking thousands of lines of code! But I agree that getting USB > > talking to a single peripheral is significantly simpler > than a general > > purpose USB stack. > > Thousands of lines ? Not at all. I've been working with FAT > for years, and it's not that complex. For top-level directories only, I would agree that reading and writing is not complex. And it's even easier if you limit your partitions to use FAT12 or FAT16 only. And it's even smaller if you limit your physical device to less than 32MB in total. > I even have a FAT capable bootloader in a mega8 ! About 750 > bytes complete with CF card driver, programming and support routines. This would be a read-only system, though, with both FAT12 or FAT16 support but not both, and probably limited to only reading files in the root directrory? I can't see a complete FAT filing system in 750 bytes of code on an AVR. I think Gus' code is a full file system, not a cut-down one and therein lies the difference. -- Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk CrossWorks for MSP430, ARM, AVR and now MAXQ processors