Skip to main content
TA.1
Associate II
Mar 1, 2023 10:55 AM UTC
Question

How to combine USB HID with DFU?

Hi,

Do anyone know how to combine USB HID with DFU?

What I would like to achieve, a custom HID class that is able to get update using the USB connection.

MCU: STM32G473RET6

This topic has been closed for replies.

5 replies

gbm
Super User
Mar 1, 2023 11:14 AM UTC

The keyword is "USB composite device".STM32 USB stack does not support it (yet) (officially), and when the support is introduced, it will be very complex and basically unusable. Look for some lightweight USB stack on github, suppportign composite devices out of the box.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
TA.1
TA.1Author
Associate II
Mar 1, 2023 1:27 PM UTC

Okay thanks.

Do you have any recommendations?

I have found: https://github.com/alambe94/I-CUBE-USBD-Composite

TA.1
TA.1Author
Associate II
Mar 1, 2023 11:43 AM UTC

Okay thanks!

Annette1
Associate
Apr 17, 2023 10:15 AM UTC

Hi,

Did you succeed in getting USB HID with DFU to work on STM32G473RET6?

Best regards,

Annette

mohamed.ayed
ST Employee
Mar 1, 2023 1:34 PM UTC

Hi,

You Can refer to this topic USB composite : https://community.st.com/s/question/0D53W00001qLxtJSAS/usb-device-composite-applications-share-on-github

You can also refer to X-CUBE-AZ-RTOS-G4 to develop your Composite USB HID-DFU application.