From ab0e6bb3efc260701f2d2648d0a99bb760a6c929 Mon Sep 17 00:00:00 2001 From: Paul Strawder Date: Thu, 4 Sep 2025 14:54:17 +0200 Subject: [PATCH 1/2] add documentation about advanced parameter main_loop_stack_size --- content/components/esp32.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/components/esp32.md b/content/components/esp32.md index dd7d625750..0d12081e70 100644 --- a/content/components/esp32.md +++ b/content/components/esp32.md @@ -158,6 +158,12 @@ esp32: the ESP-IDF framework. Not valid for the Arduino framework. Use of experimental features may cause instability or other issues. +- **main_loop_stack_size** (*Optional*, int): Can be set to changed to adjust the default ESPHome main loop task stack size in + the ESP-IDF framework. Not valid for the Arduino framework. Increased values allow to create deeper function invocation stacks + at the cost of reduced available heap memory. This value can be increased to complex code invocation stack sequences. + Adjust this value only if you see error like `A stack overflow in task app_main has been detected`. + **Valid only on original ESP32 with** `esp-idf` **framework.** + **LWIP Optimization Options (ESP-IDF only):** The following options are available under the `advanced` section when using the ESP-IDF framework to optimize From 0358712abde0aa589858ddf1a7e77ca3933e9269 Mon Sep 17 00:00:00 2001 From: Paul Strawder Date: Thu, 4 Sep 2025 15:06:04 +0200 Subject: [PATCH 2/2] lint --- content/components/esp32.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/components/esp32.md b/content/components/esp32.md index 0d12081e70..a8c43bf453 100644 --- a/content/components/esp32.md +++ b/content/components/esp32.md @@ -161,7 +161,7 @@ esp32: - **main_loop_stack_size** (*Optional*, int): Can be set to changed to adjust the default ESPHome main loop task stack size in the ESP-IDF framework. Not valid for the Arduino framework. Increased values allow to create deeper function invocation stacks at the cost of reduced available heap memory. This value can be increased to complex code invocation stack sequences. - Adjust this value only if you see error like `A stack overflow in task app_main has been detected`. + Adjust this value only if you see error like `A stack overflow in task app_main has been detected`. **Valid only on original ESP32 with** `esp-idf` **framework.** **LWIP Optimization Options (ESP-IDF only):**