Skip to main content
Visitor II
January 5, 2021
Solved

STM32F103 Custom HID; I'm stuck

  • January 5, 2021
  • 1 reply
  • 628 views

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.
    Best answer by Ple b.11

    Solved.

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

    1 reply

    Ple b.11AuthorAnswer
    Visitor II
    January 7, 2021

    Solved.

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