2020-06-18 06:04 PM
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?
2020-06-18 07:26 PM
The size is 16 bits. Somewhere it's getting truncated to 8 bits - check where.
-- pa
2021-03-24 11:09 PM
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.