Skip to main content
Visitor II
August 3, 2023
Question

STM32 COM PORT DRIVER

  • August 3, 2023
  • 6 replies
  • 10291 views
Hello everyone,
I'm really in crisis. I have a STM32F303VC discovery microcontroller and I'm developing a program to make it communicate with LABVIEW through USART.
LABVIEW can communicate only through the COM ports of the PC.

The problem is that when I go to connect my board to the pc, it is read as a USB device and not as 'STMicroelectronics STLink Virtual COM port'.
How can I fix? I'm trying in every way, installing drivers etc but the problem persists.

p.s. I have windows 10 and I can debug the program
    This topic has been closed for replies.

    6 replies

    Technical Moderator
    August 7, 2023

    Hello @ferraro,

    You may need to update the STLink firmware.

    Imen

    Super User
    August 7, 2023
    Graduate II
    August 7, 2023

    The "discovery microcontroller" and the ridiculous text formatting says it all...

    What you mean is a virtual COM port by USB CDC, which is not USART. And it doesn't show up as ST device, because it is your device, which you are developing.

    Graduate II
    August 7, 2023

    The F3-DISCO has TWO USB connectors, one to the ST-LINK, and one to the F3 itself.

    For the F3 you'd need to load a USB CDC firmware into the device, you can change the VID, PID and Descriptors that returns, if need be. You'd need something for which you have a matching USB Driver, or that can use USBSER.SYS.

    Most would use the USB CDC and USART connectivity afforded by the ST-LINK/V2-1

    Edit your post so as not to use the code pasting tool.. makes it hard to read

    "Hello everyone,
    I'm really in crisis. I have a STM32F303VC discovery microcontroller and I'm developing a program to make it communicate with LABVIEW through USART.
    LABVIEW can communicate only through the COM ports of the PC.

    The problem is that when I go to connect my board to the pc, it is read as a USB device and not as 'STMicroelectronics STLink Virtual COM port'.
    How can I fix? I'm trying in every way, installing drivers etc but the problem persists.

    p.s. I have windows 10 and I can debug the program"

    Super User
    August 7, 2023

     And it doesn't show up as ST device, because it is your device, which you are developing.

    ST allows to reuse their vendor & device IDs for the VCP example (or do they?)  - otherwise  users would have to pay for their own IDs. And there's no much sense in inventing a creative custom name because Windows 10+ won't show it anyway. The  name displayed by Windows 10+ inbox CDC driver is not based on the firmware string descriptors...

    Graduate II
    August 7, 2023

    Windows 10+ shows it as a "USB Serial Device (COM3)". So probably the real issue here is that the guy just doesn't have a proper USB CDC device or USB stack on MCU at all.

    Visitor II
    January 29, 2025

    I have a mLRS MAVLink 900MHz TX Module KIT, mR900-30-TX, and successfully converted it to use it with mR24-30 as a TX in SiKTelem mode: tx-matek-mr900-30-g431kb-siktelem-xxx. It works well under Windows 10 64-bit with STM32 COM PORT DRIVER 5.0.0.0 but it fails to work with Windows 11 64-bit  STM32 COM PORT DRIVER version 1.4.0.0.

    How do I get it working under Windows 11 64-bit? I have tried this driver and it does not support Windows 11.

    Jaigay_0-1738123700312.png