I'm trying to drive USB host as MSC and HID on STM32F4, I have one STM32F407 Discovery board and one custom design PCB based on STM32F407.
I'm using Keil compiler and ST std periph library, and for USB using STM32_USB-Host-Device_Lib_V2.1.0 (and V2.2.0). For MSC part after some tries it worked and know I can read and write data on USB flash. But for HID it doesn't work correctly. I've tested many projects on both boards with many HID devices (mouse, kbd, barcode scanner, ...), in all cases the board detects device attachment and its speed, but it doesn't proceed more. Actually it remains in HOST_CTRL_XFER state and doesn't complete the enumeration phase (I found this in debug mode, the MCU works but it loops in some functions).
As the ST document says it's an intermediate stage that should be passed:
But for me it doesn't pass successfully.
I think I have problem with descriptor configuration for HID device, I don't know how I can edit the descriptor to pass successfully from enumeration phase.