2020-11-02 08: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.
2020-11-03 05: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.
2020-11-03 07: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.
2020-11-03 11:54 AM
turns out the default report descriptor doesn't work. Had to change that.
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