cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual comm port is not being formed in USB_CDC project.

Sudarshan
Associate II

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

 

4 REPLIES 4
TDK
Super User

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".

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 ?

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".

@Sudarshan wrote:

Since, I generated my project from .ioc file of this example project, so all .c files and .h files are same.


Not necessarily true. Generated files have user code sections. Those are not generated.
I suggest using a compare tool, such as winmerge, to compare the projects file by file.

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.