This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Useful links for configuring USBHostLite for FAT32 file system

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.

Above mentioned information, I have gathered from one of the replies in Keil forum.
I didn't get the sample codes as mentioned in the comment. First website have a list of file functions and a few links to some blogs and codes. But, I am not sure which one i should refer.

The second mentioned link leads to some German university website.

Can someone please explain.

Parents Reply Children
  • Hi,

    Sorry if my question was not so clear.

    I want to use LPC2648 USBHostlite for accessing the files on USB mass storage devices such as USB Pen Drives with FAT32 file system.

    I gone through the related queries in the forum. A few of the links were mentioned there.
    One of the mentioned link was

    Download THOMAS's FatFs/USBHostLite (LPC17xx) example, first.
    www.siwawi.arubi.uni-kl.de/.../lpc17xx_chanfat_mthomas_20100715c_pub.zip

    But, when i accessed this link, it is navigating to a university website. Whether the mentioned link is correct? If so, request you to please let me know the navigation path in the website so that I can get the mentioned zip file.

    In addition, I have USBHostlite code for LPC17XX. What are the changes need to be done for using it for LPC2648.

    Thanks
    Utsav

  • "OnChip Technologies and NXP Semiconductors have partnered to provide USBHostLite
    software"

    www.nxp.com/.../AN10703.pdf

    So you need to contact OnChip Technologies and/or NXP Semiconductors for support - it's not a Keil product.

  • Thank you for the information.

    But hope the first query related to the .zip path may be answered as the reference to the link has been mentioned in the following reply in Keil discussion forum.

    "New! RE: usb hostlite fat32 impplementation
    > 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.

    Tsuneo"

    Thank you,
    Utsav