I'm a beginner in the USB stack on STM32F4.
How do I create a project using STM32CubeMX (STM32F4 Discovery) for USB CDC to have 2 virtual COM ports in Device Manager?
I'm a beginner in the USB stack on STM32F4.
How do I create a project using STM32CubeMX (STM32F4 Discovery) for USB CDC to have 2 virtual COM ports in Device Manager?
Try reading the Stack Overflow post STM32CubeMX USB CDC VCP?. I think that it will solve your problem
In this post there is a guide about the procedure you can make. Remember to write your code in the user code section, otherwise it will be excluded.
And after you created the project, select Project Settings in the Code Generator tab and make sure that besides the default configuration, select the Generate peripheral initialization as pair of '.c/.h' files per IP
, to generate the proper project .c files.