From db71529ef4eb95cc72afbe376a70965539db7041 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Wed, 9 Aug 2023 07:39:52 +0200 Subject: [PATCH] tests/pkg/lvgl_touch: increase main thread stack size for ESPs ESPx SoC need more stack size for the main thread to avoid stack overflows. --- tests/pkg/lvgl_touch/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/pkg/lvgl_touch/Makefile b/tests/pkg/lvgl_touch/Makefile index 30a62476c3..a78a0479df 100644 --- a/tests/pkg/lvgl_touch/Makefile +++ b/tests/pkg/lvgl_touch/Makefile @@ -17,11 +17,13 @@ USEMODULE += lvgl_extra_theme_default USEMODULE += random +include $(RIOTBASE)/Makefile.include + # SDL requires more stack ifeq (native,$(BOARD)) CFLAGS += -DTHREAD_STACKSIZE_MAIN=64*1024 +else ifneq (,$(filter esp%,$(CPU_FAM))) + CFLAGS += -DTHREAD_STACKSIZE_MAIN=4*1024 else CFLAGS += -DTHREAD_STACKSIZE_MAIN=2*1024 endif - -include $(RIOTBASE)/Makefile.include