Skip to main content
Ple b.11
Associate
Jan 5, 2021 5:14 PM UTC
Solved

STM32F103 Custom HID; I'm stuck

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!

This topic has been closed for replies.
Ple b.11
Ple b.11Best answer
Associate
Jan 7, 2021 6:12 PM UTC

Solved.

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

1 reply

Ple b.11
Ple b.11AuthorBest answer
Associate
Jan 7, 2021 6:12 PM UTC

Solved.

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