Skip to content

Commit 7e2de1d

Browse files
author
Moshe Shahar
committed
fix #error condition and message to include interrupts and flash config
1 parent 49a6db2 commit 7e2de1d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/device/TOOLCHAIN_ARM_STD/MK66FN2M0xxx18.sct

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454

5555
#if !defined(MBED_APP_START)
5656
#define MBED_APP_START 0
57-
#elif MBED_APP_START < 0x400
58-
#error MBED_APP_START too small and will overwrite flash config
57+
#elif MBED_APP_START > 0 && MBED_APP_START < 0x410
58+
#error MBED_APP_START too small and will overwrite interrupts and flash config
5959
#endif
6060

6161
#if !defined(MBED_APP_SIZE)

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/device/TOOLCHAIN_GCC_ARM/MK66FN2M0xxx18.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ __stack_size__ = MBED_CONF_TARGET_BOOT_STACK_SIZE;
5959

6060
#if !defined(MBED_APP_START)
6161
#define MBED_APP_START 0
62-
#elif MBED_APP_START < 0x400
63-
#error MBED_APP_START too small and will overwrite flash config
62+
#elif MBED_APP_START > 0 && MBED_APP_START < 0x410
63+
#error MBED_APP_START too small and will overwrite interrupts and flash config
6464
#endif
6565

6666
#if !defined(MBED_APP_SIZE)

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/device/TOOLCHAIN_ARM_STD/MK64FN1M0xxx12.sct

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858

5959
#if !defined(MBED_APP_START)
6060
#define MBED_APP_START 0
61-
#elif MBED_APP_START < 0x400
62-
#error MBED_APP_START too small and will overwrite flash config
61+
#elif MBED_APP_START > 0 && MBED_APP_START < 0x410
62+
#error MBED_APP_START too small and will overwrite interrupts and flash config
6363
#endif
6464

6565
#if !defined(MBED_APP_SIZE)

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/device/TOOLCHAIN_GCC_ARM/MK64FN1M0xxx12.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ __ram_vector_table__ = 1;
5555

5656
#if !defined(MBED_APP_START)
5757
#define MBED_APP_START 0
58-
#elif MBED_APP_START < 0x400
59-
#error MBED_APP_START too small and will overwrite flash config
58+
#elif MBED_APP_START > 0 && MBED_APP_START < 0x410
59+
#error MBED_APP_START too small and will overwrite interrupts and flash config
6060
#endif
6161

6262
#if !defined(MBED_APP_SIZE)

0 commit comments

Comments
 (0)