Hello Jan,
we're having the following issue:
- We have implemented a USB composite device (2x Custom HID interfaces), based on SPL (Standard Peripheral Library) from ST and UB lib (from
www.mikrocontroller-4u.de) - both libraries due to the FW having been written some years ago...
- On PC side, I use the hidapi driver from signal11 with two separate programs
- Everything is fine until I send packages via both interfaces at the same time. Then, after some time, both interfaces stop responding on read commands from the host programs and once I close the connections, I can't connect again. Also, when disconnecting and connecting the USB cable again, Windows says it doesn't recognize the device and looking at usbview.exe, I can see that Windows couldn't enumerate the USB device. So, I guess the USB stack somehow crashed. However, the rest of the FW seems still to work fine (can see a LED blinking).
So far I checked USB data transmission using "Device Monitoring Studio", but only saw that after some point, the device doesn't answer to read requests any more.
Re-checked also the descriptors, but since this solution is working without problems in another FW(based on CubeMX-generated USB stack) with more or less the same descriptors, I guess the problem doesn't lie there.
Where would you start looking for the root cause? Maybe you have some suspicion? Maybe it's a problem with FIFO buffer memory allocation or something similar?
We've also got the 5th edition of your book in case you could point us to a specific section.
Kind regards,
Markus