Skip to content

Commit 81e676b

Browse files
committed
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.
1 parent 28ef753 commit 81e676b

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

TESTS/mbed_hal/stack_size_unification/main.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ extern osThreadAttr_t _main_thread_attr;
3131
#endif
3232
extern uint32_t mbed_stack_isr_size;
3333

34-
/* Exception for Nordic boards - BLE requires 2KB ISR stack. */
35-
#if defined(TARGET_NRF5x)
36-
#define EXPECTED_ISR_STACK_SIZE (2048)
37-
#elif !defined(MBED_CONF_RTOS_PRESENT)
34+
#if !defined(MBED_CONF_RTOS_PRESENT)
3835
#define EXPECTED_ISR_STACK_SIZE (4096)
3936
#else
4037
#define EXPECTED_ISR_STACK_SIZE (1024)

rtos/source/TARGET_CORTEX/mbed_lib.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,6 @@
7676
"STM32F072RB": {
7777
"main-thread-stack-size": 3072
7878
},
79-
"MCU_NRF51": {
80-
"target.boot-stack-size": "0x800"
81-
},
82-
"MCU_NRF52840": {
83-
"target.boot-stack-size": "0x800"
84-
},
85-
"MCU_NRF52832": {
86-
"target.boot-stack-size": "0x800"
87-
},
88-
"MCU_NRF51_UNIFIED": {
89-
"target.boot-stack-size": "0x800"
90-
},
9179
"NUVOTON": {
9280
"idle-thread-stack-size-debug-extra": 512
9381
}

0 commit comments

Comments
 (0)