Skip to content

Commit ca39f95

Browse files
author
Moshe Shahar
committed
fix incorrect condition
1 parent 157788e commit ca39f95

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-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
@@ -65,7 +65,7 @@
6565
#define m_interrupts_start MBED_APP_START
6666
#define m_interrupts_size 0x00000400
6767

68-
#if MBED_APP_SIZE == 0
68+
#if MBED_APP_START == 0
6969

7070
#define m_flash_config_start MBED_APP_START + 0x400
7171
#define m_flash_config_size 0x00000010
@@ -111,7 +111,7 @@ LR_IROM1 m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; lo
111111
VECTOR_ROM m_interrupts_start m_interrupts_size { ; load address = execution address
112112
* (RESET,+FIRST)
113113
}
114-
#if MBED_APP_SIZE == 0
114+
#if MBED_APP_START == 0
115115
ER_m_flash_config m_flash_config_start FIXED m_flash_config_size { ; load address = execution address
116116
* (FlashConfig)
117117
}

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
@@ -74,7 +74,7 @@ M_CRASH_DATA_RAM_SIZE = 0x100;
7474
/* Specify the memory areas */
7575
MEMORY
7676
{
77-
#if MBED_APP_SIZE == 0
77+
#if MBED_APP_START == 0
7878
m_interrupts (RX) : ORIGIN = MBED_APP_START, LENGTH = 0x400
7979
m_flash_config (RX) : ORIGIN = MBED_APP_START + 0x400, LENGTH = 0x10
8080
m_text (RX) : ORIGIN = MBED_APP_START + 0x410, LENGTH = MBED_APP_SIZE - 0x410
@@ -95,7 +95,7 @@ SECTIONS
9595
. = ALIGN(8);
9696
KEEP(*(.isr_vector)) /* Startup code */
9797
. = ALIGN(8);
98-
#if MBED_APP_SIZE == 0
98+
#if MBED_APP_START == 0
9999
} > m_interrupts
100100

101101
.flash_config :

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
#endif
5858

5959
#if !defined(MBED_APP_START)
60+
6061
#define MBED_APP_START 0
6162
#elif MBED_APP_START > 0 && MBED_APP_START < 0x410
6263
#error MBED_APP_START too small and will overwrite interrupts and flash config
@@ -77,7 +78,7 @@
7778
#define m_interrupts_start MBED_APP_START
7879
#define m_interrupts_size 0x00000400
7980

80-
#if MBED_APP_SIZE == 0
81+
#if MBED_APP_START == 0
8182

8283
#define m_flash_config_start MBED_APP_START + 0x400
8384
#define m_flash_config_size 0x00000010
@@ -115,7 +116,7 @@ LR_IROM1 m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; load
115116
VECTOR_ROM m_interrupts_start m_interrupts_size { ; load address = execution address
116117
* (RESET,+FIRST)
117118
}
118-
#if MBED_APP_SIZE == 0
119+
#if MBED_APP_START == 0
119120
ER_m_flash_config m_flash_config_start FIXED m_flash_config_size { ; load address = execution address
120121
* (FlashConfig)
121122
}

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
@@ -76,7 +76,7 @@ M_CRASH_DATA_RAM_SIZE = 0x100;
7676
/* Specify the memory areas */
7777
MEMORY
7878
{
79-
#if MBED_APP_SIZE == 0
79+
#if MBED_APP_START == 0
8080
m_interrupts (RX) : ORIGIN = MBED_APP_START, LENGTH = 0x400
8181
m_flash_config (RX) : ORIGIN = MBED_APP_START + 0x400, LENGTH = 0x10
8282
m_text (RX) : ORIGIN = MBED_APP_START + 0x410, LENGTH = MBED_APP_SIZE - 0x410
@@ -97,7 +97,7 @@ SECTIONS
9797
. = ALIGN(8);
9898
KEEP(*(.isr_vector)) /* Startup code */
9999
. = ALIGN(8);
100-
#if MBED_APP_SIZE == 0
100+
#if MBED_APP_START == 0
101101
} > m_interrupts
102102

103103
.flash_config :

0 commit comments

Comments
 (0)