2024-12-24 05:37 PM
Hello, ST experts
It seems that OTG_USB_DP pin had some problems when this pin is forced to be set to GPIO when connected to USB host. The resistance between this pin and GND is serveral mega Ohm before OTG_USB_DP is forced to be a GPIO. And then it might be show a low resistance of about 100Kilo Ohm. So I want to check the I/O structure of this pin.
Merry Christmas
Yang
2024-12-24 06:06 PM - edited 2024-12-24 06:07 PM
> It seems that OTG_USB_DP pin had some problems when this pin is forced to be set to GPIO when connected to USB host.
If it's connected to a USB host, doesn't this pin need to be used for USB, not GPIO?
To use them as GPIO, set the VDD11USBDIS bit:
Also set USV bit in PWR->SVMCR.
See here:
Solved: STM32U595 used PA12 and PA11 as INPUT gpios,can't ... - STMicroelectronics Community
2024-12-24 07:12 PM - edited 2024-12-24 07:40 PM
Hello
Yes,this pin need to be used for USB if it really connects to USB host. But for some reason the GPIO status of PA12 need to be checked before going to USB work mode, because it may not be pluged into USB slot. So PA12 need to be put to GPIO in the way of your reply. But it seems there will be some damages to PA12 pin of STM32U5 if it really connects to USB host at that time. So I want to check the I/O structure of this pin.
BR
Yang