Skip to content

Commit

Permalink
Fix ESP32 Ethernet using EthClockMode 3 (arendst#22248)
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed Oct 9, 2024
1 parent 1a5e6db commit f8fbe15
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions tasmota/tasmota.ino
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,11 @@ LList<char*> 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
Expand All @@ -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);
}
Expand Down

0 comments on commit f8fbe15

Please sign in to comment.