[Help] External USB HS PHY with STM32F405

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

JunASAKA
Posts: 5
Joined: Mon Mar 27, 2023 5:08 am
Has thanked: 1 time

[Help] External USB HS PHY with STM32F405

Postby JunASAKA » Fri Sep 08, 2023 5:49 am

Hey there,
I am working on a external USB HS PHY (USB3300) on STM32F405. The board is my own PCB with no HSE installed. I modified

Code: Select all

// in mcuconf.h
#define STM32_USB_USE_OTG1                  FALSE
#define STM32_USB_USE_OTG2                  TRUE

// in board.h
#define BOARD_OTG2_USES_ULPI

I also configured the GPIO pinset, making the pins related to HS ULPI to alternate mode (is it alternate 12?). But it's not work. Nothing shown on dmesg on the PC. I think there may be problems in my GPIO or clock configuration.
So I am wondering how could I do to make the ULPI PHY work, any documents here?


Regards,
Jun ASAKA.

User avatar
Giovanni
Site Admin
Posts: 14458
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: [Help] External USB HS PHY with STM32F405

Postby Giovanni » Fri Sep 08, 2023 8:07 am

Hi,

USB problems are almost always caused by GPIO settings and/or clock settings. Clock must be a very accurate 48MHz so "no HSE installed" is a 1st warning.

The USB demo for F746-Discovery uses ULPI, you may use that as reference.

Other thing to verify is if the host detects the USB device insertion, if not then check physical connections and presence of that pullup resistor required for detection.

Giovanni


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 9 guests