linker_ram.cmd

来自「DSP56F807的CAN通讯程序,可用于多子板互连、也可作为开发的原型程序」· CMD 代码 · 共 41 行

CMD
41
字号
MEMORY {
	.pram   (RWX) : ORIGIN = 0x0000, LENGTH = 0x10000 # external program memory
	.avail  (RW)  : ORIGIN = 0x0000, LENGTH = 0x0030  # available
	.cwregs (RW)  : ORIGIN = 0x0030, LENGTH = 0x0010  # C temp registrs in CodeWarrior
	.im     (RW)  : ORIGIN = 0x0040, LENGTH = 0x07C0  # data
	.regs   (RW)  : ORIGIN = 0x0C00, LENGTH = 0x0400  # periperal registers
	.xflash (R)   : ORIGIN = 0x1000, LENGTH = 0x1000  # data flash memory to place constant 
	.xram   (RW)  : ORIGIN = 0x2000, LENGTH = 0xD000  # external data ram
	.stack  (RW)  : ORIGIN = 0xF000, LENGTH = 0x0F80  # stack   
	.onchip (RW)  : ORIGIN = 0xFF80, LENGTH = 0x0080  # on-chip core configuration registers
}

FORCE_ACTIVE {IV_Table,Fcrp,Fiop,Fcan_rx_isr}

SECTIONS {
	.main_Application :
	{
		*(Boot.text)
		*(Interrupt_Vector_Table.text)
		*(Setup.text)
		*(Main.text)
		*(rtlib.text)
		*(.text)
	} > .pram

	.main_application_data :
	{
		F_Xdata_start_in_RAM = 0; #do not init global variables when running from RAM
		F_Xdata_start_in_ROM = 0;
		F_Xdata_size = 0;
		F_StackAddr    = ADDR(.stack);
		F_StackEndAddr = ADDR(.stack) + SIZEOF(.stack) / 2  - 1;
		* (.data)
		* (.bss)
	} > .xram
	
	Fio = ADDR(.regs);
	Fcr = ADDR(.onchip);
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?