Skip to main content
Visitor II
July 10, 2020
Question

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

  • July 10, 2020
  • 1 reply
  • 716 views

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.

    1 reply

    Super User
    July 10, 2020

    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.2Author
    Visitor II
    July 13, 2020

    thank you very much!

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