cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5A9 USB HS Host doesn't work at all

tonsuke85
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
1 REPLY 1
tonsuke85
Associate