HID keyboard not working on STM32F722ZE (NUCLEO-F722ZE)
Hi guys,
I'm trying to use STM32 as a host for a HID keyboard and mouse.
I have 2 wireless mouses to test (Logitech M560, HP Spectre 700), Logitech T-BC21 wired trackball, some low-end keyboard. I'm connecting them via micro-USB to USB converter that works properly with my old tablet.
LED near USB port on NUCLEO lights up, looks like it enumerates my all test devices (function returns OK), but I'm always getting stuck in USBH_HID_POLL state and I never get this condition true (after pressing keys, moving or clicking mouses):
// usbh_hid.c USBH_HID_Process(...) function
if (USBH_LL_GetURBState(phost, HID_Handle->InPipe) == USBH_URB_DONE)
I'm following this tutorial from ControllersTech, that basically just uses generated code, except that I'm using FreeRTOS. USB interrupt is enabled (can't be turned off in code generator).
I'm powering NUCLEO from my PC USB port (programming/debugging). I have not tried to power the board from external 5V supply, but I don't think this could make any difference, since the keyboard is relatively low power.
My environment:
STM32CubeIDE
Version: 1.13.2
Build: 18220_20230914_1601 (UTC)
Here is my configuration:


