cancel
Showing results for 
Search instead for 
Did you mean: 

Communication with PC in virtual COM port

Khira.1
Associate II

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.

2 REPLIES 2

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
Khira.1
Associate II

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.