From e0b40a042f35e5f887796c1fb54fd935d8bcc82b Mon Sep 17 00:00:00 2001 From: Chun-Chieh Li Date: Tue, 18 Jun 2019 11:20:11 +0800 Subject: [PATCH] Fix idle thread stack underflow in debug build In rtos/mbed_lib.json: Enlarge idle-thread-stack-size-debug-extra for all Nuvoton targets. In rtos/TARGET_CORTEX/mbed_rtx_conf.h: MBED_DEBUG also must be defined for this configuration parameter to take effect. --- rtos/mbed_lib.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rtos/mbed_lib.json b/rtos/mbed_lib.json index 996127de81..a062ce3cb6 100644 --- a/rtos/mbed_lib.json +++ b/rtos/mbed_lib.json @@ -49,6 +49,9 @@ }, "MCU_NRF51_UNIFIED": { "target.boot-stack-size": "0x800" - } + }, + "NUVOTON": { + "idle-thread-stack-size-debug-extra": 512 + } } }