Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable ULPI clock during sleep on stm32f7 when using internal phy #2408

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

leptun
Copy link
Contributor

@leptun leptun commented Jan 10, 2024

This PR addresses a bug I discovered on stm32f7 when using the OTG_HS dwc2 peripheral with the internal FS phy while also using tickless idle with freertos. The problem is identical to the issue described for the H7 series, but on the F7 different bit names are used. This patch also disables the ULPI clock during tickless idle for stm32f4 and stm32f2 series microcontrollers that have the OTG_HS peripheral. While I did not test the other MCUs, I don't see how this could harm since with this patch, the ULPI clock is disabled during sleep only if the ULPI interface is not used.
I tested this on an stm32f722ze with OTG_HS connected in FS mode with the internal phy in device mode. The examples do not use such a configuration afaik.

Copy link
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look good, thank you.

@hathach hathach merged commit b5d5ae9 into hathach:master Jan 11, 2024
49 checks passed
@leptun leptun deleted the fix_tickless_ulpi_gating branch January 11, 2024 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants