cancel
Showing results for 
Search instead for 
Did you mean: 

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

Lzhan.2
Associate

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?

2 REPLIES 2
Pavel A.
Evangelist III

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

thank you very much!

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