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

📄 c32mainflash.cmd

📁 电力系统中的保护装置全部代码
💻 CMD
字号:
/***************************************************************************************/
/*									               */
/*    Usage:	   lnk30 <obj files...>  -o <out file> -m <map file> c.cmd             */
/*									               */
/*    Description: This file is a sample command file that can be used	               */
/*		   for linking programs built with the TMS320C30 C	               */
/*		   Compiler.   Use it a guideline; you may want to change              */
/*		   the allocation scheme according to the size of your	               */
/*		   program and the memory layout of your target system.                */
/*									               */
/*    Notes: (1)   You must specify the directory in which rts.lib is	               */
/*		   located.  Either add a "-i<directory>" line to this	               */
/*		   file, or use the system environment variable C_DIR to               */
/*		   specify a search path for libraries. 		               */
/*									               */
/*	     (2)   When using the small (default) memory model, be sure                */
/*		   that the ENTIRE .bss section fits within a single page.             */
/*		   To satisfy this, .bss must be smaller than 64K words and            */
/*		   must not cross any 64K boundaries.			               */
/***************************************************************************************/
MEMORY
{  
   FLASH:        origin = 0x0  length = 0x010000

   FLASH1:       origin = 0x010000  length = 0x10000

   EEPROM:          origin = 0x200000  length = 0x20000

   RAMINCHIP:       origin = 0x87fe00  length = 0x200

   SRAM:            origin = 0x900000  length = 0x20000
/*   SRAM1:           origin = 0x910000  length = 0x10000*/
}

/* SPECIFY THE SECTIONS ALLOCATION INTO MEMORY                                          */

SECTIONS
{
   .intreset:	   load = SRAM, run = FLASH
   .intvecs:       load = SRAM, run = FLASH
   .copytext:      load = SRAM, run = FLASH

   .text:          {} > SRAM                                                        
   .cinit:         {} > SRAM                                                        
   .const:         {} > SRAM                                                         
   .data:          {} > SRAM
   .ascii:         {} > SRAM                                                         
   .romsum_data:   {} > SRAM 
   .commu_data:    {} > SRAM
   .stack:  	   {} > SRAM                            /* SYSTEM STACK ZONE           */
   .bss:    	   {} > SRAM                            /* GLOBAL AND STATIC VARIBLE ZONE*/
   .lau:    	   {} > SRAM     	
   .sample_data    ALIGN(256):   {} > SRAM                            /* SAMPLE DATUM ZONE           */
   .sysm8: 		   {} > SRAM 
   .sysmem:		   {} > SRAM
   .c_data:		   {} > SRAM
   .xref:          {} > SRAM 
   hisrstk: 	   {} > SRAM                            /* TIMER HISR STACK ZONE,MUST BE THE LAST ZONE */             
   .hzk_16:		   {} > FLASH1
          
   .FilterCoeff:   {} > RAMINCHIP
   .Ad_Result:     {} > RAMINCHIP

   .NVRAM1:        {} > EEPROM                            /* REMOTE SIGNAL REPORT ZONE   */
   .NVRAM2:        ALIGN(256):   {} > EEPROM                            /* REMOTE SIGNAL REPORT ZONE   */
   .NVRAM3:        ALIGN(256):   {} > EEPROM                            /* REMOTE SIGNAL REPORT ZONE   */
}

⌨️ 快捷键说明

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