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

📄 linker_flash.cmd

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

MEMORY {

	.pflash (RX)  : ORIGIN = 0x0000, LENGTH = 0x7E00  # program flash memory
	.pram   (RWX) : ORIGIN = 0x7E00, LENGTH = 0x0200  # program ram memory
	.bflash (RX)  : ORIGIN = 0x8000, LENGTH = 0x0800  # boot flash memory
	.phole1 (RX)  : ORIGIN = 0x8800, LENGTH = 0x7800  # reserved program memory
	.avail  (RW)  : ORIGIN = 0x0000, LENGTH = 0x0030  # available
	.cwregs (RW)  : ORIGIN = 0x0030, LENGTH = 0x0010  # C temp registrs in CodeWarrior
	.data   (RW)  : ORIGIN = 0x0040, LENGTH = 0x0660  # data
	.stack  (RW)  : ORIGIN = 0x06A0, LENGTH = 0x0160  # stack
	.dhole1 (R)   : ORIGIN = 0x0800, LENGTH = 0x0400  # the first internal memory hole
	.regs   (RW)  : ORIGIN = 0x0C00, LENGTH = 0x0400  # periperal registers
	.xflash (R)   : ORIGIN = 0x1000, LENGTH = 0x1000  # data flash memory to place constant
	                                                 # and initialized values for data
	.dhole2 (R)   : ORIGIN = 0x2000, LENGTH = 0xDF80  # the second internal memory hole
	.onchip (RW)  : ORIGIN = 0xFF80, LENGTH = 0x0080  # on-chip core configuration registers

}

FORCE_ACTIVE {FconfigInterruptVector, boot_start}

SECTIONS {
	.main_Application :
	{
		config.c (.text)
		*(Startup.text)
		*(Main.text)
		*(rtlib.text)
		*(fp_engine.text)
				
		*(.text)
	} > .pflash

	.flash_booting :
	{
		*(Boot.text)
	} > .bflash
	
	.main_application_constants :
	{
		_consts_start= .;
	
		#place your constants here: const.c (.data)
	
		_consts_size= . - _consts_start;
		F_Xdata_start_in_ROM = .;
	} > .xflash
	
	.main_application_data : AT (ADDR(.xflash)+_consts_size)
	#init values of global variables are placed in xflash after constants
	{
		F_StackAddr    = ADDR(.stack);
		F_StackEndAddr = ADDR(.stack) + SIZEOF(.stack) / 2  - 1;
		F_Xdata_start_in_RAM = .;
		_data_start= .;

		* (.data)
		* (fp_state.data)
		* (rtlib.data)	
		* (rtlib.bss.lo)

		F_Xdata_size = . - _data_start;
	} > .data

	.main_application_bss :
	#init value of not initialized data is 0
	{
		F_Xbss_start_in_RAM = .;
		_bss_start= .;
		* (.bss)
		F_Xbss_size = . - _bss_start;
	} >> .data
		
	FArchIO   = ADDR(.regs);
	FArchCore = ADDR(.onchip);
}

⌨️ 快捷键说明

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