Skip to main content
zexx86
Associate III
Jul 27, 2011 16:24 UTC
Question

USB HID Joystick

Posted on July 27, 2011 at 18:24

Hello

I want to use some USB examples (especially joystick) from ST (um0424.zip), I can compile it, but I am not sure about evaluation board type.

I using

http://cgi.ebay.com/STM32F103RBT6-ARM-Cortex-M3-mini-Development-Board-Code-/390310926965?pt=BI_Electrical_Equipment_Tools&hash=item5ae0581a75#ht_3408wt_1249

board and Linux as development station, it produces working code normally, but nothing from USB examples works for me - I see only errors with enumeration, like usual from USB in my PC, when firmware does not communicate over the USB.

I selected USE_STM3210C_EVAL.

Thanks for any help

    This topic has been closed for replies.

    2 replies

    zexx86
    zexx86Author
    Associate III
    Aug 21, 2011 16:39 UTC
    Posted on August 21, 2011 at 18:39

    Hello

    Finally my stm32 board is working with ST's example code, exactly with HID mouse.

    I try to rewrite it for 4 axis joystick, I can see it in system correctly as joystick now, but when some software starts reading some data from it,

    I get lot errors like this:

    usb 2-1.3: input irq status -75 received

    My HID descriptors + report sending is here:

    [[this link/image has been flagged as malicious by our security scan software and has been deleted]]

    I guess, there is something wrong in descriptors.

    Please help

    zexx86
    zexx86Author
    Associate III
    Aug 21, 2011 19:13 UTC
    Posted on August 21, 2011 at 21:13

    Well, I fixed it !

    It works very good now, there was just typo in report count ...

    Have a nice day