Page 1 of 2
[HELP] STM32H750 USB HS ULPI Support,
Posted: Mon Mar 27, 2023 6:36 am
by JunASAKA
Hey there,
I am tring to use a USB PHY ULPI module to run USB HS on STM32H750 chip with ChibiOS.
After configured
Code: Select all
#define STM32_USB_USE_OTG1 FALSE
#define STM32_USB_USE_OTG2 TRUE
#define STM32_USE_USB_OTG2_HS TRUE
// ...and...
#define BOARD_OTG2_USES_ULPI
and also modified the certain GPIO Pin set to alternate mode. But the device doesn't work with the PC "unable to enumerate USB device".
Also, when I turning to the stm32 datesheet, it told me "OTG-HS1 supports both full-speed and high-speed operations, while OTG-HS2 supports only full-speed operations." Does it mean that I should define "STM32_USE_USB_OTG1_HS" as TRUE instead of the "OTG2" one? (I tried but nothing happened.)
So I am wondering how could I do to make the ULPI PHY work?
Appreciate,
Jun ASAKA.
Re: [HELP] STM32H750 USB HS ULPI Support,
Posted: Mon Mar 27, 2023 6:51 am
by Giovanni
Hi,
The one with HS should be STM32_USB_USE_OTG2 (which internally uses OTG_HS as defined in ST headers). The board file must define BOARD_OTG2_USES_ULPI.
Which board are you using? there could be a problem in clock settings and/or GPIO settings.
Giovanni
Re: [HELP] STM32H750 USB HS ULPI Support,
Posted: Mon Mar 27, 2023 11:43 am
by JunASAKA
Giovanni wrote:Hi,
The one with HS should be STM32_USB_USE_OTG2 (which internally uses OTG_HS as defined in ST headers). The board file must define BOARD_OTG2_USES_ULPI.
Which board are you using? there could be a problem in clock settings and/or GPIO settings.
Giovanni
Thanks for your reply. I am using the board made by myself. I will check the clock and IO configuration.
Thanks,
Jun ASAKA.
Re: [HELP] STM32H750 USB HS ULPI Support,
Posted: Mon Mar 27, 2023 3:33 pm
by JunASAKA
Giovanni wrote:Hi,
The one with HS should be STM32_USB_USE_OTG2 (which internally uses OTG_HS as defined in ST headers). The board file must define BOARD_OTG2_USES_ULPI.
Which board are you using? there could be a problem in clock settings and/or GPIO settings.
Giovanni
Hi,
After digging up the GPIO and clock config, the problem still exists.
I did these:
set all ULPI related IO Pins to alternate 10 mode, floating, with max speed
set the clock tree in mcuconf.h as the same as the working one generated by CubeMX
And the USB still unable to be enumerated.
I also tried the default clock tree configuration in the mcuconf.h form STM32H750XB_DISCOVERY board (the HSE frequency is same as my board), and the problem just remained unchanged. So is there any slips in my configuration caused the issue?
Regards,
Jun ASAKA.
Re: [HELP] STM32H750 USB HS ULPI Support,
Posted: Mon Mar 27, 2023 7:00 pm
by Giovanni
Hi,
STM32_USE_USB_OTG2_HS does not exists so it is pointless to add it, in mcuconf.h there are all valid settings.
I don't have an H750 board with ULPI so cannot test this configuration, ULPI has only been tested on other devices (F769).
Giovanni
Re: [HELP] STM32H750 USB HS ULPI Support,
Posted: Mon Mar 27, 2023 7:25 pm
by Giovanni
I am asking on Discord ChibiOS server if somebody used ULPI on H7. BTW, feel free to join and ask questions also there.
Giovanni
Re: [HELP] STM32H750 USB HS ULPI Support,
Posted: Tue Mar 28, 2023 7:26 am
by Giovanni
Hi,
I got confirmation of ULPI working on STM32H743 on Discord, there must be some missing detail in your setup.
Giovanni
Re: [HELP] STM32H750 USB HS ULPI Support,
Posted: Tue Mar 28, 2023 7:40 am
by JunASAKA
Giovanni wrote:Hi,
I got confirmation of ULPI working on STM32H743 on Discord, there must be some missing detail in your setup.
Giovanni
Ok, thanks a lot.
I'll check my config again.
Jun ASAKA.
Re: [HELP] STM32H750 USB HS ULPI Support,
Posted: Mon Apr 01, 2024 9:52 am
by MWisBest
Hi there,
I was Googling some stuff for an STM32 project I'm working on and came across this post on the ST forums that might be related.
https://community.st.com/t5/stm32-mcus- ... d-p/257375Best of luck.
Re: [HELP] STM32H750 USB HS ULPI Support,
Posted: Mon Apr 01, 2024 10:12 am
by Giovanni
Hi,
Thanks, this could be related but currently I don't have HW to test this.
Giovanni