I had the same issue. The solution for me was doing a full chip erase before programming as described in the link below.In my case it was only happening when I was using STMCubeProgrammer and not in the STM32CubeIDE (v 1.15.1). Maybe if I updated to ...
Nice solution!I tried a number of permutations with the HID_Report_ItemTypedef values thinking I must not be understanding the intended use of the function, but came to the same conclusion that the line you modified was the issue. Thanks for sharing ...
In my case, the issue of the host stuck in USBH_BUSY was solved after a small code change detailed in this ST training video (https://youtu.be/MlhUG4GsOT0?si=lECm8PH8pVmF5P4e). Within the USBH_HID_ClassRequest function in usbh_hid.c, modify the if st...