From 9bd9e939ba0859762f46651f2f5daa869b838c89 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 4 Mar 2021 17:56:58 +1100 Subject: [PATCH] freertos: Add a small additional stack when optimization set to None Fix for occasional crash on startup when DPORT task overwrites its stack during context switch, otherwise. --- components/freertos/xtensa/include/freertos/FreeRTOSConfig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/freertos/xtensa/include/freertos/FreeRTOSConfig.h b/components/freertos/xtensa/include/freertos/FreeRTOSConfig.h index 2970c07e83..b8a2fa2fc1 100644 --- a/components/freertos/xtensa/include/freertos/FreeRTOSConfig.h +++ b/components/freertos/xtensa/include/freertos/FreeRTOSConfig.h @@ -192,7 +192,7 @@ int xt_clock_freq(void) __attribute__((deprecated)); /* with optimizations disabled, scheduler uses additional stack */ #if CONFIG_COMPILER_OPTIMIZATION_NONE -#define configSTACK_OVERHEAD_OPTIMIZATION 256 +#define configSTACK_OVERHEAD_OPTIMIZATION 320 #else #define configSTACK_OVERHEAD_OPTIMIZATION 0 #endif