Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
microbuilder opened this issue Jul 18, 2013 · 1 comment
Open

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

microbuilder opened this issue Jul 18, 2013 · 1 comment
Assignees
Labels

Comments

@microbuilder
Copy link
Owner

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.

@ghost ghost assigned hathach Jul 18, 2013
@hathach
Copy link
Collaborator

hathach commented Jul 19, 2013

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants