2023-09-01 08:10 AM
Hi, this is my first time to post this community. appolozize my bad english.
recently, I am eager to deal with my scratch build STM32U5A9's USB HS Host.
I compiled STM32CubeMX generated USBX host code and tried it.
but didn't work at all. even first USB device connect detection interrupt didn't occur.
After so many times of debug, i finally noticed that set after FHMOD bit in GUSBCFG, CMOD bit in GINTSTS remain zero eternity.
CMOD bit is supposed to be 1 in forced host mode.
I tried to see if escape above image do loop. but, loop forever.
USB_GetMode(USBx) refers to GINTSTS register and USB_HOST_MODE means 1.
is this Errata?
Solved! Go to Solution.
2023-09-01 08:57 AM
I solved my problem refer to this post.
https://community.st.com/t5/stm32-mcu-products/stm32u5ax-usb-corereset-timeout/td-p/574611
2023-09-01 08:57 AM
I solved my problem refer to this post.
https://community.st.com/t5/stm32-mcu-products/stm32u5ax-usb-corereset-timeout/td-p/574611