The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.
Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/
I want to develop a USB2.0 composite device (STM32µC) consisting of a UVC and a HID component. Until now I used 2 separate devices – the UVC and HID component which I’ve connected to a HUB and which worked so far using WIN7 or WIN10. To put everything into one µC I have copy+ pasted everything together accordingly to some examples on how to make a composite. However this approach didn’t worked so far. What might work is that the composite device descriptor is read and both devices show up in the device manager for approx. 3 sec until the HID device fails with code 10 (but only in WIN10 – in WIN 7 just 2 HID devices show up with code 10 failure).
I am not sure how to debug this problem – both sides: the host (windows side) and the device (side inside the µC) are complicated and depend from each other. The reason why I posted this question here is that I was thinking to debug the driver inside the device using windows (host) tools.
An ideal tool would let me go step by step through the device enumeration process inside the win kernel while observing what happened inside my device. I tried so far WIN logman + network monitor and also USB20CV from which I understand that the descriptor of the 2/0 interface (which is the HID device) could not be retrieved. Overall something/a lot inside my device driver inside the µC device went wrong.
I would be very happy if someone could give some hints how to debug this problem from the windows (host) side.
|Upcoming OSR Seminars|
|OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!|
|Internals & Software Drivers||30 Nov 2020||LIVE ONLINE|
|Writing WDF Drivers||7 Dec 2020||LIVE ONLINE|
|Developing Minifilters||Early 2021||LIVE ONLINE|