Skip to main content
YChan
Associate
November 5, 2021
Solved

Config multi USB classes by using STM32CubeMx

  • November 5, 2021
  • 1 reply
  • 2226 views

Hi,

I used STM32CubeMx to config USB VCOM device on STM32F469 discovery kit and it worked well. Then I want to add another class (eg HID\Auddio), but STM32CubeMx only allows config one type of class. If I change the class, then all libraries about the last configured class will be removed.

So, my question is how to config library for multi USB class by using STM32CubeMx?

Good day,

Young

This topic has been closed for replies.
Best answer by TDK

CubeMX doesn't support composite USB devices. There are examples online of how to do this, but they will require some effort on your part to adapt the code. Here is one of several hits:

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

1 reply

TDK
TDKBest answer
Super User
November 5, 2021

CubeMX doesn't support composite USB devices. There are examples online of how to do this, but they will require some effort on your part to adapt the code. Here is one of several hits:

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

"If you feel a post has answered your question, please click ""Accept as Solution""."