From f2e9924b6a79cb597afcd917c3be9ae4b0acb088 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Tue, 4 Aug 2026 21:37:03 +0200 Subject: [PATCH] testing/ostest: set STACKSIZE for the standalone ELF build The CMake build passed no STACKSIZE, so kernel-mode ELF loading fell back to CONFIG_ELF_STACKSIZE, which may exceed the initial user heap. Use CONFIG_DEFAULT_TASK_STACKSIZE as the Makefile does. Signed-off-by: raiden00pl Assisted-by: Claude Code --- testing/ostest/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/ostest/CMakeLists.txt b/testing/ostest/CMakeLists.txt index 180d7090a..a76b2447c 100644 --- a/testing/ostest/CMakeLists.txt +++ b/testing/ostest/CMakeLists.txt @@ -176,6 +176,7 @@ if(CONFIG_TESTING_OSTEST) endif() set(OSTEST_SRCS ostest_main.c ${SRCS}) - nuttx_add_application(NAME ostest SRCS ${OSTEST_SRCS}) + nuttx_add_application(NAME ostest SRCS ${OSTEST_SRCS} STACKSIZE + ${CONFIG_DEFAULT_TASK_STACKSIZE}) endif()