STM32F042F6P4 Custom HID Class issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-02 8:50 PM
I can generate code from all the USB classes and it all works expect for one.
custom hid class results in a "Driver Failed" message in windows.
In device manager is says: This device cannot start. (Code 10)
I have no clue what is causing this. I did not modify the code at all it is just based on the default configuration of the custom hid class. Anyone have any ideas?
It is a custom board, but I know its not the board because all the other classes work.
- Labels:
-
STM32F0 Series
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-03 5:43 AM
Hello,
Do you have already specific use case for custom HID class, or just testing?
Please check STM32 USB training, there is demonstrated creating of custom HID example also with modification of generated project to support higher packet size than default 2 bytes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-03 7:01 AM
My ultimate goal is to send 64 byte packets back and forth to my desktop application.
The issue is I can't even get the default custom hid example to work. I tried the video and I also ended up with the same error.
I'm still not sure what is causing this error. All the other classes work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-03 11:54 AM
turns out the default report descriptor doesn't work. Had to change that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-03 12:22 PM
Hello @FKopp.1 ,
Please follow this article USB device not recognized, with the solution is to increase the heap size, or configure the USB library to use static allocation.
Imen
Thanks
Imen
