From 2a87213ff4d6ee4a9e46a5e42afb400da43aac07 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Wed, 9 Aug 2023 07:39:19 +0200 Subject: [PATCH] tests/pkg/lvgl: increase main thread stack size for ESPs ESPx SoC need more stack size for the main thread to avoid stack overflows. --- tests/pkg/lvgl/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/pkg/lvgl/Makefile b/tests/pkg/lvgl/Makefile index d8f220b604..2d72ece6e4 100644 --- a/tests/pkg/lvgl/Makefile +++ b/tests/pkg/lvgl/Makefile @@ -12,12 +12,13 @@ USEMODULE += lvgl_extra_layout_flex USEMODULE += lvgl_extra_theme_default USEMODULE += lvgl_extra_theme_default_dark +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