⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linker_ram.cmd

📁 MC56F802BLDC 可以使用的算法 就是电机启动有点慢
💻 CMD
字号:
# Linker.cmd file for DSP56803EVM/DSP56805EVM External RAM

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
	.hole   (R)   : ORIGIN = 0x0800, LENGTH = 0x0400  # hole
	.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 = 0xC000  # external data ram
	.em     (RW)  : ORIGIN = 0xE000, LENGTH = 0x1000  # external data ram
	.stack  (RW)  : ORIGIN = 0xF000, LENGTH = 0x0F80  # stack   
	.onchip (RW)  : ORIGIN = 0xFF80, LENGTH = 0x0080  # on-chip core configuration registers
}

FORCE_ACTIVE {FconfigInterruptVector}

SECTIONS {
	.main_Application :
	{
		config.c (.text)
		*(Startup.text)
		*(Main.text)
		*(rtlib.text)
		*(fp_engine.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_Xbss_start_in_RAM = 0;
		F_Xbss_size = 0;
		F_StackAddr    = ADDR(.stack);
		F_StackEndAddr = ADDR(.stack) + SIZEOF(.stack) / 2  - 1;
		* (.data)
        * (fp_state.data)
		* (rtlib.data)		

     # Define variables for C initialization code
     # .bss sections 
	  	* (rtlib.bss.lo)
		* (.bss)
	} > .xram	

	FArchIO   = ADDR(.regs);
	FArchCore = ADDR(.onchip);

}

⌨️ 快捷键说明

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