cancel
Showing results for 
Search instead for 
Did you mean: 

USB HID REPORT DESCRIPTOR SIZE

TDuma.1
Associate

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?

2 REPLIES 2
Pavel A.
Evangelist III

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

-- pa

LLYC.1
Associate II

​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