Open alekseibutiaev opened 1 year ago
Hello @alekseibutiaev,
Thank you for this report. We will get back to you as soon as we analyze it further. This may take some time. Thank you for your comprehension.
With regards,
Hi @alekseibutiaev,
Thank you for this proposal. May I ask where is defined the CMD_WAIT
macro you used in your code snippet above? Thanks.
In the meanwhile, please note that STM32CubeF1 firmware still integrates version 3.3.3 of the USB Host library, while version 3.5.1 has been published here since a couple of months. Would you mind giving it a try a see if the issue still persists?
The newer version is backward compatible and you can easily integrate it into your application manually. Please keep us informed.
With regards,
just only try version 3.5.1 --- same problem, same solution
Hi @alekseibutiaev,
Thank you for your reply. Your report will be forwarded to our development teams for further analysis.
To summarize:
USBH_HID_SetReport()
function.USBH_HID_Process()
function and more precisely in the lines of code below:- else
- {
/* IN Endpoint Stalled */
- if (USBH_LL_GetURBState(phost, HID_Handle->InPipe) == USBH_URB_STALL)
+ else if (USBH_LL_GetURBState(phost, HID_Handle->InPipe) == USBH_URB_STALL)
{
/* Issue Clear Feature on interrupt IN endpoint */
if (USBH_ClrFeature(phost, HID_Handle->ep_addr) == USBH_OK)
{
/* Change state to issue next IN token */
HID_Handle->state = HID_GET_DATA;
}
}
- }
+ else if (phost->RequestState == CMD_WAIT)
+ {
+ USBH_CtlReq(phost, 0, 0);
+ }
break;
With regards,
ST Internal Reference: 158663
Custom board and with MCU STM32F10[5-7] the function USBH_HID_SetReport does not works correctly.
How To Reproduce
Indicate the global behavior of your application project. works with USB keyboard write led status but does not changed.. but changed after press some keys
The modules that you suspect to be the cause of the problem (Driver, BSP, MW ...). module MW
The use case that generates the problem.
How we can reproduce the problem. write status of led by function USBH_HID_SetReport
Additional context i have solution
My project is firmfare https://github.com/alekseibutiaev/experience/tree/master/zxkeyboard & hardware https://github.com/alekseibutiaev/electronics/tree/master/ZX_Keyboard