Have two USB Audio Device Class
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-20 6:28 PM
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.
- Labels:
-
Audio
-
STM32CubeMX
-
STM32F4 Series
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-21 5:45 AM - edited ‎2023-11-20 7:32 AM
CubeMX returns the information: The USB AUDIO share the same audio frequency
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-21 5:56 AM
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-21 9:31 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-21 11:33 AM
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-21 12:08 PM
Pavel, thanks for your reply. Will definitly try this and let the community know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-31 6:22 AM
I confirm this worked out just fine.
