cancel
Showing results for 
Search instead for 
Did you mean: 

STCubeFW_F4_V1.25.0 Code Generation breaks HID USB connection

BPaik
Senior

When upgrading a project on mine to STCubeFW_F4_V1.25.0, HID USB communication stopped working. After a lot of time comparing differences in the generated code for V1.25.0, I found that the function "USBD_CUSTOM_HID_DataOut" in "usbd_customhid.c" no longer calls

USBD_LL_PrepareReceive(pdev, CUSTOM_HID_EPOUT_ADDR , hhid->Report_buf,

                         USBD_CUSTOMHID_OUTREPORT_BUF_SIZE)

as it did in the earlier version of my project. Adding this line back to the file fixes the HID USB communication. However,when I regenerate code through CubeMX, the line is deleted again, and it is frustrating to have to manually correct it every time. Is there a reason why this was changed, or is this simply a bug in this version of CubeMX? Will it be corrected in a later version?

0 REPLIES 0