This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB HID

Hi all,

I would like to consult a technical issue here. I am trying to develop a simple USB HID communication between PC and device board with STM32F400. On the host side (PC) I am using Visual Studio to build my application using a DLL for USB HID. The communication works fine but only for reports until 255 bytes long. When I try to set higher output report value (e.g. 1023 bytes) in uVision I can still recieve only reports 255 bytes long. I debugged this with ULINK2 and examined the "usbd_hid_set_report" function. The parameter len is still 255 even though USBD_HID_OUTREPORT_MAX_SZ is set to 1023 and the array sent from PC has 1023 bytes. I can also check this value on the PC side by reading the descriptor and the value reported by the USB device (STM32F400) is still 255 bytes even though it should be 1023 bytes. Do you have any idea where I am going wrong? Max allowed value for USBD_HID_OUTREPORT_MAX_SZ is 65535 bytes according to the documentation.

Any ideas?

Best regards,
Steven.

0