From f555b3de91be2027dcf76186140f30ef062c8366 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Wed, 17 Jul 2024 10:21:18 +0800 Subject: [PATCH] boards/esp32s3: Increse the default stack size for usbnsh Fix https://github.com/apache/nuttx/issues/12712 If run nsh over usb based serial port, the default stack size is too small, for example simple `ps` command will use more than 2208 bytes stack. Then the stack overflow will happen and the system will hang here. Signed-off-by: Huang Qi --- .../xtensa/esp32s3/esp32s3-devkit/configs/usb_device/defconfig | 1 + boards/xtensa/esp32s3/esp32s3-devkit/configs/usbnsh/defconfig | 1 + boards/xtensa/esp32s3/esp32s3-eye/configs/usbnsh/defconfig | 1 + boards/xtensa/esp32s3/esp32s3-meadow/configs/usbnsh/defconfig | 1 + 4 files changed, 4 insertions(+) diff --git a/boards/xtensa/esp32s3/esp32s3-devkit/configs/usb_device/defconfig b/boards/xtensa/esp32s3/esp32s3-devkit/configs/usb_device/defconfig index 62fdba78c6..0e89e2b079 100644 --- a/boards/xtensa/esp32s3/esp32s3-devkit/configs/usb_device/defconfig +++ b/boards/xtensa/esp32s3/esp32s3-devkit/configs/usb_device/defconfig @@ -31,6 +31,7 @@ CONFIG_HAVE_CXX=y CONFIG_HAVE_CXXINITIALIZE=y CONFIG_IDLETHREAD_STACKSIZE=3072 CONFIG_INIT_ENTRYPOINT="nsh_main" +CONFIG_INIT_STACKSIZE=4096 CONFIG_INTELHEX_BINARY=y CONFIG_NSH_ARCHINIT=y CONFIG_NSH_BUILTIN_APPS=y diff --git a/boards/xtensa/esp32s3/esp32s3-devkit/configs/usbnsh/defconfig b/boards/xtensa/esp32s3/esp32s3-devkit/configs/usbnsh/defconfig index e0f7150ab3..99250ea074 100644 --- a/boards/xtensa/esp32s3/esp32s3-devkit/configs/usbnsh/defconfig +++ b/boards/xtensa/esp32s3/esp32s3-devkit/configs/usbnsh/defconfig @@ -32,6 +32,7 @@ CONFIG_HAVE_CXX=y CONFIG_HAVE_CXXINITIALIZE=y CONFIG_IDLETHREAD_STACKSIZE=3072 CONFIG_INIT_ENTRYPOINT="nsh_main" +CONFIG_INIT_STACKSIZE=4096 CONFIG_INTELHEX_BINARY=y CONFIG_NSH_ARCHINIT=y CONFIG_NSH_BUILTIN_APPS=y diff --git a/boards/xtensa/esp32s3/esp32s3-eye/configs/usbnsh/defconfig b/boards/xtensa/esp32s3/esp32s3-eye/configs/usbnsh/defconfig index d59686321e..b585d0c43f 100644 --- a/boards/xtensa/esp32s3/esp32s3-eye/configs/usbnsh/defconfig +++ b/boards/xtensa/esp32s3/esp32s3-eye/configs/usbnsh/defconfig @@ -32,6 +32,7 @@ CONFIG_ESP32S3_UART0=y CONFIG_FS_PROCFS=y CONFIG_IDLETHREAD_STACKSIZE=3072 CONFIG_INIT_ENTRYPOINT="nsh_main" +CONFIG_INIT_STACKSIZE=4096 CONFIG_INTELHEX_BINARY=y CONFIG_NSH_ARCHINIT=y CONFIG_NSH_BUILTIN_APPS=y diff --git a/boards/xtensa/esp32s3/esp32s3-meadow/configs/usbnsh/defconfig b/boards/xtensa/esp32s3/esp32s3-meadow/configs/usbnsh/defconfig index 17c2f62a72..ccae9b0567 100644 --- a/boards/xtensa/esp32s3/esp32s3-meadow/configs/usbnsh/defconfig +++ b/boards/xtensa/esp32s3/esp32s3-meadow/configs/usbnsh/defconfig @@ -32,6 +32,7 @@ CONFIG_ESP32S3_UART0=y CONFIG_FS_PROCFS=y CONFIG_IDLETHREAD_STACKSIZE=3072 CONFIG_INIT_ENTRYPOINT="nsh_main" +CONFIG_INIT_STACKSIZE=4096 CONFIG_INTELHEX_BINARY=y CONFIG_NSH_ARCHINIT=y CONFIG_NSH_BUILTIN_APPS=y