STM32H750 + USB3300 ULPI deadlock
Working on an audio device using STM32H750 with USB3300, using TinyUSB stack.
Either it works perfectly, or there is no ULPI communication.
In the latter state, STP, DIR and NXT are all solid high and nothing moves. I can unlock it by pausing the program and manually toggling PC2SO in the SYSCFG register. This is equivalent to electrically disconnecting and reconnecting the DIR line, thus fooling the OTG peripheral into thinking that DIR has gone low. STP and NXT follow suit. I can then resume the program and all works nicely.
So it seems there's a state where the MCU is waiting for DIR to go low, and the PHY is waiting for STP to go low.
I'd find it a bit of a kluge to add the DIR disconnect/reconnect trick to the code, so I was wondering if anyone knows of a common error in the setup procedure that could cause this kind of deadlock.
