diff --git a/components/freertos/port/riscv/include/freertos/FreeRTOSConfig.h b/components/freertos/port/riscv/include/freertos/FreeRTOSConfig.h index 918d0af132..87cbab80b9 100644 --- a/components/freertos/port/riscv/include/freertos/FreeRTOSConfig.h +++ b/components/freertos/port/riscv/include/freertos/FreeRTOSConfig.h @@ -157,7 +157,7 @@ /* 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 diff --git a/components/freertos/port/xtensa/include/freertos/FreeRTOSConfig.h b/components/freertos/port/xtensa/include/freertos/FreeRTOSConfig.h index 4775f917cc..346d4c02fa 100644 --- a/components/freertos/port/xtensa/include/freertos/FreeRTOSConfig.h +++ b/components/freertos/port/xtensa/include/freertos/FreeRTOSConfig.h @@ -197,7 +197,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