2024-03-11 10:42 PM
Hello,
I am trying to implement USB host hid class library with stm32F756zg mcu to interface the usb keyboard. I have implemented the uart also to sent the pressed key on the uart to identify it.
There is one issue i am observing that it is not sending any key pressed on the uart. The USB keyboard is enumerated but it is stuck in the if (USBH_LL_GetURBState(phost, HID_Handle->InPipe) == USBH_URB_STALL) and does not call the callback function when key is pressed.
I have tried the patch (HID_Handle->state = HID_SYNC; instead of the HID_Handle->state = HID_IDLE;) suggested in the forums but it is not working.
Please suggest what is the issue in the USB host library and how to get the usb keyboard working with STMF7 MCU.
I have tried the same USB host example with STM32F429ZI mcu and the same USB host hid class library is working with this mcu and key is detected and sent on uart.
2024-03-12 02:37 AM
Hello @shefu and welcome to ST community
Would you share minimum of software to reproduce the issue on reference board?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-03-12 03:18 AM
2024-03-12 03:35 AM
2024-03-19 11:18 PM
Hello,
The solution proposed by the STM team is not working for me. Please suggest why the USB HID host class is not working on stm32F756ZG MCU.