Skip to main content
Associate
September 1, 2023
Solved

STM32U5A9 USB HS Host doesn't work at all

  • September 1, 2023
  • 1 reply
  • 1734 views

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.

スクリーンショット 2023-09-01 231824.png

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?

This topic has been closed for replies.
Best answer by tonsuke85

I solved my problem refer to this post.

https://community.st.com/t5/stm32-mcu-products/stm32u5ax-usb-corereset-timeout/td-p/574611

1 reply

tonsuke85AuthorBest answer
Associate
September 1, 2023