STM32F7 USB CDC VCP unable to open serial port
I have strange problem on my hand which I can't figure out if it is a Windows driver or USB stack issue. I have an embedded STM32F732 using USB FS CDC for communication. The MCU is self powered with VBus sensing. When I connect it to a Windows 10 or MacOS machine, I can open a terminal program and communicate with the MCU just fine. When I attempt to do the same with a Windows 7 or 8.1 machine, the COM port does not open. For instance Putty says 'Unable to open connection to COM6. Unable to configure serial port.'
For Windows 7 & 8.1, the device manager has the MCU listed as STMicroelectronics Virtual COM Port. Both machines have the latest v1.5 VCP drivers from STM installed. The interesting thing I discovered is that if I plug the usb cable into the Mac or Win10 machine first and then plug it into the Win7 or 8.1 machine, I can connect to it! And it will still works after I do a soft reset. It will stop working if I do a hard reset and cut power.
This makes me think it is something on the MCU USB stack where it retains information between soft resets, but I don't know how the stack works at all. I use CubeMX to generate the code, in which the only thing I have changed is the device descriptor, although Windows still uses
STMicroelectronics Virtual COM Port.
Does anybody have an idea of where to start tracking down the problem? Thank you!
#usb-fs-cdc #stm32f