Skip to main content
Associate III
October 31, 2025
Question

USB HID Stm32f767

  • October 31, 2025
  • 1 reply
  • 191 views

Hello,

I've built a project with an STM32F767 and a USB HID connection. I also have a Visual Studio 2010 application to set PA0 to 1 for testing. My connection is established, and in Device Manager, the USB Custom HID device is recognized, but I can't set PA0 to 1. I built my USB HID code using Cube MX and the HidLibrary.dll driver for VB2010. I don't understand why I'm having this problem. Can anyone help?

I am able to get a result, temperature acquisition and change of state of PA0 in CDC mode.

Best regards.

My code is attached.

Sébastien.

 

1 reply

T_Hamdi
ST Employee
November 3, 2025

Hello @PSEBA.1,

After reviewing your application, it appears that you are missing the configuration for the CUSTOM_HID_OutEvent function. Currently, there is no process implemented to handle the data sent from the host to set PA0 to 1.

I recommend referring to the article "How to implement a USB device custom HID class on STM32" , which provides detailed instructions on configuring the custom HID class, including handling the OutEvent for receiving data from the host.

"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.Hamdi Teyeb"