cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H503 Custom Hid Device

K.Herpich
Associate

Good morning,
I add a Custom Hid Device do my STM32H503 Project. In the USBD_Custom_HID_GetReport function, I get
hid_event->ux_device_class_hid_event_report_id == INFO_GET_FW, but how can I send some Bytes back to the PC?
Something like USBD_CUSTOM_HID_SendReport(SendBuffer, 2)... I can not find any example?
Best, Klaus


2 REPLIES 2
mohamed.ayed
ST Employee

Hi @K.Herpich, please refer to this application example running on stm32h743i-eval, showing how to use CustomHID with USBX.

https://github.com/STMicroelectronics/x-cube-azrtos-h7/tree/main/Projects/STM32H743I-EVAL/Applications/USBX/Ux_Device_CustomHID

Regards,

Mohamed

Andy Tsai
Associate II

Hi,

I have the similar request as above, but I don't want to implement the USBX because my project is not a complicate project. I just need the old style USB_Device library or HID_Alone project for example. The current STM32H5 firmware package does not provide the USB_Device library. Will the STM32H5 the package provide it in the future ? If not, can I reference to any other MCU packages ?