[go: nahoru, domu]

Skip to content

Commit

Permalink
Reduce configMINIMAL_STACK_SIZE on STM32
Browse files Browse the repository at this point in the history
Make it 64. Also, make the stack for the RMP task 128 words, since
64 causes stack overflows.
  • Loading branch information
fiam committed Jun 20, 2019
1 parent 4c24ee0 commit de08eb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main/target/platforms/stm32/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#define configCPU_CLOCK_HZ ((unsigned long)72000000)
#define configTICK_RATE_HZ ((TickType_t)1000)
#define configMAX_PRIORITIES (5)
#define configMINIMAL_STACK_SIZE ((unsigned short)128)
#define configMINIMAL_STACK_SIZE ((unsigned short)64)
#define configTOTAL_HEAP_SIZE ((size_t)(4 * 1024))
#define configMAX_TASK_NAME_LEN (16)
#define configUSE_TRACE_FACILITY 0
Expand Down
2 changes: 1 addition & 1 deletion main/target/platforms/stm32/f1/pre_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
#include <libopencm3/stm32/spi.h>

#define RC_TASK_STACK_SIZE 512
#define RMP_TASK_STACK_SIZE configMINIMAL_STACK_SIZE
#define RMP_TASK_STACK_SIZE 128
#define UI_TASK_STACK_SIZE configMINIMAL_STACK_SIZE

0 comments on commit de08eb9

Please sign in to comment.