Skip to content

Commit 5f7f71e

Browse files
committed
MXRT1050_EVK: Fixes test failure seen with IAR and ARM toolchains
Fixes test failure seen with tests-mbed_hal-stack_size_unification under IAR and ARM toolchain Signed-off-by: Mahesh Mahadevan <[email protected]>
1 parent 71c84e8 commit 5f7f71e

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/device/TOOLCHAIN_ARM_STD/MIMXRT1052xxxxx.sct

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@
5656

5757
#define __ram_vector_table__ 1
5858

59-
#define __stack_size__ 0x8000
60-
#define __heap_size__ 0x10000
61-
6259
#if (defined(__ram_vector_table__))
6360
#define __ram_vector_table_size__ 0x00000400
6461
#else

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/device/TOOLCHAIN_IAR/MIMXRT1052xxxxx.icf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@
5555

5656
define symbol __ram_vector_table__ = 1;
5757

58-
define symbol __stack_size__=0x8000;
58+
/* Sizes */
59+
if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
60+
define symbol MBED_BOOT_STACK_SIZE = 0x400;
61+
}
62+
63+
define symbol __stack_size__=MBED_BOOT_STACK_SIZE;
5964
define symbol __heap_size__=0x10000;
6065

6166
define symbol __ram_vector_table_size__ = isdefinedsymbol(__ram_vector_table__) ? 0x00000400 : 0;
@@ -90,15 +95,10 @@ define symbol m_boot_hdr_ivt_start = 0x60001000;
9095
define symbol m_boot_hdr_boot_data_start = 0x60001020;
9196
define symbol m_boot_hdr_dcd_data_start = 0x60001030;
9297

93-
/* Sizes */
94-
if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
95-
define symbol MBED_BOOT_STACK_SIZE = 0x400;
96-
}
97-
9898
if (isdefinedsymbol(__stack_size__)) {
9999
define symbol __size_cstack__ = __stack_size__;
100100
} else {
101-
define symbol __size_cstack__ = MBED_BOOT_STACK_SIZE;
101+
define symbol __size_cstack__ = 0x0400;
102102
}
103103

104104
if (isdefinedsymbol(__heap_size__)) {

0 commit comments

Comments
 (0)