Skip to main content
Visitor II
March 1, 2023
Question

How to combine USB HID with DFU?

  • March 1, 2023
  • 3 replies
  • 2384 views

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.

    3 replies

    Graduate
    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.

    TA.1Author
    Visitor II
    March 1, 2023

    Okay thanks.

    Do you have any recommendations?

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

    TA.1Author
    Visitor II
    March 1, 2023

    Okay thanks!

    Visitor II
    April 17, 2023

    Hi,

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

    Best regards,

    Annette

    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.