Skip to main content
TLest.2
Associate
April 21, 2023
Question

Have two USB Audio Device Class

  • April 21, 2023
  • 6 replies
  • 2231 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.2
TLest.2Author
Associate
April 21, 2023

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

 
_legacyfs_online_stmicro_images_0693W00000biaF8QAI.png

AScha.3
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 ?

"If you feel a post has answered your question, please click ""Accept as Solution""."
TLest.2
TLest.2Author
Associate
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.

Pavel A.
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.2
TLest.2Author
Associate
April 21, 2023

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

TLest.2
TLest.2Author
Associate
May 31, 2023

I confirm this worked out just fine.