Skip to content

Commit dbafdcd

Browse files
hugueskambaPatater
authored andcommitted
NRF52: Fix failure if boot stack size is not provided
The same default value is provided in the GCC_ARM linker file.
1 parent c9427d4 commit dbafdcd

File tree

2 files changed

+8
-0
lines changed
  • targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52

2 files changed

+8
-0
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/TOOLCHAIN_ARM_STD/nRF52832.sct

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
#define MBED_RAM_SIZE 0x10000
1515
#endif
1616

17+
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
18+
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800
19+
#endif
20+
1721
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE
1822

1923
#define MBED_RAM0_START MBED_RAM_START

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/TOOLCHAIN_ARM_STD/nRF52840.sct

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
#define MBED_RAM_SIZE 0x40000
1515
#endif
1616

17+
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
18+
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800
19+
#endif
20+
1721
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE
1822

1923
#define MBED_RAM0_START MBED_RAM_START

0 commit comments

Comments
 (0)