The USBDevice library is reporting it's 6 strings repeatedly starting on every requested index that is a multiple of 16. This is made evident by using the Generic HID example program (with updated libraries of course), launching SimpleHIDWrite, selecting the device, and clicking Info:
I've determined this to be caused by the DESCRIPTOR_INDEX macro in USBDevice_Types.h, which is defined as (wValue & 0xf). By only preserving the lower 4 bits, the requested index is allowed to roll over to 0 on every multiple of 16. It should instead be defined as (wValue & 0xff), which preserves the entire index byte.
I've submitted a pull request that fixes this issue, please refer to it here: http://mbed.org/users/mbed_official/code/USBDevice/pull-request/3
Issue type: Defect
Severity: Default
Created 11 years, 1 month ago.Updated 11 years, 1 month ago.
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
I've submitted a pull request that fixes this issue, please refer to it here: http://mbed.org/users/mbed_official/code/USBDevice/pull-request/3