fix(stability): disable dangerous mbedtls free configs, place panic handler in IRAM, and make prefetch safe and on-demand
All checks were successful
ESP32 Build & Release / build (push) Successful in 1m11s

This commit is contained in:
2026-09-12 18:10:32 +02:00
parent d1a4c18967
commit 27482fef01
4 changed files with 42 additions and 15 deletions

View File

@@ -34,11 +34,15 @@ CONFIG_SPI_FLASH_YIELD_DURING_ERASE=y
CONFIG_SPI_FLASH_ERASE_YIELD_DURATION_MS=20
CONFIG_SPI_FLASH_ERASE_YIELD_TICKS=2
# Watchdog Timeouts for Flash Erase & OTA Operations
# Watchdog & Panic Handlers
CONFIG_ESP_INT_WDT_TIMEOUT_MS=2000
CONFIG_ESP_TASK_WDT_TIMEOUT_S=15
CONFIG_ESP_PANIC_HANDLER_IRAM=y
# mbedTLS Dynamic Buffers & Memory Optimization (Vital for ESP32 without PSRAM)
# Prefetch disabled by default for boot stability
CONFIG_MTG_SCAN_PREFETCH=n
# mbedTLS Dynamic Buffers (Keep only dynamic buffer; free ca cert causes crashes with crt bundle)
CONFIG_MBEDTLS_DYNAMIC_BUFFER=y
CONFIG_MBEDTLS_DYNAMIC_FREE_CONFIG_DATA=y
CONFIG_MBEDTLS_DYNAMIC_FREE_CA_CERT=y
# CONFIG_MBEDTLS_DYNAMIC_FREE_CONFIG_DATA is not set
# CONFIG_MBEDTLS_DYNAMIC_FREE_CA_CERT is not set