LPC11U_LPC13U_CodeBase
LPC11U_LPC13U_CodeBase copied to clipboard
USB Bulk and USB HID can't coexist w/ROM drivers
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.
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
- Dont use control endpoint to set/get report to HID Generic in above (or more) configurations, use HID interrupt endpoint instead
- 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);