diff --git a/pkg/u8g2/doc.txt b/pkg/u8g2/doc.txt index 459b9b1ce7..78da76c0fa 100644 --- a/pkg/u8g2/doc.txt +++ b/pkg/u8g2/doc.txt @@ -3,4 +3,16 @@ * @ingroup pkg * @brief Provides a monochrome graphics library for OLED and LCD displays * @see https://github.com/olikraus/u8g2 - */ \ No newline at end of file + * + * ## Requirements + * + * Using SDL requires more stack so in case you are using it add + * + * ```makefile + * CFLAGS += '-DTHREAD_STACKSIZE_MAIN= 48*1024' + * ``` + * + * to your makefile. + * 48kB is enough for the test other uses may need more or may + * need this to be applied to other threads using `THREAD_STACKSIZE_DEFAULT` + */ diff --git a/tests/pkg_u8g2/Makefile b/tests/pkg_u8g2/Makefile index 455664ad96..baa1cfca57 100644 --- a/tests/pkg_u8g2/Makefile +++ b/tests/pkg_u8g2/Makefile @@ -30,6 +30,8 @@ ifeq ($(TEST_OUTPUT),1) endif ifeq ($(TEST_OUTPUT),2) +# SDL requires more stack + CFLAGS += -DTHREAD_STACKSIZE_MAIN=48*1024 USEMODULE += u8g2_sdl endif