USB host HID LS chirp issue?
Hi,
I have a USB host HID FS/LS on a nucleo board (also on definitive hardware this happens). It works with several keyboards (Logitech, Acer, china trades, ...).
Today, I connected an HP slim keyboard 803181-071 SP provided with my computer and after reset it doesn't initititate the enumeration. Using a logical analyser I see that both lines DP+ and DM- go high after connecting the usb host and there are 3 to 4 pulses around 50us. I suspect whether this could be a "chirp" sequencie trying to connect to the USB FS/LS host.
To fix it, I needed to add a short delay around 1~2ms inside the library function HAL_HCD_Connect_Callback(), to ignore those 3 or 4 short 50us pulses that take around 200us. Can this delay do any harm? Should this delay be already provided on the HAL USB library? To achieve this delay, HAL_Delay(2) can not be used because would be called inside the ISR HCD_Port_IRQHandler and will get blocked. I used a for to 20000 @ 120MHz to get 2ms.
I'm using CubeIDE 1.11.0 and last FW updates.
Could be a similar issue like in the following link:
https://community.st.com/s/question/0D50X00009XkZPYSA3/hid-host-bug
