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
STM32 H7: fix USB in sleep mode #13780
Conversation
in sleep mode, USB interrupts were disabled and USB Device was not working. Sleep mode is default in Mbed-os e.g. in a call to sleep_for()
@JojoS62, thank you for your changes. |
@ARMmbed/mbed-os-maintainers reviewers bot is not working as reported the last week? Please review |
Got issues with USB tests and NUCLEO_H743ZI2... |
That maybe an issue with the clock setting. There is an errata that the clock recovery system is not working with HSI48, so I used PLL3Q for my custom board. could you please use this init in SetSystemClock: The multiplier and dividers need to be adjusted for a 8 MHz xtal.
This setting maybe also necessary for the H743ZI2:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this update.
I will enable USB for NUCLEO-H743 after more tests
@0xc0170 Let's start CI ? |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Problem as descriibed in #13641
USBDevice was not working with STM32H7 targets.
in sleep mode, USB interrupts were disabled
and USB Device was not working. Sleep mode is default in Mbed-os
e.g. in a call to sleep_for()
Summary of changes
Disabling ULPI clock in sleep mode is required for H7 targets. Added conditional disabling when macro exists.
Fix is necessary to make USBDevice working on STM32H7 targets.
Impact of changes
Tests were performed on STM32H743VI and Nucleo STM32H7A3ZIT6Q.
Targets without ULPI should not be affected. STM32F401 ompiled and tested positiv.
Migration actions required
Targets with H7 MCU can be checked and USBDevice can be enabled
Documentation
not affected
Pull request type
Test results
Reviewers