Hi
I try to configure a STM32G0B1 as USB composite device for CDC and HID.
I use STM32 Cube IDE 1.13.2.
The basic configuration is done with CubeMX.
I connect the microcontroller to a windows 11 based computer.
I tried to use the composite build which is part of the firmware package.
The ST exmaples for CDC and HID are working idependently.
My version with the composite build is not working. Enumeration is not working, I get a code 10 error for CDC and a wrong device is shown with code 28.
I used USBpcap to trace the problem. The pcap files are viewable with wireshark. For me it looks like the configuration descirptor is put together the right way:
1 Configuration
3 Interfaces (2 are CDC, one is HID)
followed by all 3 interface descriptions.
I compared them, they are identical to the working versions.
What I don't understand is that when I compare the CDC with the composite dump, my Windows 11 computeris sending a URB_FUNCTION_GET_MS_FEATURE_DESCRIPTOR (0x002a).
For the CDC is sends an interface request instead.
I have attached the pcap files. I had to zip them as 7z for upload.
HID and CDC are dumps of the CubeMX examples. Composite is my try to build a composite device.
Maybe someone has an idea what might be wrong?
Thank you very much