I am using CubeMx in order to generate startup code for the USB virtual com port device. It works fine. But I need to implement 2 virtual com ports on 1 USB interface.
I can't seem to find any source of information how to do it. Is it possible?
I am using CubeMx in order to generate startup code for the USB virtual com port device. It works fine. But I need to implement 2 virtual com ports on 1 USB interface.
I can't seem to find any source of information how to do it. Is it possible?
I've never done it with two CDC's before, but what you are trying to do is make a 'composite device'. The following thread has posters who seem to have done it and posted working code, note that it doesn't use CubeMx.
A couple of other links in case that doesn't work
STM32 USB Device Library User Manual
The device manual is for an F0, but it has examples of composite devices in it. You can likely get example code that matches the manual or code that will run on other STM32's from the ST website.