Skip to main content
kruft
Associate II
June 10, 2016
Question

CustomHID with HAL

  • June 10, 2016
  • 7 replies
  • 1817 views
Posted on June 10, 2016 at 13:23

Hello,

In HAL USB_Device class library function (usbd_customhid.c) USBD_CUSTOM_HID_Setup() not exist case CUSTOM_HID_REQ_GET_REPORT(bug or not?), but in usb spec  GET_REPORT must be realized. 

Could you recommend right steps for working with CustomHID USB device class?

And may be exist appnote for it?

#custom-usb-hid
This topic has been closed for replies.

7 replies

fb2
Associate II
May 26, 2017
Posted on May 26, 2017 at 16:38

Hello, I cannot access the link with the thread solving this issue. Can you tell me please where I can find the solution for this please? I need not only to transmit data via HID, but also to receive data. Thank you for you help.

kruft
kruftAuthor
Associate II
June 10, 2016
Posted on June 10, 2016 at 15:42

Hi forumstm32,

But what the reason why case  CUSTOM_HID_REQ_GET_REPORT not include into usbd_customhid.c if in spec it must be for Setup report? And will be CutomHID_Standalone example work correctly with stm32 host driver?

slimen
Visitor II
June 13, 2016
Posted on June 13, 2016 at 23:30

Hi panov.roman,

CUSTOM_HID_REQ_GET_REPORT is not implemented by ST. 

So, we would suggest ST adding this function and include it into usbd_customhid.c 

Regards
Amel NASRI
ST Technical Moderator
June 14, 2016
Posted on June 14, 2016 at 11:51

Hi,

Please note that this request is reported internally and it is under review.

-Mayla-

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
hmc
Associate III
July 17, 2016
Posted on July 17, 2016 at 23:44

Hello Mayla, the custom HID example from CubeMX USB middleware is NOT enumerating to Windows (which just complains about the device descriptor request failed), as you can see in attached picture.  I am wondering if this might be due to the ill-formed CUSTOM_HID_ReportDesc_FS.  From what I read in USB Complete, 4th Edition, the 2 bytes (the last byte being ''end collection'') you have as a descriptor is ill-formed.  Please find my steps to get to this point in my

http://henryomd.blogspot.com/2016/07/usb-hid-on-stm32f042.html

.

0690X00000604ooQAA.png

fb2
Associate II
May 26, 2017
Posted on May 26, 2017 at 16:48

Hello Panov, I'm having the same problem. Did you solve this issue?

Thank you.

Fernando