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

📄 link.cmd

📁 Texas-Instrument C2000 Series DSP example programs
💻 CMD
字号:
/*----------------------------------------------------------------------*/
/*  LINKER COMMAND FILE - MEMORY SPECIFICATION for C240                 */
/*----------------------------------------------------------------------*/

/*----------------------------------------------------------------------*/
/* LINKER DIRECTIVES                                                    */
/*----------------------------------------------------------------------*/
-c                              /* link using C conventions             */
-stack 0x20                     /* stack size                           */
-x                              /* force rereading of libraries to      */
                                /*       resolve back regerences        */
-lrts2xx.lib                    /* run-time support - stack model       */
-iencoder\lib
-lencoder.lib                   /* encoder support */
-irs232\lib
-lrs232.lib                     /* rs232 terminal handler */

/* specify map & output file name */
-m main.map
-o main.out

/*-----------------------------------------------------------------------*/
/* MEMORY ALLOCATION                                                     */
/*-----------------------------------------------------------------------*/
MEMORY
{
   PAGE 0 :  VECS    : origin =    0h , length =   040h     /* FLASH   */
             FLASHL  : origin =   40h , length =  1FC0h     /* FLASH   */
             FLASHH  : origin = 2000h , length =  2000h     /* FLASH   */
             B0      : origin = 0FF00h, length =   100h     /* DARAM   */

   PAGE 1 :  B2      : origin = 0060h , length =   020h     /* DARAM   */
             B0      : origin = 0200h , length =   100h     /* DARAM   */
             B1      : origin = 0300h , length =   100h     /* DARAM   */
             DSRAM   : origin = 0C000h , length =  4000h     /* DARAM   */
}

/*--------------------------------------------------------------------------*/
/* SECTIONS ALLOCATION                                                      */
/*--------------------------------------------------------------------------*/
SECTIONS
{
        vectors :  {}   >   VECS   PAGE 0    /* int. vectors            */
        .text   :  {}   >   FLASHL PAGE 0    /* code                    */
        .switch :  {}   >   FLASHL PAGE 0    /* switch, case            */
        .cinit  :  {}   >   FLASHL PAGE 0    /* init. tables            */

        .text   :  {
                     monitor.obj (.text)
                     rs232\lib\rs232.lib  (.text)  
                   }   >   FLASHH  PAGE 0          

        .const  :  {
                     monitor.obj (.const)
                     rs232\lib\rs232.lib  (.const)  /* strings in flash */
                   }   >   FLASHH  PAGE 0          

        evm_qep :  {}   >   B0     PAGE 1  
        .bss:   :  {}   >   B0     PAGE 1
        .const  :  {}   >   B0     PAGE 1    /* other 'C' language constants */                
        .stack: :  {}   >   B1     PAGE 1    /* system stack            */
        .sysmem :  {}   >   B1     PAGE 1
        buffer  :  {}   >   B2     PAGE 1
}

⌨️ 快捷键说明

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