From 8a2f04aa4bdfabfea7c2accfcd300a34091c8247 Mon Sep 17 00:00:00 2001 From: Erling Rennemo Jellum Date: Mon, 30 Oct 2023 10:46:18 +0100 Subject: [PATCH 1/2] Zephyr: Update default thread stack size to 4KB --- include/core/platform/lf_zephyr_board_support.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/core/platform/lf_zephyr_board_support.h b/include/core/platform/lf_zephyr_board_support.h index 7f2d029ae..c4d38e6a4 100644 --- a/include/core/platform/lf_zephyr_board_support.h +++ b/include/core/platform/lf_zephyr_board_support.h @@ -33,7 +33,7 @@ THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // Default options #define LF_ZEPHYR_THREAD_PRIORITY_DEFAULT 5 -#define LF_ZEPHYR_STACK_SIZE_DEFAULT 1024 +#define LF_ZEPHYR_STACK_SIZE_DEFAULT 4196 // Unless the user explicitly asks for the kernel clock, then we use a counter // clock because it is more precise. From 8d983ce8a077ac2b92dc63eddec9b4ebcf0ae17f Mon Sep 17 00:00:00 2001 From: Erling Rennemo Jellum Date: Mon, 30 Oct 2023 13:24:09 +0100 Subject: [PATCH 2/2] Do 2KB since one of the tests uses 16 workers and qemu_cortex_m3 is small --- include/core/platform/lf_zephyr_board_support.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/core/platform/lf_zephyr_board_support.h b/include/core/platform/lf_zephyr_board_support.h index c4d38e6a4..d5dd16c64 100644 --- a/include/core/platform/lf_zephyr_board_support.h +++ b/include/core/platform/lf_zephyr_board_support.h @@ -33,7 +33,7 @@ THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // Default options #define LF_ZEPHYR_THREAD_PRIORITY_DEFAULT 5 -#define LF_ZEPHYR_STACK_SIZE_DEFAULT 4196 +#define LF_ZEPHYR_STACK_SIZE_DEFAULT 2048 // Unless the user explicitly asks for the kernel clock, then we use a counter // clock because it is more precise.