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

fix(uart): Sets XTAL as clock source for uart #10087

Merged
merged 10 commits into from
Aug 1, 2024

Conversation

SuGlider
Copy link
Collaborator

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

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.
@SuGlider SuGlider added this to the 3.0.4 milestone Jul 30, 2024
@SuGlider SuGlider self-assigned this Jul 30, 2024
Copy link
Contributor

github-actions bot commented Jul 30, 2024

Warnings
⚠️

Some issues found for the commit messages in this PR:

  • the commit message "fix(uart): Sets XTAL as clock source for uart":
    • body's lines must not be longer than 100 characters
  • the commit message "fix(uart): rxTimeout minimum":
    • summary looks too short

Please fix these commit messages - here are some basic tips:

  • follow Conventional Commits style
  • correct format of commit message should be: <type/action>(<scope/component>): <summary>, for example fix(esp32): Fixed startup timeout issue
  • allowed types are: change,ci,docs,feat,fix,refactor,remove,revert,test
  • sufficiently descriptive message summary should be between 20 to 72 characters and start with upper case letter
  • avoid Jira references in commit messages (unavailable/irrelevant for our customers)

TIP: Install pre-commit hooks and run this check when committing (uses the Conventional Precommit Linter).

⚠️ Please consider squashing your 10 commits (simplifying branch history).

👋 Hello SuGlider, we appreciate your contribution to this project!


Click to see more instructions ...


This automated output is generated by the PR linter DangerJS, which checks if your Pull Request meets the project's requirements and helps you fix potential issues.

DangerJS is triggered with each push event to a Pull Request and modify the contents of this comment.

Please consider the following:
- Danger mainly focuses on the PR structure and formatting and can't understand the meaning behind your code or changes.
- Danger is not a substitute for human code reviews; it's still important to request a code review from your colleagues.
- Resolve all warnings (⚠️ ) before requesting a review from human reviewers - they will appreciate it.
- To manually retry these Danger checks, please navigate to the Actions tab and re-run last Danger workflow.

Review and merge process you can expect ...


We do welcome contributions in the form of bug reports, feature requests and pull requests.

1. An internal issue has been created for the PR, we assign it to the relevant engineer.
2. They review the PR and either approve it or ask you for changes or clarifications.
3. Once the GitHub PR is approved we do the final review, collect approvals from core owners and make sure all the automated tests are passing.
- At this point we may do some adjustments to the proposed change, or extend it by adding tests or documentation.
4. If the change is approved and passes the tests it is merged into the default branch.

Generated by 🚫 dangerJS against 854111f

Adds C2 in the XTAL list.
Copy link
Contributor

github-actions bot commented Jul 30, 2024

Test Results

112 files   - 27  112 suites   - 27   24m 30s ⏱️ - 1h 17m 59s
 25 tests  -  5   25 ✅  -  5  0 💤 ±0  0 ❌ ±0 
276 runs   - 27  276 ✅  - 27  0 💤 ±0  0 ❌ ±0 

Results for commit 854111f. ± Comparison against base commit 6244d9a.

This pull request removes 5 tests.
performance.coremark.test_coremark ‑ test_coremark
performance.fibonacci.test_fibonacci ‑ test_fibonacci
performance.psramspeed.test_psramspeed ‑ test_psramspeed
performance.ramspeed.test_ramspeed ‑ test_ramspeed
performance.superpi.test_superpi ‑ test_superpi

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jul 30, 2024

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.

MemoryFLASH [bytes]FLASH [%]RAM [bytes]RAM [%]
TargetDECINCDECINCDECINCDECINC
ESP32S3💚 -1800💚 -0.060.00000.000.00
ESP32S2💚 -72⚠️ +4💚 -0.030.00000.000.00
ESP32C3💚 -1620💚 -0.060.00000.000.00
ESP32C6💚 -2360💚 -0.110.00000.000.00
ESP32H2💚 -2360💚 -0.090.00000.000.00
ESP32💚 -72⚠️ +20💚 -0.020.00000.000.00
Click to expand the detailed deltas report [usage change in BYTES]
TargetESP32S3ESP32S2ESP32C3ESP32C6ESP32H2ESP32
ExampleFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAM
ArduinoOTA/examples/BasicOTA💚 -40💚 -40💚 -40💚 -40--⚠️ +40
AsyncUDP/examples/AsyncUDPClient💚 -40💚 -40💚 -40💚 -40--00
AsyncUDP/examples/AsyncUDPMulticastServer💚 -40💚 -40💚 -40💚 -40--00
AsyncUDP/examples/AsyncUDPServer💚 -40💚 -40💚 -40💚 -40--00
BLE/examples/BLE5_extended_scan💚 -40--💚 -40💚 -40💚 -40--
BLE/examples/BLE5_multi_advertising💚 -40--💚 -40💚 -40💚 -40--
BLE/examples/BLE5_periodic_advertising💚 -40--💚 -40💚 -40💚 -40--
BLE/examples/BLE5_periodic_sync💚 -40--💚 -40💚 -40💚 -40--
BLE/examples/Beacon_Scanner💚 -40--💚 -40💚 -40💚 -4000
BLE/examples/Client💚 -40--💚 -40💚 -40💚 -40💚 -40
BLE/examples/EddystoneTLM_Beacon💚 -40--💚 -40💚 -40--00
BLE/examples/EddystoneURL_Beacon💚 -40--💚 -40💚 -40--00
BLE/examples/Notify💚 -40--💚 -40💚 -40💚 -40⚠️ +40
BLE/examples/Scan💚 -40--💚 -40💚 -40💚 -4000
BLE/examples/Server💚 -40--💚 -40💚 -40💚 -4000
BLE/examples/Server_multiconnect💚 -40--💚 -40💚 -40💚 -4000
BLE/examples/UART💚 -40--💚 -40💚 -40💚 -4000
BLE/examples/Write💚 -40--💚 -40💚 -40💚 -4000
BLE/examples/iBeacon💚 -40--💚 -40💚 -40💚 -4000
DNSServer/examples/CaptivePortal💚 -40⚠️ +40💚 -40💚 -40--00
EEPROM/examples/eeprom_class💚 -40💚 -40💚 -40💚 -40💚 -4000
EEPROM/examples/eeprom_extra💚 -40💚 -40💚 -40💚 -40💚 -4000
EEPROM/examples/eeprom_write💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP32/examples/AnalogOut/LEDCFade💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/AnalogOut/LEDCSingleChannel💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP32/examples/AnalogOut/LEDCSoftwareFade💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP32/examples/AnalogOut/SigmaDelta💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP32/examples/AnalogOut/ledcFrequency💚 -40💚 -40💚 -40💚 -40💚 -40💚 -40
ESP32/examples/AnalogOut/ledcWrite_RGB💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/AnalogRead💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/AnalogReadContinuous💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/ArduinoStackSize💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/CI/CIBoardsTest💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/Camera/CameraWebServer💚 -40💚 -40------00
ESP32/examples/ChipID/GetChipID💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/DeepSleep/ExternalWakeUp💚 -40💚 -40------00
ESP32/examples/DeepSleep/TimerWakeUp💚 -40💚 -40💚 -60💚 -60--⚠️ +40
ESP32/examples/DeepSleep/TouchWakeUp💚 -40💚 -40------00
ESP32/examples/FreeRTOS/BasicMultiThreading💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/FreeRTOS/Mutex💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/FreeRTOS/Queue💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/FreeRTOS/Semaphore💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/GPIO/BlinkRGB💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP32/examples/GPIO/FunctionalInterrupt💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP32/examples/GPIO/FunctionalInterruptStruct💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/GPIO/GPIOInterrupt💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/HWCDC_Events💚 -40--💚 -40💚 -40💚 -40--
ESP32/examples/MacAddress/GetMacAddress💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP32/examples/RMT/Legacy_RMT_Driver_Compatible💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/RMT/RMTCallback💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/RMT/RMTLoopback💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/RMT/RMTReadXJT💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/RMT/RMTWriteNeoPixel💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/RMT/RMT_CPUFreq_Test💚 -1800💚 -720💚 -1620💚 -2360💚 -2360💚 -720
ESP32/examples/RMT/RMT_EndOfTransmissionState💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/RMT/RMT_LED_Blink💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/ResetReason/ResetReason💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/ResetReason/ResetReason2💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/Serial/BaudRateDetect_Demo💚 -640💚 -480💚 -640💚 -860💚 -860💚 -480
ESP32/examples/Serial/OnReceiveError_BREAK_Demo💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP32/examples/Serial/OnReceive_Demo💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP32/examples/Serial/RS485_Echo_Demo💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/Serial/RxFIFOFull_Demo💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/Serial/RxTimeout_Demo💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/Serial/Serial_All_CPU_Freqs💚 -1800💚 -720💚 -1620💚 -2360💚 -2360💚 -720
ESP32/examples/Serial/Serial_STD_Func_OnReceive💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP32/examples/Serial/onReceiveExample💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP32/examples/TWAI/TWAIreceive💚 -40💚 -40💚 -60💚 -60💚 -40⚠️ +40
ESP32/examples/TWAI/TWAItransmit💚 -40💚 -40💚 -40💚 -40💚 -60⚠️ +40
ESP32/examples/Template/ExampleTemplate💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP32/examples/Time/SimpleTime💚 -40💚 -40💚 -40💚 -40--00
ESP32/examples/Timer/RepeatTimer💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/Timer/WatchdogTimer💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP32/examples/Touch/TouchButtonV2💚 -40💚 -40--------
ESP32/examples/Touch/TouchInterrupt💚 -40💚 -40------⚠️ +40
ESP32/examples/Touch/TouchRead💚 -40💚 -40------⚠️ +40
ESP32/examples/Utilities/HEXBuilder💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP32/examples/Utilities/MD5Builder💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP32/examples/Utilities/SHA1Builder💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP_I2S/examples/ES8388_loopback💚 -40💚 -40💚 -40💚 -40💚 -4000
ESP_I2S/examples/Record_to_WAV💚 -40--------⚠️ +40
ESP_I2S/examples/Simple_tone💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
ESP_NOW/examples/ESP_NOW_Broadcast_Master💚 -40💚 -40💚 -40💚 -40--00
ESP_NOW/examples/ESP_NOW_Broadcast_Slave💚 -40💚 -40💚 -40💚 -40--⚠️ +120
ESP_NOW/examples/ESP_NOW_Network💚 -40💚 -40💚 -40💚 -40--00
ESP_NOW/examples/ESP_NOW_Serial💚 -40💚 -40💚 -40💚 -40--00
ESP_SR/examples/Basic💚 -40----------
ESPmDNS/examples/mDNS-SD_Extended💚 -40💚 -40💚 -40💚 -40--00
ESPmDNS/examples/mDNS_Web_Server💚 -40💚 -40💚 -40💚 -40--00
Ethernet/examples/ETH_W5500_Arduino_SPI💚 -40💚 -40💚 -40💚 -40💚 -4000
Ethernet/examples/ETH_W5500_IDF_SPI💚 -40💚 -40💚 -40💚 -40💚 -4000
FFat/examples/FFat_Test💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
FFat/examples/FFat_time00💚 -40💚 -40💚 -40--00
HTTPClient/examples/Authorization💚 -40💚 -40💚 -40💚 -40--⚠️ +40
HTTPClient/examples/BasicHttpClient💚 -40💚 -40💚 -40💚 -40--⚠️ +40
HTTPClient/examples/BasicHttpsClient💚 -40💚 -40💚 -40💚 -40--00
HTTPClient/examples/HTTPClientEnterprise💚 -40💚 -40💚 -40💚 -40--⚠️ +40
HTTPClient/examples/ReuseConnection💚 -40💚 -40💚 -40💚 -40--⚠️ +40
HTTPClient/examples/StreamHttpClient💚 -40💚 -40💚 -40💚 -40--⚠️ +40
HTTPUpdate/examples/httpUpdate💚 -40💚 -40💚 -40💚 -40--⚠️ +40
HTTPUpdate/examples/httpUpdateSPIFFS💚 -40💚 -40💚 -40💚 -40--00
HTTPUpdate/examples/httpUpdateSecure💚 -4000💚 -40💚 -40--00
HTTPUpdateServer/examples/WebUpdater💚 -40💚 -40💚 -40💚 -40--00
Insights/examples/DiagnosticsSmokeTest💚 -40💚 -40💚 -40----00
Insights/examples/MinimalDiagnostics💚 -40💚 -40💚 -40----00
LittleFS/examples/LITTLEFS_test💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
LittleFS/examples/LITTLEFS_time💚 -40💚 -40💚 -40💚 -40--⚠️ +120
NetBIOS/examples/ESP_NBNST💚 -40💚 -40💚 -40💚 -40--00
NetworkClientSecure/examples/WiFiClientInsecure💚 -40💚 -40💚 -40💚 -40--00
NetworkClientSecure/examples/WiFiClientPSK00💚 -40💚 -40💚 -40--00
NetworkClientSecure/examples/WiFiClientSecure💚 -40💚 -40💚 -40💚 -40--00
NetworkClientSecure/examples/WiFiClientSecureEnterprise💚 -40💚 -40💚 -40💚 -40--00
NetworkClientSecure/examples/WiFiClientSecureProtocolUpgrade💚 -40💚 -40💚 -40💚 -40--00
NetworkClientSecure/examples/WiFiClientShowPeerCredentials💚 -40💚 -40💚 -40💚 -40--⚠️ +40
NetworkClientSecure/examples/WiFiClientTrustOnFirstUse💚 -40💚 -40💚 -40💚 -40--00
PPP/examples/PPP_Basic💚 -40💚 -40💚 -40💚 -40💚 -4000
Preferences/examples/Prefs2Struct💚 -40💚 -40💚 -40💚 -40💚 -4000
Preferences/examples/StartCounter💚 -40💚 -40💚 -40💚 -40💚 -4000
RainMaker/examples/RMakerCustom💚 -4000💚 -40----00
RainMaker/examples/RMakerCustomAirCooler💚 -40💚 -40💚 -40----00
RainMaker/examples/RMakerSonoffDualR3💚 -40💚 -40💚 -40----00
RainMaker/examples/RMakerSwitch💚 -4000💚 -40----00
SD/examples/SD_Test💚 -40💚 -40💚 -40💚 -40💚 -4000
SD/examples/SD_time💚 -40💚 -40💚 -40💚 -40--00
SD_MMC/examples/SD2USBMSC💚 -40----------
SD_MMC/examples/SDMMC_Test💚 -40--------⚠️ +40
SD_MMC/examples/SDMMC_time💚 -40--------00
SPI/examples/SPI_Multiple_Buses💚 -40💚 -40------💚 -40
SPIFFS/examples/SPIFFS_Test💚 -40💚 -40💚 -40💚 -40💚 -4000
SPIFFS/examples/SPIFFS_time💚 -40💚 -40💚 -40💚 -40--00
SimpleBLE/examples/SimpleBleDevice💚 -40----💚 -40💚 -4000
TFLiteMicro/examples/hello_world💚 -40💚 -40💚 -40💚 -40💚 -4000
Ticker/examples/Blinker💚 -40💚 -40💚 -40💚 -40💚 -40💚 -40
Ticker/examples/TickerBasic💚 -40💚 -40💚 -40💚 -40💚 -40💚 -40
Ticker/examples/TickerParameter💚 -40💚 -40💚 -40💚 -40💚 -40💚 -40
USB/examples/CompositeDevice💚 -40💚 -40--------
USB/examples/ConsumerControl💚 -40💚 -40--------
USB/examples/CustomHIDDevice💚 -40💚 -40--------
USB/examples/FirmwareMSC💚 -40💚 -40--------
USB/examples/Gamepad💚 -40💚 -40--------
USB/examples/HIDVendor💚 -40💚 -40--------
USB/examples/Keyboard/KeyboardLogout💚 -40💚 -40--------
USB/examples/Keyboard/KeyboardMessage💚 -40💚 -40--------
USB/examples/Keyboard/KeyboardReprogram💚 -40💚 -40--------
USB/examples/Keyboard/KeyboardSerial💚 -40💚 -40--------
USB/examples/KeyboardAndMouseControl💚 -40💚 -40--------
USB/examples/MIDI/MidiController💚 -40💚 -40--------
USB/examples/MIDI/MidiInterface💚 -40💚 -40--------
USB/examples/MIDI/MidiMusicBox💚 -40💚 -40--------
USB/examples/MIDI/ReceiveMidi💚 -40💚 -40--------
USB/examples/Mouse/ButtonMouseControl💚 -40💚 -40--------
USB/examples/SystemControl💚 -40💚 -40--------
USB/examples/USBMSC💚 -40💚 -40--------
USB/examples/USBSerial💚 -40💚 -40--------
USB/examples/USBVendor💚 -40💚 -40--------
Update/examples/AWS_S3_OTA_Update💚 -40💚 -40💚 -40💚 -40--00
Update/examples/HTTPS_OTA_Update💚 -40💚 -40💚 -40💚 -40--00
Update/examples/HTTP_Client_AES_OTA_Update💚 -40💚 -40💚 -40💚 -40--00
Update/examples/HTTP_Server_AES_OTA_Update💚 -4000💚 -40💚 -40--⚠️ +40
Update/examples/OTAWebUpdater💚 -40💚 -40💚 -40💚 -40--00
Update/examples/SD_Update💚 -40💚 -40💚 -40💚 -40💚 -4000
WebServer/examples/AdvancedWebServer💚 -40💚 -40💚 -40💚 -40--00
WebServer/examples/FSBrowser💚 -40💚 -40💚 -40💚 -40--00
WebServer/examples/Filters💚 -40💚 -40💚 -40💚 -40--00
WebServer/examples/HelloServer💚 -40💚 -40💚 -40💚 -40--⚠️ +160
WebServer/examples/HttpAdvancedAuth💚 -40💚 -40💚 -40💚 -40--00
WebServer/examples/HttpAuthCallback💚 -40💚 -40💚 -40💚 -40--00
WebServer/examples/HttpAuthCallbackInline💚 -4000💚 -40💚 -40--00
WebServer/examples/HttpBasicAuth💚 -40💚 -40💚 -40💚 -40--00
WebServer/examples/HttpBasicAuthSHA1💚 -40💚 -40💚 -40💚 -40--00
WebServer/examples/HttpBasicAuthSHA1orBearerToken💚 -40💚 -40💚 -40💚 -40--00
WebServer/examples/MultiHomedServers💚 -40💚 -40💚 -40💚 -40--⚠️ +200
WebServer/examples/PathArgServer💚 -40💚 -40💚 -40💚 -40--00
WebServer/examples/SDWebServer💚 -40💚 -40💚 -40💚 -40--00
WebServer/examples/SimpleAuthentification💚 -40💚 -40💚 -40💚 -40--00
WebServer/examples/UploadHugeFile💚 -40💚 -40💚 -40💚 -40--⚠️ +160
WebServer/examples/WebServer💚 -40💚 -40💚 -40💚 -40--00
WebServer/examples/WebUpdate💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/FTM/FTM_Initiator💚 -40💚 -40💚 -40💚 -40--⚠️ +160
WiFi/examples/FTM/FTM_Responder💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/SimpleWiFiServer💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WPS💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiAccessPoint💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiBlueToothSwitch💚 -40--💚 -40💚 -40--⚠️ +120
WiFi/examples/WiFiClient💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiClientBasic💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiClientConnect💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiClientEnterprise💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiClientEvents💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiClientStaticIP💚 -40💚 -40💚 -40💚 -40--⚠️ +160
WiFi/examples/WiFiIPv6💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiMulti💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiMultiAdvanced💚 -40💚 -40💚 -40💚 -40--⚠️ +40
WiFi/examples/WiFiScan💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiScanAsync💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiScanDualAntenna💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiScanTime💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiSmartConfig💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiTelnetToSerial💚 -40💚 -40💚 -40💚 -40--00
WiFi/examples/WiFiUDPClient💚 -40💚 -40💚 -40💚 -40--00
WiFiProv/examples/WiFiProv💚 -40💚 -40💚 -40💚 -40--00
Wire/examples/WireMaster💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
Wire/examples/WireScan💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
Wire/examples/WireSlave💚 -40💚 -40💚 -40💚 -40💚 -40⚠️ +40
OpenThread/examples/COAP/coap_lamp------💚 -40💚 -40--
OpenThread/examples/COAP/coap_switch------💚 -40💚 -40--
OpenThread/examples/SimpleCLI------💚 -40💚 -40--
OpenThread/examples/SimpleNode------💚 -40💚 -40--
OpenThread/examples/SimpleThreadNetwork/LeaderNode------💚 -40💚 -40--
OpenThread/examples/SimpleThreadNetwork/RouterNode------💚 -40💚 -40--
OpenThread/examples/ThreadScan------💚 -40💚 -40--
OpenThread/examples/onReceive------💚 -40💚 -40--
BluetoothSerial/examples/DiscoverConnect----------00
BluetoothSerial/examples/GetLocalMAC----------⚠️ +40
BluetoothSerial/examples/SerialToSerialBT----------00
BluetoothSerial/examples/SerialToSerialBTM----------00
BluetoothSerial/examples/SerialToSerialBT_Legacy----------💚 -40
BluetoothSerial/examples/SerialToSerialBT_SSP----------⚠️ +40
BluetoothSerial/examples/bt_classic_device_discovery----------00
BluetoothSerial/examples/bt_remove_paired_devices----------⚠️ +120
ESP32/examples/DeepSleep/SmoothBlink_ULP_Code----------⚠️ +40
ESP32/examples/Touch/TouchButton----------⚠️ +40
Ethernet/examples/ETH_LAN8720----------00
Ethernet/examples/ETH_TLK110----------00

@lucasssvaz
Copy link
Collaborator

This is creating some issues in the existing implementation:

https://github.com/espressif/arduino-esp32/actions/runs/10169622396/job/28128857075#step:11:230

P-R-O-C-H-Y
P-R-O-C-H-Y previously approved these changes Jul 31, 2024
@P-R-O-C-H-Y P-R-O-C-H-Y added the hil_test Run Hardware Tests label Jul 31, 2024
@P-R-O-C-H-Y
Copy link
Member

@SuGlider HW tests on UART is failing on the baud rate change test PTAL.

@P-R-O-C-H-Y P-R-O-C-H-Y self-requested a review July 31, 2024 12:14
@P-R-O-C-H-Y P-R-O-C-H-Y dismissed their stale review July 31, 2024 12:14

needs fixing

Fixes the functions for reading/writing UART baudrate by using IDF functions instead of HAL/LL.
@SuGlider
Copy link
Collaborator Author

@lucasssvaz | @P-R-O-C-H-Y
All set, please review it.

Copy link
Collaborator

@lucasssvaz lucasssvaz left a 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,
@me-no-dev
Copy link
Member

@P-R-O-C-H-Y PTAL

Copy link
Member

@P-R-O-C-H-Y P-R-O-C-H-Y left a comment

Choose a reason for hiding this comment

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

LGTM

@P-R-O-C-H-Y P-R-O-C-H-Y added the Status: Pending Merge Pull Request is ready to be merged label Aug 1, 2024
@me-no-dev me-no-dev merged commit b1b6228 into master Aug 1, 2024
62 checks passed
@me-no-dev me-no-dev deleted the c6h2_lightsleep_uart_issue branch August 1, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hil_test Run Hardware Tests Peripheral: UART Status: Pending Merge Pull Request is ready to be merged
Projects
Development

Successfully merging this pull request may close these issues.

ESP32-C6: light sleep causes changes in Serial baud rate when CPU < 80MHz
4 participants