cancel
Showing results for 
Search instead for 
Did you mean: 

USB HID Joystick

zexx86
Associate II
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

2 REPLIES 2
zexx86
Associate II
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
Associate II
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