USB Composite (AUDIO + VCOM) non recognised in WIN (correctly works in MACOS and LINUX)
Hi all,
after developing the firmware for a composite USB application (AUDIO + CDC_VCOM) for an STM32F446 device, I'm facing strange behaviour in the driver side for Windows (I've tested both 10 and 8 with the same results) - Linux and MacOs works out of the box.
It seems that windows only sees the first device in the descriptor (AUDIO), install the standard drivers, and then fails to identify the CDC_VCOM device as the PID of the parent is detected as a generic "USB\VID_203A&PID_FFFE\PW3.0" without any %MI_01/&MI_02 identifier of composite device.
Above the events from system information when the device is connected:
Device USB\VID_0483&PID_5741\30353338045138352800200021 had a problem starting.
Driver Name: wdma_usb.inf
Class Guid: {4d36e96c-e325-11ce-bfc1-08002be10318}
Service: usbaudio
Lower Filters:
Upper Filters:
Problem: 0xA
Problem Status: 0xC0000182
Device USB\VID_0483&PID_5741\30353338045138352800200021 was configured.
Driver Name: wdma_usb.inf
Class Guid: {4d36e96c-e325-11ce-bfc1-08002be10318}
Driver Date: 03/18/2019
Driver Version: 10.0.18362.1
Driver Provider: Microsoft
Driver Section: USBAudio
Driver Rank: 0xFF2002
Matching Device Id: USB\Class_01
Outranked Drivers:
Device Updated: false
Parent Device: USB\VID_203A&PID_FFFE\PW3.0Unfortunately I am clueless on how WIN works out the right driver for a device... What I can see is that te event list of a correctly detected composite device (STLINK-V2 MSC+VCOM) look like this:
//______________________ STLINK VCOM + MSC [MSC]
Device USBSTOR\Disk&Ven_MBED&Prod_microcontroller&Rev_1.0\8&25cc1fd0&0&0673FF544949847067092959&0 was started.
Driver Name: disk.inf
Class Guid: {4d36e967-e325-11ce-bfc1-08002be10318}
Service: disk
Lower Filters:
Upper Filters:
Device USBSTOR\Disk&Ven_MBED&Prod_microcontroller&Rev_1.0\8&25cc1fd0&0&0673FF544949847067092959&0 was configured.
Driver Name: disk.inf
Class Guid: {4d36e967-e325-11ce-bfc1-08002be10318}
Driver Date: 06/21/2006
Driver Version: 10.0.18362.1
Driver Provider: Microsoft
Driver Section: disk_install.NT
Driver Rank: 0xFF0006
Matching Device Id: GenDisk
Outranked Drivers: disk.inf:GenDisk:00FF2002
Device Updated: false
Parent Device: USB\VID_0483&PID_374B&MI_01\7&855d780&0&0001
//______________________ STLINK VCOM + MSC [VCOM]
Device USB\VID_0483&PID_374B&MI_02\7&855d780&0&0002 requires further installation.
Driver Management concluded the process to install driver stlink_vcp.inf_amd64_29e9917f088afd48 for Device Instance ID USB\VID_0483&PID_374B&MI_02\7&855D780&0&0002 with the following status: 0x0.
Driver Management has concluded the process to add Service usbser for Device Instance ID USB\VID_0483&PID_374B&MI_02\7&855D780&0&0002 with the following status: 0.I hope somebody can help,
thank you,
Davide
