Skip to main content
Khira.1
Associate
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

Tesla DeLorean
Guru
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

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Khira.1
Khira.1Author
Associate
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.