Skip to main content
MW_it
Associate
April 13, 2026
Solved

STM32C5 USB host HID

  • April 13, 2026
  • 3 replies
  • 150 views

Hi

Is there an example using a STM32C5 as a USB host controller connecting a USB HID (mouse/keyboard) as input device?

Best answer by STackPointer64

Hello , and Welcome to ST Community!

There is an example in the C5 GitHub repository that you can check out:

Best regards,

3 replies

STackPointer64Best answer
Technical Moderator
April 13, 2026

Hello , and Welcome to ST Community!

There is an example in the C5 GitHub repository that you can check out:

Best regards,

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.
Technical Moderator
April 13, 2026

Hello @MW_it 

For mouse device please refer to the two examples below:

device_hid_mouse_freertos

device_hid_mouse_no_os

 

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question.Saket_Om"
Emil Damkjaer PETERSEN
ST Employee
April 14, 2026

Hello,  

 

If you would like to obtain the examples as standalone projects you can find them through the STM32 Example Library

https://dev.st.com/stm32-example-library/result?filters=N4IgpgHghgtgDgGzAOVmEAuA2gXQDQgwDGArprgQEYD2UATgCbn6ECWDDSA7vetiAFUAygCEAGiBbESAETqsAbmDrMqtRgAUoRANZQA5nwogG8pXQAqATzhGcAXyA

 

Best Regards,

Emil