Final fix ethernet malfunction on idf5.3

This commit is contained in:
Theo Arends 2024-10-10 12:30:51 +02:00
parent f8fbe15300
commit 8e7c7c3af6
1 changed files with 5 additions and 4 deletions

View File

@ -413,10 +413,11 @@ void setup(void) {
if (!FoundPSRAM()) { if (!FoundPSRAM()) {
// test if the CPU is not pico // test if the CPU is not pico
uint32_t pkg_version = bootloader_common_get_chip_ver_pkg(); uint32_t pkg_version = bootloader_common_get_chip_ver_pkg();
if (pkg_version <= 3) { // D0WD, S0WD, D2WD 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); // D0WD_PSRAM_CS_IO
gpio_reset_pin(GPIO_NUM_16); gpio_reset_pin(GPIO_NUM_17); // D0WD_PSRAM_CLK_IO
gpio_reset_pin(GPIO_NUM_17); // IDF5.3 fix esp_gpio_reserve used in init PSRAM
esp_gpio_revoke(BIT64(GPIO_NUM_16) | BIT64(GPIO_NUM_17));
} }
} }
#endif // CONFIG_IDF_TARGET_ESP32 #endif // CONFIG_IDF_TARGET_ESP32