From 1224ae9a422b41008727f99cbe70275b3244e02c Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Fri, 2 Oct 2020 10:24:53 +1000 Subject: [PATCH] freertos: Use configured idle task stack size not minimum task stack size for idle tasks --- components/freertos/tasks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/freertos/tasks.c b/components/freertos/tasks.c index d70bf56e91..f11903db0d 100644 --- a/components/freertos/tasks.c +++ b/components/freertos/tasks.c @@ -2188,7 +2188,7 @@ uint32_t ulIdleTaskStackSize; for(BaseType_t i = 0; i < portNUM_PROCESSORS; i++) { /* Add the idle task at the lowest priority. */ - #if( configSUPPORT_STATIC_ALLOCATION == 1 && configSUPPORT_STATIC_ALLOCATION == 0 ) + #if( 0 ) /* configSUPPORT_STATIC_ALLOCATION == 1 ) Temporarily unsupported IDF-2243 */ { /* The Idle task is created using user provided RAM - obtain the address of the RAM then create the idle task. */ @@ -2216,7 +2216,7 @@ uint32_t ulIdleTaskStackSize; /* The Idle task is being created using dynamically allocated RAM. */ xReturn = xTaskCreatePinnedToCore( prvIdleTask, configIDLE_TASK_NAME, - configMINIMAL_STACK_SIZE, + configIDLE_TASK_STACK_SIZE, ( void * ) NULL, portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */ &xIdleTaskHandle[i],