2026-01-28 5:08 AM
I have connected and an external HS PHY to STM32F427VGT6 through ULPI pins.
Configured USB_OTG_HS in Host Only mode for external Phy with parameter Settings as
Speed: High Speed 480MBits/s
Enable internal IP DMA: Disabled
Physical Interface: External Phy
Use External VBUS: Enabled
Signal Start of Frame: Disabled
In NVIC settings for USB_OTG_HS all three available interrupts are enabled.
| USB On The Go HS End Point 1 Out global interrupt | true | 0 | 0 |
| USB On The Go HS End Point 1 In global interrupt | true | 0 | 0 |
| USB On The Go HS global interrupt | true | 0 | 0 |
In Middleware Packages USB_ Host, FATFS is configured according to attached image.
MCU schematic and USB-PHY schematic is also attached.
The problem i am facing is STM32 is not detecting USB and gstate of USB always remain to HOST_IDLE, even if i connect or disconnect pendrive.
2026-01-28 5:43 AM
Hello @embedded-jsd
Do you reproduce using a reference board?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-01-28 11:02 PM - edited 2026-01-28 11:17 PM
Which reference board are you referring to?
2026-01-29 2:52 AM
I was referring to an ST Nucleo, Discovery, or Evaluation board, which you can use as a known-good reference to help isolate whether the issue is hardware- or software-related.
To move forward, I need to understand:
If the same behavior appears on an ST reference board, we can then focus on the software configuration. For example, one important point is to ensure that the GPIO speed for all ULPI pins is configured to Very High speed in your project.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-01-29 4:09 AM
No, I haven't used any evaluation board. However, below are the USB PHY connections
USB3300 Pins------ STM32F427 Pins
STP------------------- PC0 ------> USB_OTG_HS_ULPI_STP
DIR-------------------- PC2 ------> USB_OTG_HS_ULPI_DIR
NXT------------------- PC3 ------> USB_OTG_HS_ULPI_NXT
DATA[0]-------------- PA3 ------> USB_OTG_HS_ULPI_D0
CLKOUT------------- PA5 ------> USB_OTG_HS_ULPI_CK
DATA[1]-------------- PB0 ------> USB_OTG_HS_ULPI_D1
DATA[2]-------------- PB1 ------> USB_OTG_HS_ULPI_D2
DATA[3]-------------- PB10 ------> USB_OTG_HS_ULPI_D3
DATA[4]-------------- PB11 ------> USB_OTG_HS_ULPI_D4
DATA[5]-------------- PB12 ------> USB_OTG_HS_ULPI_D5
DATA[6]-------------- PB13 ------> USB_OTG_HS_ULPI_D6
DATA[7]-------------- PB5 ------> USB_OTG_HS_ULPI_D7
There's no dedicated VBUS sensing on STM32F427 pins.
VBUS power switching is controlled by CPEN pin of USB3300 PHY
which in-turn controls the EN pin of switch AP22653(used to to supply 5V to VBUS pin of USB drive).You can refer to USB PHY schematic I have attached for reference.
2026-01-29 9:15 AM
Would you attach your IOC file?
Check this schematics using STM32F429.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.