-
Notifications
You must be signed in to change notification settings - Fork 1k
Enable LSE for LPUART only if LSE is ready #2642
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
Labels
enhancement
New feature or request
Milestone
Comments
Hi @MaJerle
Please, could you create a PR for this? |
I'm no expert in the STM32duino development processes, as such I prefer to not create PRs that may be wrongly coded. The check should be added before LPUART kernel clock is being selected, in |
fpistm
added a commit
to fpistm/Arduino_Core_STM32
that referenced
this issue
Feb 3, 2025
Fixes stm32duino#2642. Signed-off-by: Frederic Pillon <[email protected]>
fpistm
added a commit
to fpistm/Arduino_Core_STM32
that referenced
this issue
Feb 4, 2025
Fixes stm32duino#2642. Signed-off-by: Frederic Pillon <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the current configuration, LSE is forced selected when baudrate <= 9600 is selected for HW Serial.
If LSE is not present UART kernel won't work.
A propose is to add a check after enabling the LSE, if the LSE is ready. Use the
LL_RCC_LSE_IsReady()
before changing the kernel clock of the LPUART.Arduino_Core_STM32/libraries/SrcWrapper/src/stm32/uart.c
Lines 457 to 471 in eebd0e3
The text was updated successfully, but these errors were encountered: