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

📄 bootloader.cmd

📁 Hardware and firmware for a DSP based digital audio MP3 player with USB pen drive funtionality, usin
💻 CMD
字号:
/******************************************************************************/
/* LNK.CMD - COMMAND FILE FOR LINKING C PROGRAMS                              */
/*                                                                            */
/*      Usage:  lnk55 <obj files...>    -o <out file> -m <map file> lnk.cmd   */
/*              cl55  <src files...> -z -o <out file> -m <map file> lnk.cmd   */
/*                                                                            */
/*      Description: This file is a sample command file that can be used      */
/*                   for linking programs built with the C Compiler.          */
/*                   Use it as 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 rts55.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 the libraries.                 */
/*                                                                            */
/*             (2)   If the run-time library you are using is not             */
/*                   named rts55.lib, be sure to use the correct name here.   */
/*                                                                            */
/******************************************************************************/

-l csl5509.lib
-l rts55.lib

-stack    0x300      /* Primary stack size   */
-sysstack 0x50      /* Secondary stack size */
/*-heap     0x500      /* Heap area size       */

-c                    /* Use C linking conventions: auto-init vars at runtime */
-u _Reset             /* Force load of reset interrupt handler                */

/* SPECIFY THE SYSTEM MEMORY MAP */

MEMORY {
   DARAM:      origin = 0x300,         len = 0xfc00
   SARAM:      origin = 0x10000,       len = 0xffff
   VECT:       origin = 0x100,         len = 0x200
}


/* SPECIFY THE SECTIONS ALLOCATION INTO MEMORY */

SECTIONS
{
   .text     > DARAM     /* Code                       */

   /* These sections must be on same physical memory page   */
   /* when small memory model is used                       */
   .data     > DARAM      /* Initialized vars           */
   .bss      > DARAM      /* Global & static vars       */
   .const    > DARAM      /* Constant data              */
   .sysmem   > DARAM      /* Dynamic memory (malloc)    */
   .stack    > DARAM      /* Primary system stack       */
   .sysstack > DARAM      /* Secondary system stack     */
   .cio      > DARAM      /* C I/O buffers              */

   /* These sections may be on any physical memory page     */
   /* when small memory model is used                       */
   .switch   > DARAM      /* Switch statement tables    */
   .cinit    > DARAM      /* Auto-initialization tables */
   .pinit    > DARAM      /* Initialization fn tables   */
   .csldata  > DARAM	/* data section used by CSL */
    vectors  > VECT     /* Interrupt vectors          */
}

⌨️ 快捷键说明

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