瀏覽代碼

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.
Angus Gratton 5 年之前
父節點
當前提交
4afdc394c9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/freertos/include/freertos/FreeRTOSConfig.h

+ 1 - 1
components/freertos/include/freertos/FreeRTOSConfig.h

@@ -189,7 +189,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