Skip to main content
Associate II
July 25, 2025
Question

Virtual comm port is not being formed in USB_CDC project.

  • July 25, 2025
  • 1 reply
  • 300 views

Hello,

I am making a new project by importing the .ioc file of example code "Ux_Device_CDC_ACM" of STM32U5G-DK2. All the .c files of USB_stack are also copied from the example project. Both, example project and My project, look same. My project builds also successfully. But no COMM port is being formed after loading the project to STM32U5G-DK2 whereas, COMM port is being formed with Example project.

What could be the reason ? Please help.

 

With regard,

Sudarshan Chaudhary

 

1 reply

TDK
Super User
July 25, 2025

Does the example project work?

Did you do a diff between projects to see what is different?

"If you feel a post has answered your question, please click ""Accept as Solution""."
SudarshanAuthor
Associate II
July 30, 2025

Hello @TDK ,

Yes the example Project is working and COMM port is being formed.

Since, I generated my project from .ioc file of this example project, so all .c files and .h files are same. Main.c is also same as I have not added any single line of my logic. But still no COMM port is being formed.

What should be done ?

TDK
Super User
July 30, 2025

If your code and the example project are the same, they should behave the same. Must be missing something.

"If you feel a post has answered your question, please click ""Accept as Solution""."