File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed
targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ M_CRASH_DATA_RAM_SIZE = 0x100;
7474/* Specify the memory areas */
7575MEMORY
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 :
Original file line number Diff line number Diff line change 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
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 }
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ M_CRASH_DATA_RAM_SIZE = 0x100;
7676/* Specify the memory areas */
7777MEMORY
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 :
You can’t perform that action at this time.
0 commit comments