From 7c5bb15154f6766987bf3f119335b08dfcc51a40 Mon Sep 17 00:00:00 2001 From: Jade Mattsson Date: Thu, 24 Oct 2024 16:12:39 +1100 Subject: [PATCH] Increase default system event task stack size. Fixes the crash reported in #3660. --- sdkconfig.defaults | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdkconfig.defaults b/sdkconfig.defaults index 3475ee40..62707e0e 100644 --- a/sdkconfig.defaults +++ b/sdkconfig.defaults @@ -12,6 +12,8 @@ CONFIG_COMPILER_OPTIMIZATION_SIZE=y # Empirical value to prevent a firmware crash due to stack overflow. CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192 +# Increase the event task stack size to avoid crash on C3 during WiFi connect. +CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=3072 # Enable panic handler for task wdt to reset the firmware upon wdt timeout CONFIG_ESP_TASK_WDT_PANIC=y