Associate II
December 8, 2020
Solved
STM32CubeMx v5.1.0 USBD_SUPPORT_USER_STRING parameter can't have value edited
- December 8, 2020
- 3 replies
- 1670 views
I am aware I am using a slight outdated version and so apologise if this fix has already been implemented.
When selecting a Custom HID Class under the middleware tab there is no option to enable or disable the USBD_SUPPORT_USER_STRING parameter, and is then set to 1 by default after generating code. This resulted in a 2 day headache trying to debug why my device was hard faulting!
- During enumeration if this parameter is set to 1 Windows will ask for a special descriptor, if this descriptor has not been coded/provided then the device will throw a hard fault.
