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
Hi Tamir,
Thanks for reply. Yes I already have checked all the sample codes of that folder but I didn't found for data transfer using pen drive only.
Regards Dhaval
What did you expect to find?
Have you thought about what steps are involved in the process?
eg, think about what steps you would perform manually when using a USB stick to transfer files from one PC to another...
Hi
In my first thread I had mentioned that I am new in arm family that's why only I asked about any documents for USB module. so I can learn something from it and start my work in sequence. If you have any tutorial regarding it please give me link for same.
Anyways I knew for this my board would work as host and usb stick as client..right?
No: You specifically asked for documents or sample code provided by Keil - so you were given directions to the Keil sample code!
The LPC2387 is an NXP chip, so you need to go to the NXP website to find documentation about it.
The NXP Product Information Page summarises the documentation available: www.nxp.com/.../LPC2387.html
You will need to study the User Manual, and look for appropriate application notes, example code, etc...
"my board would work as host and usb stick as client.. right?"
Yes - correct.
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.
Dhaval,
The new USB Host library which is part of MDK-Professional will be a good place to start.
http://www.keil.com/rl-arm/rl-usbhost.asp
MDK-Professional includes examples for the MCB23xx boards which work together with the Flash File System to enable data transfer to USB pen drives.
Mark.