FSL_TICS_ZJJ 发表于 2014-10-9 13:38 
楼主你好!
你可以参考下这个帖子:https://bbs.21ic.com/icview-696256-1-1.html
当然需要把地址改为你RAM ...
MEMORY
{
.p_interrupts_flash_ROM (RX) : ORIGIN = 0x0000, LENGTH = 0x00A4 # reserved for 5682x interrupts
.p_flash_ROM (RX) : ORIGIN = 0x00A4, LENGTH = 0x3F5C # pROM is 16K words total
# p_flash_ROM_data mirrors x_internal_RAM, mapping to origin and length
# the "X" flag in "RX" tells the debugger flash p-memory.
# the p-memory flash is directed to the address determined by AT
# in the data_in_p_flash_ROM section definition
.p_flash_ROM_data (RX) : ORIGIN = 0x0001, LENGTH = 0x0FFF # internal xRAM mirror
# .p_reserved_1 : ORIGIN = 0x4000, LENGTH = 0x1C000
.p_boot_flash_ROM (RX) : ORIGIN = 0x20000, LENGTH = 0x1000 # 4K words
# .p_reserved_2 : ORIGIN = 0x21000, LENGTH = 0xE800 # 58K words
.p_internal_RAM (RWX) : ORIGIN = 0x2F800, LENGTH = 0x0800 # 2K words
# .p_reserved_3 : ORIGIN = 0x30000, LENGTH = 0x0000
.x_internal_RAM (RW) : ORIGIN = 0x0001, LENGTH = 0x0FFF # 4K x 16
.x_flash_ROM (R) : ORIGIN = 0x1000, LENGTH = 0x1000 # 4K x 16
# .x_reserved_1 : ORIGIN = 0x2000, LENGTH = 0xD000
.x_onchip_peripherals (RW) : ORIGIN = 0xF000, LENGTH = 0x1000 # n/a w/SDM
# .x_reserved_2 : ORIGIN = 0x010000, LENGTH = 0xFEFF00 # n/a
.x_EOnCE (RW) : ORIGIN = 0xFFFF00, LENGTH = 0x0000 # n/a w/SDM
}
.mydata :
{
__RAM_SYMBOLS = .;
. =ALIGN(4);
KEEP(*(.ramsymbols))
. =ALIGN(4);
}>x_internal_RAM
|