2021-12-06 04:49 AM
Hello everyone,
I have trouble while implementing USB HID on a STM32F373.
I use the "custom Human Interface device class" and implemented all like in the video from ST Link. I also tested my device with the HID Terminal from the video (the Programm just sends a string and then prints the response string from the device) [also attached].
The first 2 times the transmission and receive works quite well, but at the 3rd time the program crashes. I captured the USB communication with wireshark (capture is also attached).
There I can see that the Device response with the status "USBD_STATUS_STALL_PID" (see the following picture)
If any one of you have an idea what could be wrong, please give me a hint.
I m searching this problem for a long time now, but still have no idea.
Thank you very much.