USB composite device?

Does anyone have experience how to create an USB Composite Device and use on Portenta H7? (never mind if on USB-C (HS) or main board USB-A (FS) connector).
How do design the enumeration descriptors, what to enable in HAL driver software?

My goal:

  • I want to have a Composite USB Device, seen on host PC as: "a VCP UART" plus an "Audio Recording Device" (e.g. 48KHz, stereo, from onboard MICs, as MIC input).

I am sure, PC can handle, but:

  • how to define the enumeration for a composite device (with two different features)?
    on MCU side
  • how to write the MCU USB drivers (STM32 HAL) for supporting "Composite"?
    (now two data EndPoints EPs on device, how to differentiate...?)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.