[Ethernet[ Fix crashes when using Ethernet + IPv6 on LittleFS builds

This commit is contained in:
TD-er
2024-04-09 12:18:06 +02:00
parent 54598b0d6d
commit a08c8e0ecb
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ extra_configs =
platformio_esp32c6_envs.ini
;default_envs = normal_ESP32_4M
default_envs = max_ESP32_16M8M_LittleFS
default_envs = normal_ESP32c6_4M316k_LittleFS_CDC
; default_envs = custom_ESP8266_4M1M
;default_envs = normal_ESP8266_4M1M
+2 -2
View File
@@ -216,14 +216,14 @@ lib_ignore =
; Build with HWCDC fix.
platform = https://github.com/Jason2866/platform-espressif32.git
;platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/2221/framework-arduinoespressif32-all-release_v5.1-ec01775.zip
platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/2257/framework-arduinoespressif32-all-release_v5.1-11140aa.zip
platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/2261/framework-arduinoespressif32-all-release_v5.1-11140aa.zip
build_flags = -DESP32_STAGE
-DESP_IDF_VERSION_MAJOR=5
-DLIBRARIES_NO_LOG=1
-DDISABLE_SC16IS752_SPI
-DCONFIG_PM_ENABLE
; -DCONFIG_LWIP_L2_TO_L3_COPY
-DETH_SPI_SUPPORTS_NO_IRQ=1
; -DETH_SPI_SUPPORTS_NO_IRQ=1
-DCONFIG_FREERTOS_USE_TICKLESS_IDLE=1
-DCONFIG_FREERTOS_IDLE_TIME_BEFORE_SLEEP=3
-DNEOPIXEL_ESP32_RMT_DEFAULT
@@ -184,6 +184,7 @@ void EthernetEventData_t::markConnected() {
#if FEATURE_USE_IPV6
ETH.enableIPv6(true);
// workaround for the race condition in LWIP, see https://github.com/espressif/arduino-esp32/pull/9016#discussion_r1451774885
/*
{
uint32_t i = 5; // try 5 times only
while (esp_netif_create_ip6_linklocal(get_esp_interface_netif(ESP_IF_ETH)) != ESP_OK) {
@@ -194,6 +195,7 @@ void EthernetEventData_t::markConnected() {
}
}
}
*/
#endif
}
+4
View File
@@ -114,6 +114,10 @@
# include "../Helpers/Hardware_ADC_cali.h"
#if FEATURE_ETHERNET
#include <ETH.h>
#endif
#endif // ifdef ESP32