Simon,
Thanks for the pointer, I will take a look at "sdcards" program. I played with it before, and got HTTP server reading HTML files from micro-SD card. I like FATFileSystem approach more than NXP's. Looks like FATFileSystem provides nice glue for posix file functions, while NXP's has weird file read and write functions. Hope to have enough time to get to it soon.
Hmm, have you used my code or something else? How did you set things up circuit-wise?
Hi Igor,
I made a margarita from your code and NXP's LPC1768 example. Here's my program in its current state: pub_UsbHost (FAT is not writing properly).
Wiring is straightforward: I wired a 4-pin type-A connector, 1=VCC - to VU pin, 2=D- to D- pin, 3=D+ to D+ pin, and 4=GND to GND pin. I run MBED connected to mini-USB, which gives it 5V that gets through to the VU pin.
I hope that helps. Are you panning to attack the FATFileSystem if the code works for you? I won't have time to work on that in the next few days.
I've seen some people going at NXP's USBHostLite example (Igor: http://mbed.org/users/igorsk/programs/5yg7j), but nobody reported success.
I also took a stab at it on my mbed LPC1768. So far I got pretty far - I can mount a flash drive and run the Main_Copy() successfully. However, the resulting file cannot be read by Windows, though it shows up in the directory with appropriate length.
I think there's something wrong with the FAT implementation in usbhost_fat.c from NXP example. I have two options: 1) fix NXP code, and 2) use mbed's FAT implementation (http://mbed.org/projects/libraries/svn/FATFileSystem/trunk).
I wanted to get others's opinion / experience...