Skip to main content
jea74
Associate III
January 3, 2024
Solved

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

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.

This topic has been closed for replies.
FBLBest answer
ST Technical Moderator
February 16, 2024

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 "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL

1 reply

FBLBest answer
ST Technical Moderator
February 16, 2024

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 "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL