-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
fix(uart): Sets XTAL as clock source for uart #10087
Conversation
C6 and H2 have problems after returning from light sleep. The baud rate seems to be off when APB is used as clock source. This fix solves the issue using a steady clock source.
👋 Hello SuGlider, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
Adds C2 in the XTAL list.
Test Results112 files - 27 112 suites - 27 24m 30s ⏱️ - 1h 17m 59s Results for commit 854111f. ± Comparison against base commit 6244d9a. This pull request removes 5 tests.
♻️ This comment has been updated with latest results. |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
This is creating some issues in the existing implementation: |
@SuGlider HW tests on UART is failing on the baud rate change test PTAL. |
Fixes the functions for reading/writing UART baudrate by using IDF functions instead of HAL/LL.
@lucasssvaz | @P-R-O-C-H-Y |
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.
LGTM
Fixes the baudrate for ESP32 and ESP32-S2 when the baud rate is higher than 1MHz. REF_TICK is just 2MHZ and can handle up to 1MHZ baudrate.
Default RxTimeout changed to the minimum = 1. When TICK_REF is used as clock source, this is mandatory,
@P-R-O-C-H-Y PTAL |
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.
LGTM
Description of Change
C6 and H2 UART baud rate has problems after returning from light sleep.
The baud rate seems to be off when APB is used as clock source.
This fix solves the issue using a steady clock source for all SoC that can handle XTAL as UART clock source.
Tests scenarios
Using S3, C3, C6 and H2 using the code suggested in #10065
Related links
Fixes #10065