Skip to content

Commit 612b148

Browse files
committed
stack: armc: Workaround config passing bug
Workaround a bug where the boot stack size configuration option is not passed on to armlink, the Arm Compiler's linker. Prefer MBED_CONF_TARGET_BOOT_STACK_SIZE if present, as this is what the configuration system should provide. Fall back to MBED_BOOT_STACK_SIZE if MBED_CONF_TARGET_BOOT_STACK_SIZE is not defined, as in the case of buggy tools. If both MBED_CONF_TARGET_BOOT_STACK_SIZE and MBED_BOOT_STACK_SIZE are not defined, then we fall back to a hard-coded value provided by the linkerscript. See ARMmbed#13474 for more information.
1 parent 2ed7403 commit 612b148

File tree

154 files changed

+827
-211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+827
-211
lines changed

targets/TARGET_ARM_FM/TARGET_FVP_MPS2/TARGET_FVP_MPS2_M0/device/TOOLCHAIN_ARM_STD/MPS2.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@
3939
#include "../cmsis_nvic.h"
4040

4141
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
42-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
42+
# if defined(MBED_BOOT_STACK_SIZE)
43+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
44+
# else
45+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
46+
# endif
4347
#endif
4448

4549
#if (defined(__stack_size__))

targets/TARGET_ARM_FM/TARGET_FVP_MPS2/TARGET_FVP_MPS2_M0P/device/TOOLCHAIN_ARM_STD/MPS2.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@
3939
#include "../cmsis_nvic.h"
4040

4141
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
42-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
42+
# if defined(MBED_BOOT_STACK_SIZE)
43+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
44+
# else
45+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
46+
# endif
4347
#endif
4448

4549
#if (defined(__stack_size__))

targets/TARGET_ARM_FM/TARGET_FVP_MPS2/TARGET_FVP_MPS2_M3/device/TOOLCHAIN_ARM_STD/MPS2.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@
3939
#include "../cmsis_nvic.h"
4040

4141
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
42-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
42+
# if defined(MBED_BOOT_STACK_SIZE)
43+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
44+
# else
45+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
46+
# endif
4347
#endif
4448

4549
#if (defined(__stack_size__))

targets/TARGET_ARM_FM/TARGET_FVP_MPS2/TARGET_FVP_MPS2_M4/device/TOOLCHAIN_ARM_STD/MPS2.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@
3939
#include "../cmsis_nvic.h"
4040

4141
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
42-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
42+
# if defined(MBED_BOOT_STACK_SIZE)
43+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
44+
# else
45+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
46+
# endif
4347
#endif
4448

4549
#if (defined(__stack_size__))

targets/TARGET_ARM_FM/TARGET_FVP_MPS2/TARGET_FVP_MPS2_M7/device/TOOLCHAIN_ARM_STD/MPS2.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@
3939
#include "../cmsis_nvic.h"
4040

4141
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
42-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
42+
# if defined(MBED_BOOT_STACK_SIZE)
43+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
44+
# else
45+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
46+
# endif
4347
#endif
4448

4549
#if (defined(__stack_size__))

targets/TARGET_ARM_SSG/TARGET_CM3DS_MPS2/device/TOOLCHAIN_ARM_STD/MPS2.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030
#include "../cmsis_nvic.h"
3131

3232
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
33-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
33+
# if defined(MBED_BOOT_STACK_SIZE)
34+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
35+
# else
36+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
37+
# endif
3438
#endif
3539

3640
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_ARM_SSG/TARGET_MPS2/TARGET_MPS2_M0/device/TOOLCHAIN_ARM_STD/MPS2.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@
3535
; *************************************************************
3636

3737
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
38-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
38+
# if defined(MBED_BOOT_STACK_SIZE)
39+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
40+
# else
41+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
42+
# endif
3943
#endif
4044

4145
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_ARM_SSG/TARGET_MPS2/TARGET_MPS2_M0P/device/TOOLCHAIN_ARM_STD/MPS2.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@
3535
; *************************************************************
3636

3737
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
38-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
38+
# if defined(MBED_BOOT_STACK_SIZE)
39+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
40+
# else
41+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
42+
# endif
3943
#endif
4044

4145
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_ARM_SSG/TARGET_MPS2/TARGET_MPS2_M3/device/TOOLCHAIN_ARM_STD/MPS2.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@
3535
; *************************************************************
3636

3737
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
38-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
38+
# if defined(MBED_BOOT_STACK_SIZE)
39+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
40+
# else
41+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
42+
# endif
3943
#endif
4044

4145
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_ARM_SSG/TARGET_MPS2/TARGET_MPS2_M4/device/TOOLCHAIN_ARM_STD/MPS2.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
; *************************************************************
3737

3838
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
39-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
39+
# if defined(MBED_BOOT_STACK_SIZE)
40+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
41+
# else
42+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
43+
# endif
4044
#endif
4145

4246
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_ARM_SSG/TARGET_MPS2/TARGET_MPS2_M7/device/TOOLCHAIN_ARM_STD/MPS2.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
; *************************************************************
3737

3838
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
39-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
39+
# if defined(MBED_BOOT_STACK_SIZE)
40+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
41+
# else
42+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
43+
# endif
4044
#endif
4145

4246
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_ARM_SSG/TARGET_MUSCA_B1/device/TOOLCHAIN_ARMC6/musca_ns.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@
4040
#define VECTOR_SIZE NVIC_RAM_VECTOR_SIZE
4141

4242
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
43-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
43+
# if defined(MBED_BOOT_STACK_SIZE)
44+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
45+
# else
46+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
47+
# endif
4448
#endif
4549

4650
#define RAM_FIXED_SIZE (MBED_CONF_TARGET_BOOT_STACK_SIZE+VECTOR_SIZE)

targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/TOOLCHAIN_ARM_STD/ADuCM3029.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@
4646
#define ADUCM_VECTOR_SIZE 0x1A0
4747

4848
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
49-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
49+
# if defined(MBED_BOOT_STACK_SIZE)
50+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
51+
# else
52+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
53+
# endif
5054
#endif
5155

5256
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/TOOLCHAIN_ARM_STD/ADuCM4050.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@
4343
#define ADUCM_VECTOR_SIZE 0x1A0
4444

4545
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
46-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
46+
# if defined(MBED_BOOT_STACK_SIZE)
47+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
48+
# else
49+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
50+
# endif
4751
#endif
4852

4953
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT064B0S2_4343W/device/COMPONENT_CM0P/TOOLCHAIN_ARM/cyb06xxa_cm0plus.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@
8080

8181
; The size of the stack section at the end of CM0+ SRAM
8282
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
83-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
83+
# if defined(MBED_BOOT_STACK_SIZE)
84+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
85+
# else
86+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
87+
# endif
8488
#endif
8589

8690
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT064B0S2_4343W/device/COMPONENT_CM4/TOOLCHAIN_ARM/cyb06xxa_cm4_dual.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@
8585
#endif
8686

8787
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
88-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
88+
# if defined(MBED_BOOT_STACK_SIZE)
89+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
90+
# else
91+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
92+
# endif
8993
#endif
9094

9195
; The size of the stack section at the end of CM4 SRAM

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062S2_43012/device/COMPONENT_CM0P/TOOLCHAIN_ARM/cy8c6xxa_cm0plus.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@
8080

8181
; The size of the stack section at the end of CM0+ SRAM
8282
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
83-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
83+
# if defined(MBED_BOOT_STACK_SIZE)
84+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
85+
# else
86+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
87+
# endif
8488
#endif
8589

8690
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062S2_43012/device/COMPONENT_CM4/TOOLCHAIN_ARM/cy8c6xxa_cm4_dual.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@
8282
#endif
8383

8484
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
85-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
85+
# if defined(MBED_BOOT_STACK_SIZE)
86+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
87+
# else
88+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
89+
# endif
8690
#endif
8791

8892
; The size of the stack section at the end of CM4 SRAM

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_BLE/device/COMPONENT_CM0P/TOOLCHAIN_ARM/cy8c6xx7_cm0plus.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@
8080

8181
; The size of the stack section at the end of CM0+ SRAM
8282
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
83-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
83+
# if defined(MBED_BOOT_STACK_SIZE)
84+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
85+
# else
86+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
87+
# endif
8488
#endif
8589

8690
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_BLE/device/COMPONENT_CM4/TOOLCHAIN_ARM/cy8c6xx7_cm4_dual.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@
8282
#endif
8383

8484
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
85-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
85+
# if defined(MBED_BOOT_STACK_SIZE)
86+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
87+
# else
88+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
89+
# endif
8690
#endif
8791

8892
; The size of the stack section at the end of CM4 SRAM

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_WIFI_BT/device/COMPONENT_CM0P/TOOLCHAIN_ARM/cy8c6xx7_cm0plus.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@
8080

8181
; The size of the stack section at the end of CM0+ SRAM
8282
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
83-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
83+
# if defined(MBED_BOOT_STACK_SIZE)
84+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
85+
# else
86+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
87+
# endif
8488
#endif
8589

8690
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_WIFI_BT/device/COMPONENT_CM4/TOOLCHAIN_ARM/cy8c6xx7_cm4_dual.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@
8282
#endif
8383

8484
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
85-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
85+
# if defined(MBED_BOOT_STACK_SIZE)
86+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
87+
# else
88+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
89+
# endif
8690
#endif
8791

8892
; The size of the stack section at the end of CM4 SRAM

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CPROTO_062S3_4343W/device/COMPONENT_CM0P/TOOLCHAIN_ARM/cy8c6xx5_cm0plus.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@
8080

8181
; The size of the stack section at the end of CM0+ SRAM
8282
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
83-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
83+
# if defined(MBED_BOOT_STACK_SIZE)
84+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
85+
# else
86+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
87+
# endif
8488
#endif
8589

8690
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CPROTO_062S3_4343W/device/COMPONENT_CM4/TOOLCHAIN_ARM/cy8c6xx5_cm4_dual.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@
8282
#endif
8383

8484
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
85-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
85+
# if defined(MBED_BOOT_STACK_SIZE)
86+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
87+
# else
88+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
89+
# endif
8690
#endif
8791

8892
; The size of the stack section at the end of CM4 SRAM

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CPROTO_062_4343W/device/COMPONENT_CM0P/TOOLCHAIN_ARM/cy8c6xxa_cm0plus.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@
8080

8181
; The size of the stack section at the end of CM0+ SRAM
8282
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
83-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
83+
# if defined(MBED_BOOT_STACK_SIZE)
84+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
85+
# else
86+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
87+
# endif
8488
#endif
8589

8690
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CPROTO_062_4343W/device/COMPONENT_CM4/TOOLCHAIN_ARM/cy8c6xxa_cm4_dual.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@
8282
#endif
8383

8484
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
85-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
85+
# if defined(MBED_BOOT_STACK_SIZE)
86+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
87+
# else
88+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
89+
# endif
8690
#endif
8791

8892
; The size of the stack section at the end of CM4 SRAM

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYTFM_064B0S2_4343W/device/COMPONENT_CM4/TOOLCHAIN_ARM/cyb06xxa_cm4_dual.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@
8585
#endif
8686

8787
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
88-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE NS_MSP_STACK_SIZE
88+
# if defined(MBED_BOOT_STACK_SIZE)
89+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
90+
# else
91+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE NS_MSP_STACK_SIZE
92+
# endif
8993
#endif
9094

9195
; Shared memory area between Non-secure and Secure

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYW9P62S1_43012EVB_01/device/COMPONENT_CM0P/TOOLCHAIN_ARM/cy8c6xx7_cm0plus.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@
8080

8181
; The size of the stack section at the end of CM0+ SRAM
8282
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
83-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
83+
# if defined(MBED_BOOT_STACK_SIZE)
84+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
85+
# else
86+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
87+
# endif
8488
#endif
8589

8690
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYW9P62S1_43012EVB_01/device/COMPONENT_CM4/TOOLCHAIN_ARM/cy8c6xx7_cm4_dual.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@
8282
#endif
8383

8484
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
85-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
85+
# if defined(MBED_BOOT_STACK_SIZE)
86+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
87+
# else
88+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
89+
# endif
8690
#endif
8791

8892
; The size of the stack section at the end of CM4 SRAM

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYW9P62S1_43438EVB_01/device/COMPONENT_CM0P/TOOLCHAIN_ARM/cy8c6xx7_cm0plus.sct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@
8080

8181
; The size of the stack section at the end of CM0+ SRAM
8282
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
83-
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
83+
# if defined(MBED_BOOT_STACK_SIZE)
84+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
85+
# else
86+
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
87+
# endif
8488
#endif
8589

8690
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

0 commit comments

Comments
 (0)