[bsp] lpc54608 update MDK scatter file

This commit is contained in:
tanek liang 2017-11-15 14:54:32 +08:00 committed by Bernard Xiong
parent 6e3c629cde
commit 71818e8da1
2 changed files with 8 additions and 4 deletions

View File

@ -61,7 +61,7 @@
#define m_interrupts_ram_size __ram_vector_table_size__
#define m_data_start (m_interrupts_ram_start + m_interrupts_ram_size)
#define m_data_size 0x00018000/*(0x00028000 - m_interrupts_ram_size)*/
#define m_data_size 0x00028000/*(0x00028000 - m_interrupts_ram_size)*/
#define m_usb_sram_start 0x40100000
#define m_usb_sram_size 0x00002000
@ -81,6 +81,8 @@
#define Heap_Size 0x0400
#endif
#define RTT_HEAP_LENGTH (m_data_size - ImageLength(RW_m_data) - ImageLength(ARM_LIB_HEAP) - ImageLength(ARM_LIB_STACK))
LR_m_text m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; load region size_region
VECTOR_ROM m_interrupts_start m_interrupts_size { ; load address = execution address
* (RESET,+FIRST)
@ -102,7 +104,9 @@ LR_m_text m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; loa
}
ARM_LIB_HEAP +0 EMPTY Heap_Size { ; Heap region growing up
}
ARM_LIB_STACK m_data_start+m_data_size EMPTY -Stack_Size { ; Stack region growing down
ARM_LIB_STACK +0 EMPTY Stack_Size { ; Stack region growing down
}
RTT_HEAP +0 EMPTY RTT_HEAP_LENGTH {
}
}

View File

@ -34,8 +34,8 @@
// </RDTConfigurator>
#ifdef __CC_ARM
extern int Image$$ARM_LIB_STACK$$ZI$$Limit;
#define HEAP_BEGIN ((void *)&Image$$ARM_LIB_STACK$$ZI$$Limit)
extern int Image$$RTT_HEAP$$ZI$$Base;
#define HEAP_BEGIN ((void *)&Image$$RTT_HEAP$$ZI$$Base)
#elif __ICCARM__
#pragma section="HEAP"
#define HEAP_BEGIN (__segment_end("HEAP"))