Skip to main content
Visitor II
January 2, 2021
Question

Communication with PC in virtual COM port

  • January 2, 2021
  • 2 replies
  • 682 views

Hello,

Is it possible if MCU communicates with PC in virtual COM port, using USB connected as shown below.

USB_DP --- OTG_FS_DP

USB_DM --- OTG_FS_DM

Could anybody please show me example?

Thank you.

    This topic has been closed for replies.

    2 replies

    Graduate II
    January 2, 2021

    What STM32? There's like hundreds of different ones.

    Most have Cube example libraries provide Device CDC builds which can be used directly or ported.

    STM32Cube_FW_F7_V1.15.0\Projects\STM32756G_EVAL\Applications\USB_Device\CDC_Standalone

    Khira.1Author
    Visitor II
    January 5, 2021

    According to your advice, I was searching how to use CDC.

    Then, it could be done by using USB_OTG_FS and USB_DEVICE with STM32CubeIDE.

    Thank you.