2025-07-25 4:45 AM
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
2025-07-25 7:04 AM
Does the example project work?
Did you do a diff between projects to see what is different?
2025-07-29 10:26 PM
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 ?
2025-07-30 5:13 AM
If your code and the example project are the same, they should behave the same. Must be missing something.
2025-07-30 5:27 AM
@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.