i am currently using lpc2468 usbhostlite code and getting the required results. can anyone please help me make the necessary changes in the code to use it with fat32 formatted pendrives also
USBHostLite includes just FAT16 file system library. Replace it to another one, such as FatFs (FAT12, FAT16 and FAT32) elm-chan.org/.../00index_e.html
Here is an example of FatFs over USBHostLite (LPC17xx).
Interfacing ARM controllers with Memory-Cards www.siwawi.arubi.uni-kl.de/.../index.html Find "ChaN's FAT-Module with LPC17xx SPI/SSP and USB-MSD" paragraph near the bottom.
The host stack interface of LPC17xx USBHostLite (usbhost_lpc17xx.h) is common with LPC2468 (usbhost_lpc2468.h) except for Host_Isr(). Just minor change of above example will run it on LPC2468.
Tsuneo
Hi Tsuneo! I am doing the same project of making LPC2468 a USB Host. I downloaded the Library from the link elm-chan.org/.../00index_e.html which you gave in your reply. But what changes I have to make to Hostlite so that it works with Fatfs module..? Where should I attach the FatFs library in the HostLite?
> Where should I attach the FatFs library in the HostLite?
Did you download the FatFs / USBHostLite (LPC17xx) example on above Martin THOMAS's web page? www.siwawi.arubi.uni-kl.de/.../lpc17xx_chanfat_mthomas_20100715c_pub.zip
He've already done it for you :-)
FatFs accesses to physical media using these routines in diskio.c disk_initialize(), disk_status(), disk_read(), disk_write(), disk_ioctl()
Fill the contents of these routines using, MS_Init(), usb_status, MS_BulkRecv(), MS_BulkSend(), blkSize/numBlks of usbhost_ms.c, respectively.
THOMAS's implementation is, lpc17xx_chanfat_mthomas 2\project\Libraries\fat_sd\diskio.c Look in "case USB:" of each routine.
Thank you very much for your kind gesture..Tsuneo...
View all questions in Keil forum