From a25ad635821ca44b9ac218f82904583c19be14b3 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 30 Mar 2020 22:10:05 +0900 Subject: [PATCH] esp32: Bump idle stack size This fixes crashes in ostest with the smp config. The value was taken from ostest config. Note that this board doesn't implement interrupt stack. --- boards/xtensa/esp32/esp32-core/configs/nsh/defconfig | 1 + boards/xtensa/esp32/esp32-core/configs/smp/defconfig | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/boards/xtensa/esp32/esp32-core/configs/nsh/defconfig b/boards/xtensa/esp32/esp32-core/configs/nsh/defconfig index 02b0bee78f..5548ddec1c 100644 --- a/boards/xtensa/esp32/esp32-core/configs/nsh/defconfig +++ b/boards/xtensa/esp32/esp32-core/configs/nsh/defconfig @@ -23,6 +23,7 @@ CONFIG_EXPERIMENTAL=y CONFIG_FS_PROCFS=y CONFIG_HAVE_CXX=y CONFIG_HAVE_CXXINITIALIZE=y +CONFIG_IDLETHREAD_STACKSIZE=3072 CONFIG_INTELHEX_BINARY=y CONFIG_MAX_TASKS=16 CONFIG_MAX_WDOGPARMS=2 diff --git a/boards/xtensa/esp32/esp32-core/configs/smp/defconfig b/boards/xtensa/esp32/esp32-core/configs/smp/defconfig index 1b1d1e03af..2c45e04560 100644 --- a/boards/xtensa/esp32/esp32-core/configs/smp/defconfig +++ b/boards/xtensa/esp32/esp32-core/configs/smp/defconfig @@ -26,6 +26,7 @@ CONFIG_EXPERIMENTAL=y CONFIG_FS_PROCFS=y CONFIG_HAVE_CXX=y CONFIG_HAVE_CXXINITIALIZE=y +CONFIG_IDLETHREAD_STACKSIZE=3072 CONFIG_INTELHEX_BINARY=y CONFIG_MAX_TASKS=16 CONFIG_MAX_WDOGPARMS=2 @@ -34,7 +35,6 @@ CONFIG_NFILE_DESCRIPTORS=8 CONFIG_NFILE_STREAMS=8 CONFIG_NSH_ARCHINIT=y CONFIG_NSH_BUILTIN_APPS=y -CONFIG_NSH_READLINE=y CONFIG_NSH_FILEIOSIZE=512 CONFIG_NSH_LINELEN=64 CONFIG_NSH_READLINE=y @@ -43,14 +43,15 @@ CONFIG_PREALLOC_TIMERS=4 CONFIG_PREALLOC_WDOGS=16 CONFIG_RAM_SIZE=114688 CONFIG_RAM_START=0x20000000 -CONFIG_READLINE_CMD_HISTORY=y CONFIG_RAW_BINARY=y +CONFIG_READLINE_CMD_HISTORY=y CONFIG_RR_INTERVAL=200 CONFIG_SCHED_INSTRUMENTATION=y CONFIG_SCHED_INSTRUMENTATION_BUFFER=y CONFIG_SCHED_WAITPID=y CONFIG_SDCLONE_DISABLE=y CONFIG_SMP=y +CONFIG_SMP_IDLETHREAD_STACKSIZE=3072 CONFIG_SMP_NCPUS=2 CONFIG_SPI=y CONFIG_SPINLOCK_IRQ=y