Skip to main content
Lzhan.2
Associate
Jul 10, 2020 6:15 AM UTC
Question

How to do use STM32F407VE as USB HID HOST connect a custom HID device

Hi

i have a custom HID device with two interface configurations.i use cubeMX create project. if can enumerate  device but can't communicate.the program stop at

 status = USBH_HID_GetReport(phost, 0x01U, 0U, HID_Handle->pData, (uint8_t)HID_Handle->length); in usbh_hid.c

1. Can USB HOST LIB support this device?

2.Is i need to rewrite usbh_hid.c?

3. can you give me some advices or examples?

This topic has been closed for replies.

2 replies

Pavel A.
Jul 10, 2020 9:47 PM UTC

Do you need to use both interfaces or only one?

The HID examples available from ST show use of only one interface, but there are other examples that show use of several interfaces.

Answers to your questions:

1 - Yes (the "HAL drivers" layer).

2 - Yes. Sorry if this is not the answer you hoped for.

3. Please review the HID examples in the ST "cube" package. More projects can be found on GitHub.

Regards,

-- pa

Lzhan.2
Lzhan.2Author
Associate
Jul 13, 2020 2:38 AM UTC

thank you very much!

i will review the examples and visite GitHub. thank again!