LPC11U_LPC13U_CodeBase icon indicating copy to clipboard operation
LPC11U_LPC13U_CodeBase copied to clipboard

USB Bulk and USB HID can't coexist w/ROM drivers

Open microbuilder opened this issue 12 years ago • 1 comments

Bulk and HID can't be used at the same time with the ROM drivers, seems to be buffer related. Need to explore, but for now don't use these two classes together at the same time.

microbuilder avatar Jul 18 '13 20:07 microbuilder

Symptom: Set Report Control request to Control Endpoint for HID interface will end up with garbage data. Other actions still works well ( custom bulk transfer & send, receive report from HID interrupt endpoint)

USB configuration to reproduce one of following

  • CDC + HID Generic + Custom.
  • CDC + HID Generic + HID keyboard
  • CDC + HID Generic + MSC

Walkaround This bug can last quite long, until it is fixed there are 2 walkaround

  1. Dont use control endpoint to set/get report to HID Generic in above (or more) configurations, use HID interrupt endpoint instead
  2. Place ram used by rom driver in main memory in usbd.c by commenting out __DATA(RAM2) if you are using lpcxpresso (weird huh ?) uint8_t usb_RomDriver_buffer[USB_ROM_SIZE] ALIGNED(2048); // __DATA(RAM2);

hathach avatar Jul 19 '13 04:07 hathach