Skip to content

Commit aaa09d5

Browse files
committed
Added missing subscription
1 parent 2e1c2a1 commit aaa09d5

File tree

1 file changed

+13
-5
lines changed
  • targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K24F/TARGET_MCU_K24F1M/device/TOOLCHAIN_GCC_ARM

1 file changed

+13
-5
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K24F/TARGET_MCU_K24F1M/device/TOOLCHAIN_GCC_ARM/MK24FN1M0xxx12.ld

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,24 @@ __ram_vector_table__ = 1;
5656
__stack_size__ = 0x8000;
5757
__heap_size__ = 0x10000;
5858

59-
HEAP_SIZE = DEFINED(__heap_size__) ? __heap_size__ : 0x0400;
60-
STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x0400;
59+
#if !defined(MBED_APP_START)
60+
#define MBED_APP_START 0
61+
#endif
62+
63+
#if !defined(MBED_APP_SIZE)
64+
#define MBED_APP_SIZE 0x100000
65+
#endif
66+
67+
HEAP_SIZE = DEFINED(__heap_size__) ? __heap_size__ : 0x8000;
68+
STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x10000;
6169
M_VECTOR_RAM_SIZE = DEFINED(__ram_vector_table__) ? 0x0400 : 0x0;
6270

6371
/* Specify the memory areas */
6472
MEMORY
6573
{
66-
m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400
67-
m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010
68-
m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x000FFBF0
74+
m_interrupts (RX) : ORIGIN = MBED_APP_START, LENGTH = 0x400
75+
m_flash_config (RX) : ORIGIN = MBED_APP_START + 0x400, LENGTH = 0x10
76+
m_text (RX) : ORIGIN = MBED_APP_START + 0x410, LENGTH = MBED_APP_SIZE - 0x410
6977
m_data (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000
7078
m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00030000
7179
}

0 commit comments

Comments
 (0)