=> Please how can i handle to fix this issue! if there is a wrong value generated by CubeMX! or a change that should i do in my environement (PID, VID. #define USBD_INTERFACE_STRING_FS "CDC Interface" #define USBD_CONFIGURATION_STRING_FS "CDC Config" #define USBD_PRODUCT_STRING_FS "STM32 Virtual ComPort" #define USBD_MANUFACTURER_STRING "STMicroelectronics" If your device behaves well with Win 10 or Linux hosts, theres probably nothing to do on the STM32 side. Else, connect it thru a good USB 2.0 hub, high or full speed. So the best I can advice is to connect to a USB2 port if the machine has a USB2 controller. I thought that the probem is related to my USB converterĪctivate USB_Device middelware in CDC modeĬheck the CubeMX file attached for more detailsīut the problem still exist!=> VCP error ''This device cannot start(code 10)''.Īnd here is the define in "usbd_desc.c" file Virtualbox USB redirector also can contribute to the problem. If anything is unclear, please do not hesitate to let me know. In the first case, i tried to configure UART but when i connect my USB TTL converter to my PC: it informs me that VCP error ''This device cannot start(code 10)''. For the steps to manually add drivers, you can seek further technical support from the hardware provider, as different hardware models can add drivers in different ways. I want to handle STM32F407 Disco via VCP.
It seems Windows 10 is more fussy or requires more information ?Īnyone have any further information to share ? If it's not a bug in the Windows driver, then I'm guessing it might be either a setting in the USB device descriptors or configuration, or a bug in the USB stack on the STM32. I'm thinking it must be something to do with the device capabilities (what Windows thinks the capabilities of the com port is, and what Windows thinks I am allowed or not allowed to set). I've looked at all the values set in the `DCB` structure and they all look ok. The error code is `87` which is an INVALID PARAMETER. STM32 starts in DFU mode if BOOT-pins are pulled accordingly: 'System memory' means embedded bootloader, DFU in this case. Virtual Com Port, VCP to method of choice for almost all recent flight controllers to connect to PCs. I connects and enumerates on Win7, Win 10 and Mac, but only Win7 and Mac can open the device as a serial port (COM port).ĭebugging this I found that the low level windows API to `SetCommState()` was returning `false` on Windows 10 (it must return True on Windows 7 as it opens the port ok). Windows 11: STMicroelectronics Virtual Com Port not working. A proprietary STM32F4 board using onbard USB. If you upload more than 5 files we will display all attachments as thumbnails.įor a full reference visit the Markdown syntax.I have this problem too.Just like Github, a blank line must precede a code block. Mention another user by For syntax highlighting, surround the code block with three backticks:.I am already running the latest drivers from ST for both ST-Link and the Virtual COM Port. Create numbered lists by starting lines with a number and a dot I should have said that I have already downloaded and installed (multiple times) both the VCP driver 1.5.0 in VCPV1.5.0SetupW8圆464bits.exe and the ST-Link driver in STSW-LINK009. * Create lists by starting lines with asterisks.That's the hard one: exclamation, square brackets and then the URL to the image in brackets. To **bold** text put two asterisks each side of the word.I opened up the web IDE tried the normal way to connect and it said Connect failed. Plugged in a fresh Pico and saw the red light flash. I didnt do a clean install of Windows 10, just an upgrade from 7 to 10. To *italicise* text put one asterisk each side of the word Driver worked well in Win 7 until I updated to Win 10.Create headers by underlining text with = or.On Windows 10 you dont need to install any driver. Create a new project for your STM32 MCU (you dont need to enable anything about the USB peripheral. We will auto-convert links, and if you put asterisks around words we will make them bold. STM32F103XX USB Device and Virtual Serial Port (VCP) library. Don't worry about formatting, just type in the text and we'll take care of making sense of it.