2025-10-31 6:50 AM - last edited on 2025-11-01 1:43 PM by mƎALLEm
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.
2025-11-03 12:28 AM - edited 2025-11-03 12:29 AM
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.