Skip to main content
Visitor II
April 21, 2023
Question

Have two USB Audio Device Class

  • April 21, 2023
  • 6 replies
  • 2230 views

I have a STM32F446 MCU. I want to use the two USB ports featured by the MCU and have a single Audio Device Class on each USB but once one is selected in the CubeMX, the other is greyed out.

    This topic has been closed for replies.

    6 replies

    TLest.2Author
    Visitor II
    April 21, 2023

    CubeMX returns the information: The USB AUDIO share the same audio frequency

     
    _legacyfs_online_stmicro_images_0693W00000biaF8QAI.png

    Super User
    April 21, 2023

    Cube tries to tell you : this is impossible, it cannot work.

     you want two steering wheels in one car.

    so what you want to do with it ?

    TLest.2Author
    Visitor II
    April 21, 2023

    Thanks for your reply, but Cube does not tell me it is not possible.

    There is also plenty of things that can be done outside of Cube (multiple class driver is one example) that is why I'm asking if there is actually something that prevents this implementation or a limitation that I might bypass with a custom implementation.

    Super User
    April 21, 2023

    Unfortunately Cube does not support this "as is", but it can be fixed manually in the code.

    Try to create two Cube projects, each one with one USB instance, then merge. (or two USB instances with different classes).

    TLest.2Author
    Visitor II
    April 21, 2023

    Pavel, thanks for your reply. Will definitly try this and let the community know.

    TLest.2Author
    Visitor II
    May 31, 2023

    I confirm this worked out just fine.