2024-08-29 06:27 AM - edited 2024-08-29 06:36 AM
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!
Solved! Go to Solution.
2024-09-01 04:55 AM
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 */
2024-08-30 07:47 AM
Hello @Arlevski
You can refer to the example USB_Device/CDC_Standalone available in the STM32CubeH7 firmware.
2024-09-01 04:55 AM
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 */