Skip to main content
Visitor II
January 3, 2024
Solved

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

  • January 3, 2024
  • 1 reply
  • 1840 views

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.
    Best answer by FBL

    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!

    1 reply

    FBLAnswer
    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!