Skip to content

feat(uart): fixes pin attach for any IDF 5.x #11499

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

SuGlider
Copy link
Collaborator

Description of Change

This PR fixes the effect of the IDF 5.4 commit espressif/esp-idf@60f5828 that breaks any Arduino sketch that fails reading UART

Nothing is printed into Serial Monitor, event when data is sent.

Sketch

void setup() {
  Serial.begin(115200); // using UART0 - open Serial Monitor to send data to Serial
}

void loop() {
  // just echo back what is sent to Serial
  if (Serial.available()) {
    Serial.write((char) Serial.read());
  }
}

Tests scenarios

Tested using CI and UART test Cases.

Related links

Closes #11498

@SuGlider SuGlider added this to the 3.2.1 milestone Jun 21, 2025
@SuGlider SuGlider self-assigned this Jun 21, 2025
@SuGlider SuGlider added the Area: ESP-IDF related ESP-IDF related issues label Jun 21, 2025
@SuGlider SuGlider requested a review from a team as a code owner June 21, 2025 19:55
@SuGlider SuGlider added Peripheral: UART bug 🐞 Inconsistencies or issues which will cause a problem for users or implementers. labels Jun 21, 2025
@SuGlider SuGlider moved this from Todo to In Review in Arduino ESP32 Core Project Roadmap Jun 21, 2025
Copy link
Contributor

github-actions bot commented Jun 21, 2025

Messages
📖 🎉 Good Job! All checks are passing!

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


📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more.

🖊️ Please also make sure you have read and signed the Contributor License Agreement for 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.
- 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 2e7bae9

@SuGlider
Copy link
Collaborator Author

@Jason2866 @me-no-dev - Definitive FIX for the IDF 5.4 commit.

Copy link
Contributor

github-actions bot commented Jun 21, 2025

Test Results

 76 files   76 suites   12m 52s ⏱️
 38 tests  38 ✅ 0 💤 0 ❌
241 runs  241 ✅ 0 💤 0 ❌

Results for commit 2e7bae9.

♻️ This comment has been updated with latest results.

@SuGlider SuGlider requested a review from Copilot June 21, 2025 19:56
@SuGlider
Copy link
Collaborator Author

This PR works with IDF 5.3, 5.4 and 5.5. It shall also work with IDF 6.x in a future release.

Copilot

This comment was marked as outdated.

SuGlider and others added 3 commits June 21, 2025 16:59
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Jason2866
Copy link
Collaborator

@SuGlider Tested with actual IDF 5.4 and IDF 5.5. Serial is working again. Good work!

Copy link
Collaborator

@Jason2866 Jason2866 left a comment

Choose a reason for hiding this comment

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

Tested and working

Copy link
Contributor

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
ESP32P4💚 -1004⚠️ +536💚 -0.32⚠️ +0.09000.000.00
ESP32S3💚 -720⚠️ +272💚 -0.24⚠️ +0.05000.000.00
ESP32S2💚 -864⚠️ +280💚 -0.28⚠️ +0.05000.000.00
ESP32C3💚 -864⚠️ +322💚 -0.30⚠️ +0.06000.000.00
ESP32C6💚 -110K⚠️ +410💚 -10.40⚠️ +0.08💚 -3800💚 -0.810.00
ESP32H2💚 -110K⚠️ +322💚 -10.22⚠️ +0.06💚 -3720💚 -0.810.00
ESP32💚 -772⚠️ +236💚 -0.25⚠️ +0.04000.000.00
Click to expand the detailed deltas report [usage change in BYTES]
TargetESP32P4ESP32S3ESP32S2ESP32C3ESP32C6ESP32H2ESP32
ExampleFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAM
ArduinoOTA/examples/BasicOTA💚 -9760💚 -6520💚 -6920💚 -8160💚 -10300--💚 -7000
AsyncUDP/examples/AsyncUDPClient💚 -9760💚 -6720💚 -6960💚 -8160💚 -10300--💚 -7360
AsyncUDP/examples/AsyncUDPMulticastServer💚 -9760💚 -6720💚 -7120💚 -8160💚 -10300--💚 -7360
AsyncUDP/examples/AsyncUDPServer💚 -9760💚 -6720💚 -7000💚 -8160💚 -10300--💚 -7200
DNSServer/examples/CaptivePortal💚 -9760💚 -6840💚 -6840💚 -8160💚 -10300--💚 -7440
EEPROM/examples/eeprom_class💚 -9660💚 -6720💚 -6720💚 -8140💚 -10200💚 -8160💚 -7120
EEPROM/examples/eeprom_extra💚 -9700💚 -6720💚 -6800💚 -8180💚 -10220💚 -8120💚 -7280
EEPROM/examples/eeprom_write💚 -9600💚 -6720💚 -6720💚 -8140💚 -10140💚 -8180💚 -7280
ESP32/examples/AnalogOut/LEDCFade💚 -9520💚 -6720💚 -6800💚 -8180💚 -10060💚 -8020💚 -7120
ESP32/examples/AnalogOut/LEDCGammaFade💚 -9600------💚 -10080💚 -8020--
ESP32/examples/AnalogOut/LEDCSingleChannel💚 -9640💚 -6880💚 -6880💚 -8080💚 -10180💚 -8100💚 -7120
ESP32/examples/AnalogOut/LEDCSoftwareFade💚 -9620💚 -6880💚 -6920💚 -8080💚 -10200💚 -8100💚 -7120
ESP32/examples/AnalogOut/SigmaDelta💚 -9600💚 -6720💚 -6800💚 -8140💚 -10140💚 -8080💚 -7120
ESP32/examples/AnalogOut/ledcFrequency💚 -9660💚 -6880💚 -6720💚 -8160💚 -10220💚 -8160💚 -7120
ESP32/examples/AnalogOut/ledcWrite_RGB💚 -9520💚 -6720💚 -6800💚 -8160💚 -10080💚 -8020💚 -7280
ESP32/examples/AnalogRead💚 -9500💚 -6720💚 -6720💚 -8240💚 -10060💚 -8020💚 -7120
ESP32/examples/AnalogReadContinuous💚 -9520💚 -6720💚 -6720💚 -8240💚 -10040💚 -8040💚 -7120
ESP32/examples/ArduinoStackSize💚 -9440💚 -6720💚 -6720💚 -8200💚 -10220💚 -8120💚 -7120
ESP32/examples/CI/CIBoardsTest💚 -9760💚 -6680💚 -6680💚 -8160💚 -10300💚 -8160💚 -7160
ESP32/examples/ChipID/GetChipID💚 -9500💚 -6720💚 -6720💚 -8200💚 -10180💚 -8200💚 -7120
ESP32/examples/DeepSleep/TimerWakeUp💚 -9580💚 -6880💚 -6720💚 -8220💚 -10160--💚 -7280
ESP32/examples/DeepSleep/TouchWakeUp💚 -9620💚 -6720💚 -6800------💚 -7120
ESP32/examples/FreeRTOS/BasicMultiThreading💚 -9540💚 -6720💚 -6720💚 -8160💚 -10200💚 -8120💚 -7120
ESP32/examples/FreeRTOS/Mutex💚 -9540💚 -6720💚 -6720💚 -8200💚 -10120💚 -8180💚 -7120
ESP32/examples/FreeRTOS/Queue💚 -9520💚 -6720💚 -6720💚 -8180💚 -10120💚 -8140💚 -7120
ESP32/examples/FreeRTOS/Semaphore💚 -9480💚 -6720💚 -6800💚 -8200💚 -10240💚 -8120💚 -7120
ESP32/examples/GPIO/BlinkRGB💚 -9600💚 -6720💚 -6800💚 -8120💚 -10200💚 -8100💚 -7120
ESP32/examples/GPIO/FunctionalInterrupt💚 -9540💚 -6720💚 -6720💚 -8220💚 -10080💚 -8040💚 -7120
ESP32/examples/GPIO/FunctionalInterruptStruct💚 -9500💚 -6720💚 -6720💚 -8240💚 -10080💚 -8040💚 -7280
ESP32/examples/GPIO/GPIOInterrupt💚 -9480💚 -6720💚 -6760💚 -8240💚 -10040💚 -7980💚 -7280
ESP32/examples/HWCDC_Events💚 -9600💚 -6880--💚 -8180💚 -10220💚 -8120--
ESP32/examples/MacAddress/GetMacAddress💚 -9580💚 -6720💚 -6720💚 -8220💚 -10160💚 -8200💚 -7120
ESP32/examples/RMT/Legacy_RMT_Driver_Compatible💚 -9540💚 -6720💚 -6720💚 -8180💚 -10180💚 -8140💚 -7120
ESP32/examples/RMT/RMTCallback💚 -9580💚 -6720💚 -6720💚 -8220💚 -10140💚 -8200💚 -7120
ESP32/examples/RMT/RMTLoopback💚 -9620💚 -6720💚 -6720💚 -8200💚 -10140💚 -8160💚 -7120
ESP32/examples/RMT/RMTReadXJT💚 -9580💚 -6880💚 -6800💚 -8240💚 -10160💚 -8180💚 -7120
ESP32/examples/RMT/RMTWrite_RGB_LED💚 -9560💚 -6720💚 -6800💚 -8140💚 -10120💚 -8120💚 -7120
ESP32/examples/RMT/RMT_CPUFreq_Test💚 -9640💚 -6720💚 -6800💚 -8180💚 -10160💚 -8160💚 -7120
ESP32/examples/RMT/RMT_EndOfTransmissionState💚 -9580💚 -6720💚 -6800💚 -8240💚 -10160💚 -8180💚 -7120
ESP32/examples/RMT/RMT_LED_Blink💚 -9680💚 -6720💚 -6720💚 -8140💚 -10200💚 -8160💚 -7120
ESP32/examples/ResetReason/ResetReason💚 -9500💚 -6720💚 -6720💚 -8200💚 -10160💚 -8140💚 -7280
ESP32/examples/ResetReason/ResetReason2💚 -9540💚 -6720💚 -6720💚 -8200💚 -10140💚 -8120💚 -7280
ESP32/examples/Serial/BaudRateDetect_Demo💚 -9540💚 -6720💚 -6720💚 -8200💚 -10200💚 -8200💚 -7120
ESP32/examples/Serial/OnReceiveError_BREAK_Demo💚 -10040💚 -7040💚 -7040💚 -8580💚 -10540💚 -8580💚 -7480
ESP32/examples/Serial/OnReceive_Demo💚 -10020💚 -7040💚 -7040💚 -8640💚 -10560💚 -8600💚 -7480
ESP32/examples/Serial/RS485_Echo_Demo💚 -9540💚 -6720💚 -6720💚 -8200💚 -10200💚 -8200💚 -7120
ESP32/examples/Serial/RxFIFOFull_Demo💚 -9960💚 -7200💚 -7120💚 -8640💚 -10580💚 -8600💚 -7480
ESP32/examples/Serial/RxTimeout_Demo💚 -10000💚 -7040💚 -7040💚 -8620💚 -10520💚 -8500💚 -7480
ESP32/examples/Serial/Serial_All_CPU_Freqs💚 -9580💚 -6880💚 -6800💚 -8240💚 -10160💚 -8200💚 -7120
ESP32/examples/Serial/Serial_STD_Func_OnReceive💚 -10020💚 -7040💚 -7040💚 -8540💚 -10540💚 -8580💚 -7640
ESP32/examples/Serial/onReceiveExample💚 -9580💚 -6720💚 -6720💚 -8180💚 -10140💚 -8200💚 -7120
ESP32/examples/TWAI/TWAIreceive💚 -9520💚 -6680💚 -6720💚 -8220💚 -10200💚 -8200💚 -7280
ESP32/examples/TWAI/TWAItransmit💚 -9520💚 -6680💚 -6720💚 -8220💚 -10200💚 -8220💚 -7120
ESP32/examples/Template/ExampleTemplate💚 -9600💚 -6880💚 -7240💚 -8160💚 -10100💚 -7960💚 -7120
ESP32/examples/Time/SimpleTime💚 -9760💚 -6600💚 -6840💚 -8160💚 -10300--💚 -7160
ESP32/examples/Timer/RepeatTimer💚 -9580💚 -6720💚 -6800💚 -8240💚 -10080💚 -8100💚 -7120
ESP32/examples/Timer/WatchdogTimer💚 -9600💚 -6720💚 -6720💚 -8200💚 -10080💚 -8100💚 -7120
ESP32/examples/Touch/TouchInterrupt💚 -9580💚 -6720💚 -6840------💚 -7120
ESP32/examples/Touch/TouchRead💚 -9560💚 -6880💚 -6720------💚 -7280
ESP32/examples/Utilities/HEXBuilder💚 -9560💚 -6720💚 -6720💚 -8180💚 -10160💚 -8180💚 -7120
ESP32/examples/Utilities/MD5Builder💚 -9620💚 -6880💚 -6800💚 -8160💚 -10140💚 -8180💚 -7120
ESP32/examples/Utilities/SHA1Builder💚 -9620💚 -6880💚 -6800💚 -8180💚 -10140💚 -8180💚 -7120
ESP_I2S/examples/ES8388_loopback💚 -9760💚 -6680💚 -6760💚 -8160💚 -10300💚 -8160💚 -7160
ESP_I2S/examples/Record_to_WAV💚 -9760💚 -6720--------💚 -7280
ESP_I2S/examples/Simple_tone💚 -9660💚 -6680💚 -6760💚 -8160💚 -10100💚 -8000💚 -7280
ESPmDNS/examples/mDNS-SD_Extended💚 -9760💚 -7000💚 -6720💚 -8160💚 -10300--💚 -7240
ESPmDNS/examples/mDNS_Web_Server💚 -9760💚 -6400💚 -6960💚 -8160💚 -10300--💚 -7120
Ethernet/examples/ETH_TLK110💚 -9760----------💚 -7440
Ethernet/examples/ETH_W5500_Arduino_SPI💚 -9760💚 -6920💚 -6560💚 -8160💚 -10300💚 -8160💚 -7240
Ethernet/examples/ETH_W5500_IDF_SPI💚 -9760💚 -6800💚 -6920💚 -8160💚 -10300💚 -8160💚 -7160
Ethernet/examples/ETH_WIFI_BRIDGE💚 -9760💚 -6840💚 -7000💚 -8160💚 -10300--💚 -7080
FFat/examples/FFat_Test💚 -9760💚 -6720💚 -6960💚 -8160💚 -10300💚 -8160💚 -7120
FFat/examples/FFat_time💚 -9760💚 -6840💚 -7000💚 -8160💚 -10300--💚 -7280
HTTPClient/examples/Authorization💚 -9760💚 -6720💚 -7360💚 -8160💚 -10300--💚 -6600
HTTPClient/examples/BasicHttpClient💚 -9760💚 -6720💚 -7360💚 -8160💚 -10300--💚 -6600
HTTPClient/examples/BasicHttpsClient💚 -9760💚 -6880💚 -7080💚 -8160💚 -10300--💚 -7160
HTTPClient/examples/ReuseConnection💚 -9760💚 -6640💚 -7320💚 -8160💚 -10300--💚 -7240
HTTPClient/examples/StreamHttpClient💚 -9760💚 -6560💚 -6800💚 -8160💚 -10300--💚 -7240
HTTPUpdate/examples/httpUpdate💚 -9760💚 -6720💚 -6840💚 -8160💚 -10300--💚 -7240
HTTPUpdate/examples/httpUpdateSPIFFS💚 -9760💚 -6720💚 -6840💚 -8160💚 -10300--💚 -7120
HTTPUpdate/examples/httpUpdateSecure💚 -9760💚 -6800💚 -7200💚 -8160💚 -10300--💚 -7280
HTTPUpdateServer/examples/WebUpdater💚 -9760💚 -6800💚 -6840💚 -8160💚 -10300--💚 -7040
LittleFS/examples/LITTLEFS_test💚 -9760💚 -6720💚 -6720💚 -8160💚 -10300💚 -8160💚 -7120
LittleFS/examples/LITTLEFS_time💚 -9760💚 -6720💚 -6960💚 -8160💚 -10300--💚 -7200
NetBIOS/examples/ESP_NBNST💚 -9760💚 -6760💚 -7080💚 -8160💚 -10300--💚 -7200
NetworkClientSecure/examples/WiFiClientInsecure💚 -9760💚 -6920💚 -6840💚 -8160💚 -10300--💚 -7280
NetworkClientSecure/examples/WiFiClientPSK💚 -9760💚 -6760💚 -6560💚 -8160💚 -10300--💚 -7280
NetworkClientSecure/examples/WiFiClientSecure💚 -9760💚 -6800💚 -6560💚 -8160💚 -10300--💚 -7280
NetworkClientSecure/examples/WiFiClientSecureProtocolUpgrade💚 -9760💚 -7080💚 -6480💚 -8160💚 -10300--💚 -7360
NetworkClientSecure/examples/WiFiClientShowPeerCredentials💚 -9760💚 -6760💚 -6880💚 -8160💚 -10300--💚 -7240
NetworkClientSecure/examples/WiFiClientTrustOnFirstUse💚 -9760💚 -6960💚 -6760💚 -8160💚 -10300--💚 -7280
PPP/examples/PPP_Basic⚠️ +5360⚠️ +2680⚠️ +2480⚠️ +3180⚠️ +4000⚠️ +3180⚠️ +2200
PPP/examples/PPP_WIFI_BRIDGE⚠️ +5360⚠️ +2720⚠️ +2640⚠️ +3180⚠️ +4000--⚠️ +2200
Preferences/examples/Prefs2Struct💚 -9500💚 -6720💚 -6720💚 -8220💚 -10160💚 -8160💚 -7280
Preferences/examples/StartCounter💚 -9500💚 -6720💚 -6720💚 -8220💚 -10160💚 -8160💚 -7120
SD/examples/SD_Test💚 -9760💚 -6720💚 -6800💚 -8160💚 -10300💚 -8160💚 -7160
SD/examples/SD_time💚 -9760💚 -6880💚 -7240💚 -8160💚 -10300--💚 -7120
SD_MMC/examples/SD2USBMSC💚 -9760💚 -6760----------
SD_MMC/examples/SDMMC_Test💚 -9760💚 -6680--------💚 -7280
SD_MMC/examples/SDMMC_time💚 -9760💚 -6680--------💚 -7520
SPI/examples/SPI_Multiple_Buses💚 -9760💚 -6880💚 -6720💚 -8160💚 -10320💚 -8160💚 -7280
SPIFFS/examples/SPIFFS_Test💚 -9760💚 -6720💚 -6720💚 -8160💚 -10300💚 -8160💚 -7120
SPIFFS/examples/SPIFFS_time💚 -9760💚 -6720💚 -7080💚 -8160💚 -10300--💚 -7200
TFLiteMicro/examples/hello_world💚 -9620💚 -6720💚 -6680💚 -8100💚 -10140💚 -8000💚 -7120
Ticker/examples/Blinker💚 -9640💚 -6720💚 -6720💚 -8140💚 -10240💚 -8180💚 -7120
Ticker/examples/TickerBasic💚 -9660💚 -6720💚 -6720💚 -8120💚 -10220💚 -8180💚 -7120
Ticker/examples/TickerParameter💚 -9660💚 -6720💚 -6720💚 -8140💚 -10200💚 -8180💚 -7120
USB/examples/CompositeDevice💚 -9760💚 -7080💚 -6720--------
USB/examples/ConsumerControl💚 -9740💚 -6720💚 -6720--------
USB/examples/CustomHIDDevice💚 -9660💚 -6720💚 -6720--------
USB/examples/FirmwareMSC💚 -9720💚 -6720💚 -6720--------
USB/examples/Gamepad💚 -9700💚 -6880💚 -6720--------
USB/examples/HIDVendor💚 -9700💚 -6720💚 -6720--------
USB/examples/Keyboard/KeyboardLogout💚 -9760💚 -6880💚 -6720--------
USB/examples/Keyboard/KeyboardMessage💚 -9760💚 -6880💚 -6720--------
USB/examples/Keyboard/KeyboardReprogram💚 -9760💚 -6880💚 -6720--------
USB/examples/Keyboard/KeyboardSerial💚 -9640💚 -6720💚 -6720--------
USB/examples/KeyboardAndMouseControl💚 -9700💚 -6720💚 -6800--------
USB/examples/MIDI/MidiController💚 -9700💚 -6720💚 -6760--------
USB/examples/MIDI/MidiInterface💚 -9660💚 -6720💚 -6720--------
USB/examples/MIDI/MidiMusicBox💚 -9680💚 -6720💚 -6720--------
USB/examples/MIDI/ReceiveMidi💚 -9640💚 -6720💚 -6800--------
USB/examples/Mouse/ButtonMouseControl💚 -9720💚 -6720💚 -6720--------
USB/examples/SystemControl💚 -9740💚 -6880💚 -6720--------
USB/examples/USBMSC💚 -9580💚 -6720💚 -6800--------
USB/examples/USBSerial💚 -9700💚 -6720💚 -6720--------
USB/examples/USBVendor💚 -9700💚 -6720💚 -6720--------
Update/examples/AWS_S3_OTA_Update💚 -9760💚 -6520💚 -6760💚 -8160💚 -10300--💚 -7200
Update/examples/HTTPS_OTA_Update💚 -9760💚 -6880💚 -6960💚 -8160💚 -10300--💚 -7240
Update/examples/HTTP_Client_AES_OTA_Update💚 -9760💚 -6760💚 -6680💚 -8160💚 -10300--💚 -7160
Update/examples/HTTP_Server_AES_OTA_Update💚 -9760💚 -6760💚 -6680💚 -8160💚 -10300--💚 -7240
Update/examples/OTAWebUpdater💚 -9760💚 -6880💚 -6880💚 -8160💚 -10300--💚 -7160
Update/examples/SD_Update💚 -9760💚 -6880💚 -6760💚 -8160💚 -10300💚 -8160💚 -7120
WebServer/examples/AdvancedWebServer💚 -9760💚 -6880💚 -6600💚 -8160💚 -10300--💚 -7160
WebServer/examples/FSBrowser💚 -9760💚 -6760💚 -6800💚 -8160💚 -10300--💚 -7200
WebServer/examples/Filters💚 -9760💚 -6720💚 -6800💚 -8160💚 -10300--💚 -7280
WebServer/examples/HelloServer💚 -9760💚 -6840💚 -6800💚 -8160💚 -10300--💚 -7240
WebServer/examples/HttpAdvancedAuth💚 -9760💚 -6880💚 -7000💚 -8160💚 -10300--💚 -7280
WebServer/examples/HttpAuthCallback💚 -9760💚 -6840💚 -6880💚 -8160💚 -10300--💚 -7120
WebServer/examples/HttpAuthCallbackInline💚 -9760💚 -7080💚 -6960💚 -8160💚 -10300--💚 -7240
WebServer/examples/HttpBasicAuth💚 -9760💚 -6800💚 -7000💚 -8160💚 -10300--💚 -7280
WebServer/examples/HttpBasicAuthSHA1💚 -9760💚 -6640💚 -7080💚 -8160💚 -10300--💚 -7120
WebServer/examples/HttpBasicAuthSHA1orBearerToken💚 -9760💚 -6760💚 -6880💚 -8160💚 -10300--💚 -7200
WebServer/examples/MultiHomedServers💚 -9760💚 -6760💚 -6480💚 -8160💚 -10300--💚 -7120
WebServer/examples/PathArgServer💚 -9760💚 -6920💚 -6720💚 -8160💚 -10300--💚 -7040
WebServer/examples/SDWebServer💚 -9760💚 -6640💚 -6960💚 -8160💚 -10300--💚 -7040
WebServer/examples/SimpleAuthentification💚 -9760💚 -6720💚 -6760💚 -8160💚 -10300--💚 -7080
WebServer/examples/UploadHugeFile💚 -9760💚 -6840💚 -6720💚 -8160💚 -10300--💚 -7360
WebServer/examples/WebServer💚 -9760💚 -6560💚 -6760💚 -8160💚 -10300--💚 -7200
WebServer/examples/WebUpdate💚 -9760💚 -7200💚 -6880💚 -8160💚 -10300--💚 -7080
WiFi/examples/FTM/FTM_Initiator💚 -9760💚 -6960💚 -6680💚 -8160💚 -10300--💚 -7160
WiFi/examples/FTM/FTM_Responder💚 -9760💚 -6920💚 -6800💚 -8160💚 -10300--💚 -7120
WiFi/examples/SimpleWiFiServer💚 -9760💚 -6840💚 -6880💚 -8160💚 -10300--💚 -7080
WiFi/examples/WiFiAccessPoint💚 -9760💚 -6680💚 -6960💚 -8160💚 -10300--💚 -7320
WiFi/examples/WiFiClient💚 -9760💚 -6760💚 -6840💚 -8160💚 -10300--💚 -7280
WiFi/examples/WiFiClientBasic💚 -9760💚 -6880💚 -6720💚 -8160💚 -10300--💚 -7200
WiFi/examples/WiFiClientConnect💚 -9760💚 -6920💚 -7000💚 -8160💚 -10300--💚 -7200
WiFi/examples/WiFiClientEvents💚 -9760💚 -7040💚 -6840💚 -8160💚 -10300--💚 -7000
WiFi/examples/WiFiClientStaticIP💚 -9760💚 -6880💚 -6560💚 -8160💚 -10300--💚 -7360
WiFi/examples/WiFiExtender💚 -9760💚 -7200💚 -6800💚 -8160💚 -10300--💚 -7240
WiFi/examples/WiFiIPv6💚 -9760💚 -6720💚 -7040💚 -8160💚 -10300--💚 -7240
WiFi/examples/WiFiMulti💚 -9760💚 -7000💚 -7000💚 -8160💚 -10300--💚 -7080
WiFi/examples/WiFiMultiAdvanced💚 -9760💚 -6800💚 -6880💚 -8160💚 -10300--💚 -7080
WiFi/examples/WiFiScan💚 -9760💚 -6320💚 -7080💚 -8160💚 -10300--💚 -7280
WiFi/examples/WiFiScanAsync💚 -9760💚 -6320💚 -7160💚 -8160💚 -10300--💚 -7320
WiFi/examples/WiFiScanDualAntenna💚 -9760💚 -6680💚 -7120💚 -8160💚 -10300--💚 -6960
WiFi/examples/WiFiScanTime💚 -9760💚 -6480💚 -7040💚 -8160💚 -10300--💚 -7320
WiFi/examples/WiFiTelnetToSerial💚 -9760💚 -6480💚 -6920💚 -8160💚 -10300--💚 -7400
WiFi/examples/WiFiUDPClient💚 -9760💚 -6800💚 -6800💚 -8160💚 -10300--💚 -7280
Wire/examples/WireMaster💚 -9700💚 -6680💚 -6760💚 -8140💚 -10160💚 -8040💚 -7120
Wire/examples/WireScan💚 -9700💚 -6680💚 -6680💚 -8160💚 -10140💚 -8060💚 -7280
Wire/examples/WireSlave💚 -9700💚 -6680💚 -6680💚 -8160💚 -10180💚 -8040💚 -7120
BLE/examples/BLE5_extended_scan--💚 -6560--💚 -8160💚 -10300💚 -8160--
BLE/examples/BLE5_multi_advertising--💚 -6960--💚 -8160💚 -10300💚 -8160--
BLE/examples/BLE5_periodic_advertising--💚 -7000--💚 -8160💚 -10300💚 -8160--
BLE/examples/BLE5_periodic_sync--💚 -6720--💚 -8160💚 -10300💚 -8160--
BLE/examples/Beacon_Scanner--💚 -6840--💚 -8160💚 -10300💚 -8160💚 -7200
BLE/examples/Client--💚 -6840--💚 -8160💚 -10300💚 -8160💚 -7120
BLE/examples/EddystoneTLM_Beacon--💚 -6720--💚 -8160💚 -10300💚 -8160💚 -7440
BLE/examples/EddystoneURL_Beacon--💚 -6760--💚 -8160💚 -10300💚 -8160💚 -7560
BLE/examples/Notify--💚 -7120--💚 -8160💚 -10300💚 -8160💚 -7280
BLE/examples/Scan--💚 -6240--💚 -8160💚 -10300💚 -8160💚 -7520
BLE/examples/Server--💚 -6840--💚 -8160💚 -10300💚 -8160💚 -7440
BLE/examples/Server_multiconnect--💚 -6880--💚 -8160💚 -10300💚 -8160💚 -7080
BLE/examples/UART--💚 -6960--💚 -8160💚 -10300💚 -8160💚 -7000
BLE/examples/Write--💚 -6840--💚 -8160💚 -10300💚 -8160💚 -7320
BLE/examples/iBeacon--💚 -6480--💚 -8160💚 -10300💚 -8160💚 -7400
ESP32/examples/Camera/CameraWebServer (1)--💚 -6920💚 -6920------💚 -7360
ESP32/examples/Camera/CameraWebServer (2)--💚 -6960💚 -6280------💚 -7320
ESP32/examples/Camera/CameraWebServer (3)--💚 -6960----------
ESP32/examples/DeepSleep/ExternalWakeUp--💚 -6720💚 -6720------💚 -7280
ESP_NOW/examples/ESP_NOW_Broadcast_Master--💚 -6520💚 -7240💚 -8160💚 -10300--💚 -7200
ESP_NOW/examples/ESP_NOW_Broadcast_Slave--💚 -6920💚 -6880💚 -8160💚 -10300--💚 -6960
ESP_NOW/examples/ESP_NOW_Network--💚 -6600💚 -6680💚 -8160💚 -10300--💚 -6960
ESP_NOW/examples/ESP_NOW_Serial--💚 -6800💚 -6960💚 -8160💚 -10300--💚 -7160
ESP_SR/examples/Basic--💚 -6680----------
HTTPClient/examples/HTTPClientEnterprise--💚 -6760💚 -6480💚 -8160💚 -10300--💚 -7040
Insights/examples/DiagnosticsSmokeTest--💚 -6600💚 -6920💚 -8160💚 -10300--💚 -6880
Insights/examples/MinimalDiagnostics--💚 -7080💚 -7040💚 -8160💚 -10300--💚 -7360
Matter/examples/MatterColorLight--💚 -6400💚 -6800💚 -8200💚 -10300--💚 -7240
Matter/examples/MatterCommissionTest--💚 -6200💚 -6880💚 -8200💚 -10300--💚 -7600
Matter/examples/MatterComposedLights--💚 -6720💚 -6920💚 -8160💚 -10340--💚 -7200
Matter/examples/MatterContactSensor--💚 -6600💚 -7280💚 -8240💚 -10300--💚 -7320
Matter/examples/MatterDimmableLight--💚 -6880💚 -6720💚 -8160💚 -10300--💚 -7320
Matter/examples/MatterEnhancedColorLight--💚 -6520💚 -8640💚 -8160💚 -10300--💚 -7560
Matter/examples/MatterEvents--💚 -6760💚 -7160💚 -8160💚 -10300--💚 -7280
Matter/examples/MatterFan--💚 -6840💚 -6800💚 -8320💚 -10300--💚 -6920
Matter/examples/MatterHumiditySensor--💚 -6840💚 -6920💚 -8180💚 -10340--💚 -7560
Matter/examples/MatterMinimum--💚 -6560💚 -7280💚 -8200💚 -10300--💚 -7360
Matter/examples/MatterOccupancySensor--💚 -6840💚 -6880💚 -8160💚 -10300--💚 -7320
Matter/examples/MatterOnIdentify--💚 -6640💚 -6760💚 -8160💚 -10300--💚 -7360
Matter/examples/MatterOnOffLight--💚 -6560💚 -6640💚 -8160💚 -10300--💚 -6720
Matter/examples/MatterOnOffPlugin--💚 -6560💚 -6720💚 -8160💚 -10300--💚 -6720
Matter/examples/MatterPressureSensor--💚 -7000💚 -6920💚 -8180💚 -10340--💚 -7400
Matter/examples/MatterSmartButon--💚 -6800💚 -6840💚 -8180💚 -10300--💚 -7160
Matter/examples/MatterTemperatureLight--💚 -7080💚 -6920💚 -8160💚 -10300--💚 -7560
Matter/examples/MatterTemperatureSensor--💚 -6840💚 -6960💚 -8180💚 -10340--💚 -7440
Matter/examples/MatterThermostat--💚 -6800💚 -6920💚 -8320💚 -10300--💚 -7080
Matter/examples/WiFiProvWithinMatter--💚 -7040💚 -7200💚 -8160💚 -10300--💚 -7360
NetworkClientSecure/examples/WiFiClientSecureEnterprise--💚 -6760💚 -6880💚 -8160💚 -10300--💚 -7040
RainMaker/examples/RMakerCustom--💚 -6960💚 -6920💚 -8200💚 -10300----
RainMaker/examples/RMakerCustomAirCooler--💚 -6720💚 -7000💚 -8160💚 -10300----
RainMaker/examples/RMakerSonoffDualR3--💚 -6960💚 -6920💚 -8200💚 -10300----
RainMaker/examples/RMakerSwitch--💚 -6960💚 -5880💚 -8200💚 -10300----
SimpleBLE/examples/SimpleBleDevice--💚 -6760--💚 -8140💚 -10140💚 -8040💚 -7520
WebServer/examples/Middleware--💚 -6600💚 -6680💚 -8160💚 -10300--💚 -7280
WiFi/examples/WPS--💚 -6720💚 -6880💚 -8160💚 -10300--💚 -7120
WiFi/examples/WiFiBlueToothSwitch--💚 -6920--💚 -8160💚 -10300--💚 -7200
WiFi/examples/WiFiClientEnterprise--💚 -6480💚 -6640💚 -8160💚 -10300--💚 -7200
WiFi/examples/WiFiSmartConfig--💚 -6800💚 -6840💚 -8160💚 -10300--💚 -7160
WiFiProv/examples/WiFiProv--💚 -6480💚 -6440💚 -8160💚 -10300--💚 -6840
Zigbee/examples/Zigbee_Analog_Input_Output--⚠️ +2680⚠️ +2800⚠️ +3180💚 -10300💚 -8160⚠️ +2200
Zigbee/examples/Zigbee_Color_Dimmer_Switch--⚠️ +2480⚠️ +2600⚠️ +3220💚 -10260💚 -8120⚠️ +2240
Zigbee/examples/Zigbee_Electrical_AC_Sensor--⚠️ +2520⚠️ +2560⚠️ +3200💚 -10300💚 -8120⚠️ +2240
Zigbee/examples/Zigbee_Electrical_AC_Sensor_MultiPhase--⚠️ +2560⚠️ +2560⚠️ +3200💚 -10300💚 -8160⚠️ +2280
Zigbee/examples/Zigbee_Gateway--⚠️ +2720⚠️ +2720⚠️ +3180----⚠️ +2360
Zigbee/examples/Zigbee_On_Off_Switch--⚠️ +2440⚠️ +2640⚠️ +3160💚 -10260💚 -8140⚠️ +2280
Zigbee/examples/Zigbee_Range_Extender--⚠️ +2720⚠️ +2680⚠️ +3160💚 -10240💚 -8180⚠️ +2120
Zigbee/examples/Zigbee_Thermostat--⚠️ +2440⚠️ +2680⚠️ +3160💚 -10260💚 -8120⚠️ +2080
OpenThread/examples/CLI/COAP/coap_lamp--------⚠️ +4040⚠️ +3160--
OpenThread/examples/CLI/COAP/coap_switch--------⚠️ +4060⚠️ +3160--
OpenThread/examples/CLI/SimpleCLI--------⚠️ +4080⚠️ +3220--
OpenThread/examples/CLI/SimpleNode--------⚠️ +4080⚠️ +3160--
OpenThread/examples/CLI/SimpleThreadNetwork/ExtendedRouterNode--------⚠️ +4040⚠️ +3160--
OpenThread/examples/CLI/SimpleThreadNetwork/LeaderNode--------⚠️ +4080⚠️ +3200--
OpenThread/examples/CLI/SimpleThreadNetwork/RouterNode--------⚠️ +4080⚠️ +3200--
OpenThread/examples/CLI/ThreadScan--------⚠️ +4100⚠️ +3180--
OpenThread/examples/CLI/onReceive--------⚠️ +4100⚠️ +3220--
OpenThread/examples/Native/SimpleThreadNetwork/LeaderNode--------💚 -109K💚 -380💚 -110K💚 -372--
OpenThread/examples/Native/SimpleThreadNetwork/RouterNode--------💚 -110K💚 -380💚 -110K💚 -372--
Zigbee/examples/Zigbee_Binary_Input--------💚 -10260💚 -8140--
Zigbee/examples/Zigbee_CarbonDioxide_Sensor--------💚 -10260💚 -8140--
Zigbee/examples/Zigbee_Color_Dimmable_Light--------💚 -10240💚 -8140--
Zigbee/examples/Zigbee_Contact_Switch--------💚 -10260💚 -8140--
Zigbee/examples/Zigbee_Dimmable_Light--------💚 -10240💚 -8160--
Zigbee/examples/Zigbee_Electrical_DC_Sensor--------💚 -10240💚 -8120--
Zigbee/examples/Zigbee_Illuminance_Sensor--------💚 -10260💚 -8120--
Zigbee/examples/Zigbee_OTA_Client--------💚 -10220💚 -8160--
Zigbee/examples/Zigbee_Occupancy_Sensor--------💚 -10240💚 -8140--
Zigbee/examples/Zigbee_On_Off_Light--------💚 -10260💚 -8180--
Zigbee/examples/Zigbee_On_Off_MultiSwitch--------💚 -10320💚 -8180--
Zigbee/examples/Zigbee_PM25_Sensor--------💚 -10260💚 -8140--
Zigbee/examples/Zigbee_Power_Outlet--------💚 -10260💚 -8180--
Zigbee/examples/Zigbee_Pressure_Flow_Sensor--------💚 -10280💚 -8120--
Zigbee/examples/Zigbee_Scan_Networks--------💚 -10240💚 -8160--
Zigbee/examples/Zigbee_Temp_Hum_Sensor_Sleepy--------💚 -10260💚 -8140--
Zigbee/examples/Zigbee_Temperature_Sensor--------💚 -10280💚 -8140--
Zigbee/examples/Zigbee_Vibration_Sensor--------💚 -10240💚 -8120--
Zigbee/examples/Zigbee_Wind_Speed_Sensor--------💚 -10260💚 -8140--
Zigbee/examples/Zigbee_Window_Covering--------💚 -10260💚 -8140--
BluetoothSerial/examples/DiscoverConnect------------💚 -6800
BluetoothSerial/examples/GetLocalMAC------------💚 -7560
BluetoothSerial/examples/SerialToSerialBT------------💚 -7400
BluetoothSerial/examples/SerialToSerialBTM------------💚 -7720
BluetoothSerial/examples/SerialToSerialBT_Legacy------------💚 -7440
BluetoothSerial/examples/SerialToSerialBT_SSP------------💚 -7560
BluetoothSerial/examples/bt_classic_device_discovery------------💚 -7560
BluetoothSerial/examples/bt_remove_paired_devices------------💚 -7600
ESP32/examples/DeepSleep/SmoothBlink_ULP_Code------------💚 -7280
Ethernet/examples/ETH_LAN8720------------💚 -7440

@SuGlider SuGlider requested a review from Copilot June 21, 2025 22:32
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR restores UART functionality after the IDF 5.4 change by centralizing pin setup logic and replacing uart_set_pin calls with a new internal configuration path.

  • Introduces _uartTrySetIomuxPin and _uartInternalSetPin for unified IOMUX/GPIO-matrix handling.
  • Updates _uartAttachPins to call _uartInternalSetPin instead of uart_set_pin.
  • Preserves legacy loopback code under #if 0 for future reference.
Comments suppressed due to low confidence (3)

cores/esp32/esp32-hal-uart.c:298

  • [nitpick] Consider adding a function-level comment or docstring explaining the purpose, parameters, and return value of _uartTrySetIomuxPin to improve readability and maintainability.
static bool _uartTrySetIomuxPin(uart_port_t uart_num, int io_num, uint32_t idx) {

cores/esp32/esp32-hal-uart.c:330

  • [nitpick] Add a descriptive comment above _uartInternalSetPin summarizing its behavior, parameter roles, and error conditions to aid future contributors.
static esp_err_t _uartInternalSetPin(uart_port_t uart_num, int tx_io_num, int rx_io_num, int rts_io_num, int cts_io_num) {

cores/esp32/esp32-hal-uart.c:303

  • Add unit or integration tests to cover the new fallback logic in _uartTrySetIomuxPin, particularly branches where default_gpio matches versus does not match the provided io_num.
  if (upin->iomux_func == -1 || upin->default_gpio == -1 || upin->default_gpio != io_num) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ESP-IDF related ESP-IDF related issues bug 🐞 Inconsistencies or issues which will cause a problem for users or implementers. Peripheral: UART
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

Serial Read Fail with latest IDF 5.4.1
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy