From 4408d7430e814364fd9f89b318a623e4ecaf9f12 Mon Sep 17 00:00:00 2001 From: Paul Bartell Date: Mon, 20 Mar 2023 11:43:37 -0700 Subject: [PATCH] Increase minimal stack size config to 2048 words Accomodates increased usage due to newlib thread local storage --- FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/FreeRTOSConfig.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/FreeRTOSConfig.h b/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/FreeRTOSConfig.h index 3da46b6fb8..441e57834c 100644 --- a/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/FreeRTOSConfig.h +++ b/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/FreeRTOSConfig.h @@ -62,7 +62,7 @@ extern void vAssertCalled( const char * pcFileName, #endif /* __NEWLIB__ */ #define configUSE_PREEMPTION 1 -#define configUSE_TIME_SLICING 1 +#define configUSE_TIME_SLICING 0 #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 #define configUSE_IDLE_HOOK 1 @@ -70,8 +70,7 @@ extern void vAssertCalled( const char * pcFileName, #define configUSE_DAEMON_TASK_STARTUP_HOOK 0 #define configCPU_CLOCK_HZ ( ( unsigned long ) 20000000 ) #define configTICK_RATE_HZ ( ( TickType_t ) 1000 ) -#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 2000 ) -#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 900 ) ) +#define configMINIMAL_STACK_SIZE ( 2048 ) #define configMAX_TASK_NAME_LEN ( 10 ) #define configUSE_TRACE_FACILITY 1 #define configUSE_16_BIT_TICKS 0 @@ -83,7 +82,6 @@ extern void vAssertCalled( const char * pcFileName, #define configUSE_COUNTING_SEMAPHORES 1 #define configSUPPORT_DYNAMIC_ALLOCATION 1 #define configSUPPORT_STATIC_ALLOCATION 1 -#define configNUM_TX_DESCRIPTORS 15 #define configSTREAM_BUFFER_TRIGGER_LEVEL_TEST_MARGIN 2 #define configQUEUE_REGISTRY_SIZE 20 #define configUSE_QUEUE_SETS 1