Skip to content

Commit 3672e96

Browse files
committed
RTOS: use default boot-stack-size for NRF52* 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 3672e96

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,6 @@
7979
"MCU_NRF51": {
8080
"target.boot-stack-size": "0x800"
8181
},
82-
"MCU_NRF52840": {
83-
"target.boot-stack-size": "0x800"
84-
},
85-
"MCU_NRF52832": {
86-
"target.boot-stack-size": "0x800"
87-
},
8882
"MCU_NRF51_UNIFIED": {
8983
"target.boot-stack-size": "0x800"
9084
},

0 commit comments

Comments
 (0)