cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103 Custom HID; I'm stuck

Ple b.11
Associate

Hi all,

I'm Pierre, I am new to this community!

I have found many great tips for some of my problems, but I moved into custom HID and I'm stuck.

So here's what I am trying to do.

I have two slave cards sending I2C data to the master. This is working great.

I do a bit of work with this data and then, I try to send it over USB as a joystick controler.

I have managed to set up my HID report, descriptor size, and outreport buffer size setup

I get the device reported as expected.

But then I try to use:

USBD_CUSTON_HID_SendReport

and the compile fails if I don't include usbd_customhid.h in my main.

So I include it, try sending data and... nothing happens. I am obviously doing something wrong but I don't know where.

If you guys have any tips, I'll take it!

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Ple b.11
Associate

Solved.

I forgot to include the report ID in the the out data.

View solution in original post

1 REPLY 1
Ple b.11
Associate

Solved.

I forgot to include the report ID in the the out data.