Skip to main content
Visitor II
June 19, 2020
Question

USB HID REPORT DESCRIPTOR SIZE

  • June 19, 2020
  • 2 replies
  • 982 views

I have a report descriptor that consist of 456 bytes. The problem is : When i define USBD_CUSTOM_HID_REPORT_DESC_SIZE   456 in usbd_conf.h file, it raises overlow warning and my hid device no longer works. How can i define hid descriptor size bigger than 255?

    This topic has been closed for replies.

    2 replies

    Super User
    June 19, 2020

    The size is 16 bits. Somewhere it's getting truncated to 8 bits - check where.

    -- pa

    Visitor II
    March 25, 2021

    ​I changed it from {USBD_CUSTOM_HID_REPORT_DESC_SIZE, 0x0} to {LOBYTE(USBD_CUSTOM_HID_REPORT_DESC_SIZE), HIBYTE(USBD_CUSTOM_HID_REPORT_DESC_SIZE),}. it doesn't worked.0693W000008xrKsQAI.jpg