Skip to main content
BParh.1
Senior III
April 11, 2021
Solved

How to setup virtual com port using CubeMX for particular STM32 MCU?

  • April 11, 2021
  • 1 reply
  • 2508 views

I need help on some pointers or directions on how to setup virtual com port for my STM32F769I-DISCO kit.

So I search a couple of youtube videos on how to setup virtual com port using STM32 CubeMX. Although the videos were for different MCUs. I followed the same steps but not successful. I could not see new virtual com port in my device manager (windows 10 OS). And also, my display graphics looks corrupted.

The steps I follow basically :

  1. Enable HSE clock with Crystal/Ceramic Resonator
  2. On USB_OTG_FS I select mode Device_Only
  3. On USB_Device I select class for FS IO to Communication Device Class (Virtual Port Com)
  4. Go to clock setup and accept whatever the default automatic fix by CubeMX.
  5. Generate code and rebuild and run on target

So my questions :

  1. Is there official docs from STM how to configure Virtual Com Port?
  2. Are the steps to configure it different for each MCU?
Best answer by BParh.1

I manage to resolve this already

1 reply

BParh.1
BParh.1AuthorBest answer
Senior III
April 28, 2021

I manage to resolve this already

Mike_B
Visitor II
May 17, 2024

Would you mind sharing how you solved it?