Skip to main content
alfinikov
Associate II
Jan 11, 2022 1:05 PM UTC
Question

How using the cubeMX program to implement the usb composite device?

..

This topic has been closed for replies.

3 replies

TDK
Jan 11, 2022 2:53 PM UTC

CubeMX doesn't support this directly, but it can be done in your own code.

Here is one post of many:

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""."
alfinikov
alfinikovAuthor
Associate II
Jan 12, 2022 1:04 PM UTC

Thank you

alfinikov
alfinikovAuthor
Associate II
Jan 29, 2022 1:21 PM UTC

I use stm32l4xx, instead of the HAL_PCDEx_PMAConfig() functions, I use the HAL_PCDEx_SetTxFiFo()/HAL_PCDEx_SetRxFiFo() functions. Could you tell me how to configure them correctly for Composite USB? Thanks in advance.