cancel
Showing results for 
Search instead for 
Did you mean: 

USB HID Device Library or Example code

pohua
Associate II
Posted on December 06, 2016 at 04:13

I want to create the USB HID device function but I don't have any library or example code.

Where to download the relation data for me reference?

PS:I use a STM32F427 MCU.
3 REPLIES 3
Imen.D
ST Employee
Posted on December 06, 2016 at 09:14

Dear

Chen.Pohua

,

To have more insight into the USB HID using the STM32Cube library, you can review the USB libraries and start from USB HID examples within the

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef4.html

:

STM32Cube_FW_F4_V1.0\Projects\STM324xG_EVAL\Applications\USB_Device

You can refer also to the following documents:

http://www.st.com/content/ccc/resource/technical/document/user_manual/b8/5a/28/c2/cf/b6/47/d6/DM00105pdf/files/DM00105pdf/jcr:content/translations/en.DM00105pdf

: STM32Cube™ USB host library

http://www.st.com/content/ccc/resource/technical/document/user_manual/cf/38/e5/b5/dd/1d/4c/09/DM00108pdf/files/DM00108pdf/jcr:content/translations/en.DM00108pdf

: STM32Cube™ USB device library

Best Regards

-Imen-

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Radek RIPA
ST Employee
Posted on December 06, 2016 at 09:34

Hello

You can look on this presentation labs. They are little older but there is described how to create the HID device with CubeMX

Best regards

Radek

pohua
Associate II
Posted on December 12, 2016 at 05:00

Dear Imen and Radek:

Thank you for your reply but I don't have an idea to develop my USB HID device because I use a standalone method to create my FW.

I have referenced the STM32_USB-Host-Device_Lib_V2.2.0\Project\USB_Device_Examples\HID\src\usbd_desc, but I confuse the the descriptor doesn't include the descriptor description as configuration_descriptor, interface_descriptor, class_descriptor, endpoint_descriptor and HID Report descriptor.

So I don't know how to create my HID device and the host can emulate the F427 to standard USB HID device?

Do you have some examples for my reference?

Thanks!

Best Regards

Pohua