Skip to main content
Explorer
August 18, 2024
Solved

STM32F411CEUx USB Serial Port Issue

  • August 18, 2024
  • 1 reply
  • 937 views

I am having trouble configure the USB-C port for serial output. The board I got is a "BlackPill" and I have went to try some example code for USART2 and USART6, however, upon a reset, I still do not have a COM port appear. Any advice?

    This topic has been closed for replies.
    Best answer by AScha.3

    Where you expecting to see a com port when running a UART?

    If you want to get something on USB connection, like a VCP, you have to run something that doing the handling on the USB bus: so use a serial to USB adapter, connected to the UART you want to use, or set in Cube the USB -> device -> virtual com Port, to let it include all the libraries and USB stack to do the action, that's needed for a USB VCP to work.

    Read examples or here in forum how to use it then.

    1 reply

    AScha.3Answer
    Super User
    August 18, 2024

    Where you expecting to see a com port when running a UART?

    If you want to get something on USB connection, like a VCP, you have to run something that doing the handling on the USB bus: so use a serial to USB adapter, connected to the UART you want to use, or set in Cube the USB -> device -> virtual com Port, to let it include all the libraries and USB stack to do the action, that's needed for a USB VCP to work.

    Read examples or here in forum how to use it then.