USB Composite Device for LPC134x

Hi,

I've created a firmware application for USB composite device in LPC1343, I found an example for this Micro controller which is the composite device is composed of CDC and MSC in AN11018 from nxp for my reference. What I did I've created a composite driver using USB HIDROM and USB MSCROM running in Keil, but unfortunately when i run the firmware it didn't enumerate the device. I used both of the on-chip driver of the LPC1343 for this firmware application. It is possible to combine this two?
I combine the code sample of on-chip driver for HID and MSC into one file but different function on each and call in the main function, but unfortunately it didn't worked. When I checked on the Device Manager, I found a "USB Mass Storage" with a warning sign (exclamation point). I think the device doesn't enumerated
properly.Could someone help me about this?

Thanks.

Parents
  • > I've created a composite driver using USB HIDROM and USB MSCROM

    The USB stack on the ROM (USBHID_rom and USBMem_rom) doesn't provide enough callbacks for class implementation, which requires for composite device. Start with full USBHID and USBMem source on this sample code, instead of the ROM version.

    Sample Code Bundle for LPC13xx Peripherals using Keil's MDK-ARM V1.05 (Mar 28, 2011)
    ics.nxp.com/.../code.bundle.lpc13xx.keil.zip



    > Suggestion to Keil programmer (if s/he would read this post :-)
    It's the time to re-organize the source code for class implementation.
    #if USB_MSC / #if USB_HID / #if USB_CDC, etc. on the source code indicate the place where callbacks for class implementation are inserted, instead of the #if's. And then, the stack code grows more tight and universal.

    Tsuneo

Reply
  • > I've created a composite driver using USB HIDROM and USB MSCROM

    The USB stack on the ROM (USBHID_rom and USBMem_rom) doesn't provide enough callbacks for class implementation, which requires for composite device. Start with full USBHID and USBMem source on this sample code, instead of the ROM version.

    Sample Code Bundle for LPC13xx Peripherals using Keil's MDK-ARM V1.05 (Mar 28, 2011)
    ics.nxp.com/.../code.bundle.lpc13xx.keil.zip



    > Suggestion to Keil programmer (if s/he would read this post :-)
    It's the time to re-organize the source code for class implementation.
    #if USB_MSC / #if USB_HID / #if USB_CDC, etc. on the source code indicate the place where callbacks for class implementation are inserted, instead of the #if's. And then, the stack code grows more tight and universal.

    Tsuneo

Children
More questions in this forum