Skip to main content
Visitor II
September 16, 2021
Question

Multiple USB class on same device

  • September 16, 2021
  • 1 reply
  • 1521 views

Dear support team,

Is it possible to run multiple USB class on a same device (STM32F7).

I would like to use 3 class: CDC, audio and MSC. Is it possible ?

Thank you

    This topic has been closed for replies.

    1 reply

    Super User
    September 16, 2021

    It is possible to have a composite USB device which contains multiple devices within it. You need to change the USB descriptors accordingly and implement classes so they all run simultaneously. It is not a trivial thing to do.

    This appears to be a good overview:

    https://sudonull.com/post/68144-CDC-MSC-USB-Composite-Device-on-STM32-HAL

    StabiloAuthor
    Visitor II
    September 22, 2021

    Thank you for your answer.

    I got another question: is there an example application of a USB microphone (using the ST audio class library) ?

    Thanks