cancel
Showing results for 
Search instead for 
Did you mean: 

Some code example to read a gamepad controller in USB host HID standalone mode (or USBX) w/ H723ZG

jea74
Associate III

Dear Community,

I looking for some help - I need to be able to read a gamepad controller (in this case logitech wireless F710) with a H723ZG board.  I tried to adapt the mouse and keyboard examples without any success.

With the HID_standalone example, I get the following output when I connect the wireless dongle:

**** USB OTG HS in FS MSC Host **** 

USB Host library started.

Starting HID Application
Connect your HID Device

USB Device Connected
USB Device Reset Completed
PID: c22fh
VID: 46dh
Address (#1) assigned.
Manufacturer : Logitech
Product : Logitech Cordless RumblePad 2
Serial Number : N/A
Enumeration done.
This device has only 1 configuration.
Default configuration set.
Switching to Interface (#0)
Class    : 3h
SubClass : 1h
Protocol : 2h
Mouse device found!
HID class started.
USB Device disconnected
ERROR: USB device disconnected !!! 

USB Device Connected
USB Device Reset Completed
PID: c21fh
VID: 46dh
Address (#1) assigned.
Manufacturer : Logitech
Product : Wireless Gamepad F710
Serial Number : 19619ECF
Enumeration done.
This device has only 1 configuration.
Default configuration set.
No registered class for this device.

I'm not an USB  expert, If someone could give me some starting point/clue I would greatly appreciate.

Thank you, J.

1 ACCEPTED SOLUTION

Accepted Solutions
FBL
ST Employee

Hello @jea74 

STM32H723 product is compliant with USB specification 2.0. However, your target is 

USB Type Full Speed, USB 1.1
USB VID_PID 046D_C21F (XInput mode)

If you have any issue with examples as they are don't hesitate to report issues. I hope this helps!

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
FBL
ST Employee

Hello @jea74 

STM32H723 product is compliant with USB specification 2.0. However, your target is 

USB Type Full Speed, USB 1.1
USB VID_PID 046D_C21F (XInput mode)

If you have any issue with examples as they are don't hesitate to report issues. I hope this helps!

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.