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

making lpc2478 board to recognize a usb keyboard

Hi all, I made a custom board using lpc2478 and made my pendrive to detect by using usbhostlite. Now I want to do something like this, if i plug a usb keyboard or mouse it should be detected by my lpc2478 board. If I am not wrong, my lpc2478 usb should act as host for this. I ve been browsing the keil forums and examples and discussions were given for recognizing the board as hid on pc.Is there any reference project or example available for recognizing the keyboard by a lpc2478 board.? If not, can you give some pointers for doing the programming?Thank you.

  • UsbHostLite is designed for simple operations on LPC series running without an OS.

    It has a lot of limitations expressed here:

    ics.nxp.com/.../
    Classes other than the mass storage are not supported.
    The mass storage interface must be present in the first configuration.
    Max Logical Unit Number (LUN) greater than zero not supported.
    File systems other than FAT16 are not supported.
    Long filenames are not supported.
    Files located in folders other than root directory cannot be accesed.
    The buffer size used in the application must not exceed 4KB.

    ics.nxp.com/.../an10703.pdf

    Try to adapt an OS either commercial or from the free-ones for the specific device.
    Another option is to write the add-on software for the HID devices in question.

  • Thanks for the reply! I actually modified USBHostlite and added support for fat32 and also for Long File names. My final aim is to add a usb hub and attach HIDs like keyboard or mouse to the hub. What I meant to ask is, is there any opensource library available for accomplishing this task? Thanks again.

  • Some directions on UsbHostLite are discussed here:

    http://www.keil.com/forum/20246/

  • Hi,

    I'm using the usb host lite code on LPC2478 board. The Host_WDHWait always hangs.

    When I insert an USB stick, only one interrupt is generated.i tried to check with all pendrives which is formatted with FAT16.i think my initialization is wrong.Can you please send the host initialization code so that i can cross verify it.

    Thanks,
    Murthy.