From 381382b61a8c7becc92bf6598d8246f4efd8178b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Tue, 28 May 2019 15:27:08 +0200 Subject: [PATCH] tests/rng: take into account stack buffers and printf Take into account stack buffers and printf for allocating the default stack size. This solves stack size issues with `wsn430-v1_3b` and `z1`. It now have a main stack usage of 514 bytes out of 768 on `wsn430-v1_3b`. --- tests/rng/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/rng/Makefile b/tests/rng/Makefile index 7da2cd825f..c772140bd6 100644 --- a/tests/rng/Makefile +++ b/tests/rng/Makefile @@ -5,6 +5,10 @@ BOARD_BLACKLIST += nucleo-f031k6 nucleo-f042k6 nucleo-l031k6 pic32-clicker BOARD_INSUFFICIENT_MEMORY += arduino-duemilanove arduino-leonardo arduino-nano \ arduino-uno +# Default stack with printf + the tests buffer uint32_t[32]/uint8_t[256] +MAIN_THREAD_SIZE = THREAD_STACKSIZE_DEFAULT+THREAD_EXTRA_STACKSIZE_PRINTF+256 +CFLAGS += -DTHREAD_STACKSIZE_MAIN=\($(MAIN_THREAD_SIZE)\) + # override PRNG if desired (see sys/random for alternatives) # USEMODULE += prng_minstd