I try to run the STM32 USB Example und changed the USB-Type to CDC.
Under Windows 10, there is an issue.
The device will shown as “STM32 Virtual ComPort in FS Mode” under Other devices
and as “Serial USB-Device” under Ports, which is not correct.
Both devices canĀ“t find the right driver.
For Windows versions below 10, you can install the STM32 Virtual COM Port Driver.
For Windows 10, you should use the Microsoft inbox driver.
To get the Microsoft driver working, you must change the values bDeviceClass and the bDeviceSubClass from 0x00 to 0x02.
The value can be found in the usbd_desc.c in function __ALIGN_BEGIN uint8_t USBD_DeviceDesc[USB_LEN_DEV_DESC] __ALIGN_END near line 74
After the change is made, the CDC will shown as Serial USB-Device under Ports with a working driver.
Hope this will help someone which has the same problem.
Best regards!
Attachments:
You must be
logged in to view attached files.