From 81e676b86b43929e303d8286b55204592ed01d52 Mon Sep 17 00:00:00 2001 From: Lingkai Dong Date: Mon, 27 Apr 2020 15:13:11 +0100 Subject: [PATCH] RTOS: use default boot-stack-size for nRF as SoftDevice is no longer used Previously we overrode nRF targets to have a larger stack due to memory required by SoftDevice. Having deprecated SoftDevice in favour of Cordio for BLE (#12674), such requirement does not apply anymore. --- TESTS/mbed_hal/stack_size_unification/main.cpp | 5 +---- rtos/source/TARGET_CORTEX/mbed_lib.json | 12 ------------ 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/TESTS/mbed_hal/stack_size_unification/main.cpp b/TESTS/mbed_hal/stack_size_unification/main.cpp index 20dc82ce0e..a429d68bb4 100644 --- a/TESTS/mbed_hal/stack_size_unification/main.cpp +++ b/TESTS/mbed_hal/stack_size_unification/main.cpp @@ -31,10 +31,7 @@ extern osThreadAttr_t _main_thread_attr; #endif extern uint32_t mbed_stack_isr_size; -/* Exception for Nordic boards - BLE requires 2KB ISR stack. */ -#if defined(TARGET_NRF5x) -#define EXPECTED_ISR_STACK_SIZE (2048) -#elif !defined(MBED_CONF_RTOS_PRESENT) +#if !defined(MBED_CONF_RTOS_PRESENT) #define EXPECTED_ISR_STACK_SIZE (4096) #else #define EXPECTED_ISR_STACK_SIZE (1024) diff --git a/rtos/source/TARGET_CORTEX/mbed_lib.json b/rtos/source/TARGET_CORTEX/mbed_lib.json index 2790471a54..ed275722d8 100644 --- a/rtos/source/TARGET_CORTEX/mbed_lib.json +++ b/rtos/source/TARGET_CORTEX/mbed_lib.json @@ -76,18 +76,6 @@ "STM32F072RB": { "main-thread-stack-size": 3072 }, - "MCU_NRF51": { - "target.boot-stack-size": "0x800" - }, - "MCU_NRF52840": { - "target.boot-stack-size": "0x800" - }, - "MCU_NRF52832": { - "target.boot-stack-size": "0x800" - }, - "MCU_NRF51_UNIFIED": { - "target.boot-stack-size": "0x800" - }, "NUVOTON": { "idle-thread-stack-size-debug-extra": 512 }