summaryrefslogtreecommitdiff
path: root/src/FreeRTOSConfig.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-07-02 19:38:52 (GMT)
committerJF <jf@codingfield.com>2020-07-02 19:38:52 (GMT)
commita83f067af9af82f034596f6f6154f4dccf598ace (patch)
treeb19b858f1b82a5eefe8f906f2d7cce253627ea77 /src/FreeRTOSConfig.h
parent89e7033830bd73a35f4bb2faf14ccf06f3785712 (diff)
Reduce RAM memory usage by tuning the stack of the stasks and the heap allocated for FreeRTOS.
Add Monitor to log the stack usage of each task.
Diffstat (limited to 'src/FreeRTOSConfig.h')
-rw-r--r--src/FreeRTOSConfig.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FreeRTOSConfig.h b/src/FreeRTOSConfig.h
index 93289e1..a18a292 100644
--- a/src/FreeRTOSConfig.h
+++ b/src/FreeRTOSConfig.h
@@ -63,7 +63,7 @@
#define configTICK_RATE_HZ 1024
#define configMAX_PRIORITIES ( 3 )
#define configMINIMAL_STACK_SIZE ( 120 )
-#define configTOTAL_HEAP_SIZE ( 1024*20 )
+#define configTOTAL_HEAP_SIZE ( 1024*11 )
#define configMAX_TASK_NAME_LEN ( 4 )
#define configUSE_16_BIT_TICKS 0
#define configIDLE_SHOULD_YIELD 1
@@ -85,7 +85,7 @@
/* Run time and task stats gathering related definitions. */
#define configGENERATE_RUN_TIME_STATS 0
-#define configUSE_TRACE_FACILITY 0
+#define configUSE_TRACE_FACILITY 1
#define configUSE_STATS_FORMATTING_FUNCTIONS 0
/* Co-routine definitions. */
@@ -96,7 +96,7 @@
#define configUSE_TIMERS 1
#define configTIMER_TASK_PRIORITY ( 0 )
#define configTIMER_QUEUE_LENGTH 32
-#define configTIMER_TASK_STACK_DEPTH ( 240 )
+#define configTIMER_TASK_STACK_DEPTH ( 200 )
/* Tickless Idle configuration. */
#define configEXPECTED_IDLE_TIME_BEFORE_SLEEP 2