Hi.
I want to transfer files using pen drive to LPC2387 board and vice versa. I don't know how to do it. Is there any documents from which I can learn something about this application or link for its sample code provide by keil as I am new in ARM family.
In my work I want to attach pen drive direct to the board and board is not connected to PC. If any one has any idea regarding this let me know.
Thanks dhaval
Anyways I knew for this my board would work as host and usb stick as client..right?
Yep.
You'll need to buy or write the OHCI host controller driver; then you'll need to buy or write the USB mass storage device driver; and then you'll need to buy or write the FAT32 file system driver; and finally you'll need to write the application code that navigates through the folders and reads from the files.
You can find the USB specs at http://www.usb.org. Google FAT32 specification to find that one.
I wrote all three on my own for a TI DSP with an ISP1161 host controller, with minimal embedded software development experience, and it took me about 8 months. We're now using an LPC2468 and it took me about 2.5 months to port the code and write the OHCI host controller. I figured it out by reading the specs and browsing the Linux source code.
"buy or write the OHCI host controller driver ... the USB mass storage device driver ... the FAT32 file system driver"
3rd option: obtain open-source versions of the above.
Note that most manufacturers these days do provide examples for their USB Hosts that are sufficient to read & write from a USB stick...
Yes I know some manufacturer provides example for USB host like keil, microchip etc. and I think I should get some knowledge from http://www.usb.org so from that i can get depth knowledge of usb
Thanks Dhaval
See Also: http://www.keil.com/books/usbbooks.asp
And: http://www.lvr.com/
Yes I will.
Thanks for links.