Hello @DJung.3
You need to register two instances with USBD_RegisterClassComposite.
/* Init Device Library */
USBD_Init(&USBD_Device, &COMPOSITE_Desc, 0);
/* Register CDC class first instance */
USBD_RegisterClassComposite(&USBD_Device, USBD_CDC_CLASS, CLASS_TYPE_CDC, CDC_EpAdd_Inst1);
/* Register CDC class second instance */
USBD_RegisterClassComposite(&USBD_Device, USBD_CDC_CLASS, CLASS_TYPE_CDC, CDC_EpAdd_Inst2);
/* Add CDC Interface Class */
if (USBD_CMPSIT_SetClassID(&USBD_Device, CLASS_TYPE_CDC, 0) != 0xFF)
{
USBD_CDC_RegisterInterface(&USBD_Device, &USBD_CDC_fops);
}
/* Add CDC Interface Class */
if (USBD_CMPSIT_SetClassID(&USBD_Device, CLASS_TYPE_CDC, 1) != 0xFF)
{
USBD_CDC_RegisterInterface(&USBD_Device, &USBD_CDC_fops);
}
/* Start Device Process */
USBD_Start(&USBD_Device);