Skip to main content
TA.1
Associate II
March 1, 2023
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
March 1, 2023

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
March 1, 2023

Okay thanks.

Do you have any recommendations?

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

TA.1
TA.1Author
Associate II
March 1, 2023

Okay thanks!

Annette1
Associate
April 17, 2023

Hi,

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

Best regards,

Annette

mohamed.ayed
ST Employee
March 1, 2023

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.