From f8fbe153000591727e40b5007e0de78c33833131 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 9 Oct 2024 17:31:33 +0200 Subject: [PATCH] Fix ESP32 Ethernet using EthClockMode 3 (#22248) --- CHANGELOG.md | 1 + RELEASENOTES.md | 1 + tasmota/tasmota.ino | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 752561c2614a..829437c8a086 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ All notable changes to this project will be documented in this file. - ESP32-S3 uDisplay force cache writes to RGB display (#22222) - ESP32 Dali compile error with core 3.x (#22214) - Dali received data decoding +- ESP32 Ethernet using EthClockMode 3 (#22248) ### Removed diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 32f958e5ac9c..81867888259a 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -176,6 +176,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm - Zigbee flashing CC2562P with latest firmware [#22117](https://github.com/arendst/Tasmota/issues/22117) - ESP32 Range Extender compile error with core 3.x [#22205](https://github.com/arendst/Tasmota/issues/22205) - ESP32 Dali compile error with core 3.x [#22214](https://github.com/arendst/Tasmota/issues/22214) +- ESP32 Ethernet using EthClockMode 3 [#22248](https://github.com/arendst/Tasmota/issues/22248) - Berry avoid `readbytes()` from crashing when file is too large [#22057](https://github.com/arendst/Tasmota/issues/22057) - Berry energy missing attributes [#22116](https://github.com/arendst/Tasmota/issues/22116) - Berry I2C to prepare M5Stack I2C STM32 based devices [#22143](https://github.com/arendst/Tasmota/issues/22143) diff --git a/tasmota/tasmota.ino b/tasmota/tasmota.ino index 98e34586a9e7..fe7fa2c093ac 100644 --- a/tasmota/tasmota.ino +++ b/tasmota/tasmota.ino @@ -396,6 +396,11 @@ LList backlog; // Command backlog implemented with * Main \*********************************************************************************************/ +#ifdef ESP32 +// IDF5.3 fix esp_gpio_reserve used in init PSRAM. Needed by Tasmota.ino esp_gpio_revoke +#include "esp_private/esp_gpio_reserve.h" +#endif // ESP32 + void setup(void) { #ifdef ESP32 #ifdef CONFIG_IDF_TARGET_ESP32 @@ -409,6 +414,7 @@ void setup(void) { // test if the CPU is not pico uint32_t pkg_version = bootloader_common_get_chip_ver_pkg(); if (pkg_version <= 3) { // D0WD, S0WD, D2WD + esp_gpio_revoke(0xFFFFFFFFFFFFFFFF); // Revoke all GPIO's some of them set by init PSRAM in IDF gpio_reset_pin(GPIO_NUM_16); gpio_reset_pin(GPIO_NUM_17); }