cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H730 with external PHY "device not recognize"

Arlevski
Associate

I'm using a custom board with an STM32H730 and an external HS PHY USB3370 via ULPI, set up as an OTG-HS "Device Only."

When I connect it to my computer, Windows shows "USB device is not recognized".

In "USB Device Tree Viewer," it says "Unknown USB Device (Device Descriptor Request Failed)".

This happens on two boards, and I've confirmed that the ULPI pins are correctly matched.

I'm not sure if I'm missing something in the configuration.

I'm attaching the .ioc file and could use some help figuring out the problem.

 

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Arlevski
Associate

I just found out how to fix it:

Add the following to USBD_LL_Init() (after HAL_PCD_Init()):

 

/* USER CODE BEGIN DCFG XCVRDLY workaround for USB3370 */

USB_OTG_GlobalTypeDef *USBx = hpcd_USB_OTG_HS.Instance;

uint32_t USBx_BASE = (uint32_t)USBx;

USBx_DEVICE->DCFG |= (1<<14);

/* USER CODE END 0 */

View solution in original post

2 REPLIES 2
Saket_Om
ST Employee

Hello @Arlevski 

 

You can refer to the example USB_Device/CDC_Standalone available in the STM32CubeH7 firmware. 

If your question is answered, please close this topic by clicking "Accept as Solution".

Thanks
Omar
Arlevski
Associate

I just found out how to fix it:

Add the following to USBD_LL_Init() (after HAL_PCD_Init()):

 

/* USER CODE BEGIN DCFG XCVRDLY workaround for USB3370 */

USB_OTG_GlobalTypeDef *USBx = hpcd_USB_OTG_HS.Instance;

uint32_t USBx_BASE = (uint32_t)USBx;

USBx_DEVICE->DCFG |= (1<<14);

/* USER CODE END 0 */