Unique VID/PID for multiple VCP interfaces on STM32U5A5 using USBX
Hi all
I would like to create 2 virtual COM ports (VCPs) using the CDC class in USBX. The .ioc only allows for one unique PID and VID, but it appears that multiple interfaces can be created of the same class.
I want to know if it is possible to create two interfaces with the CDC class, using the USBX peripheral, and to assign a unique PID/VID to each one, instead of the same PID/VID, but different interface numbers. It appears impossible using the .ioc file alone, but can it be done somewhere in code?
The end result I am hoping for is to have something like this:
VCP_NR_ONE (COM1) with hardware ids: VID → 0x1234 PID →0x4567
VCP_NR_TWO (COM2) with hardware ids: VID → 0x1234 PID → 0x7890
while still using only the USB_OTG_HS peripheral on the STM32U5A5
Thanks☺


