lnk430f135q.xcl.svn-base

来自「由MSP430F135做控制器的温度控制详细程序」· SVN-BASE 代码 · 共 108 行

SVN-BASE
108
字号
//*****************************************************************
//  XLINK command file for the MSP430 IAR C/C++ Compiler
//
//  This is the XLINK command file for the MSP430F135
//  microprocessor.
//
//  Copyright 1996-2004 IAR Systems. All rights reserved.
//
//  Usage:  xlink  your_file(s)  -f lnkMSP430F135  cl430xxx
//
//  $Revision: 1.1.1.1 $
//
//*****************************************************************


//*****************************************************************
//  The following segments are defined in this linker command file:
//
//  Data read/write segments (RAM)
//  ==============================
//
//  segment     address range   usage
//  -------     -------------   --------------------------
//  DATA16_I    0200-0400       Initialized variables
//  DATA16_Z    0200-0400       Zero initialized variables
//  DATA16_N    0200-0400       Uninitialized variables
//  CSTACK      0200-0400       Run-time stack/auto variables
//  HEAP        0200-0400       The heap used by malloc and free
//
//
//  Program and non-volatile segments (FLASH)
//  =========================================
//
//  segment     address range   usage
//  -------     -------------   --------------------------
//  INFO        1000-10FF       Information memory
//             /*  QIAOZS   C200-FFDF */
//  CSTART      C000-FFDF       cstartup program code
//  CODE        C000-FFDF       Program code
//  DATA16_C    C000-FFDF       Constant "const" variables AND String literals
//  DATA16_ID   C000-FFDF       Initializers for DATA16_I
//  DIFUNCT     C000-FFDF       Dynamic initialization vector used by C++
//  CHECKSUM    C000-FFDF       The linker places the checksum byte(s) in this segment,
//                              when the -J linker command line option is used.
//
//  INTVEC      FFE0-FFFF       Interrupt vectors
//
//  NOTE:
//  It is not possible to pack the CSTART segment by using the XLINK -P option
//  Special function registers and peripheral modules occupy addresses 0-01FFh
//  Be sure to use end values for the defined addresses
//*****************************************************************

// -------------------------------------------------------------------
// Stack size and heap size
// -------------------------------------------------------------------

// Uncomment for command line use
//-D_STACK_SIZE=50
//-D_HEAP_SIZE=50

// -------------------------------------------------------------------
// Define CPU
// -------------------------------------------------------------------

-cmsp430

// -------------------------------------------------------------------
// RAM memory
// -------------------------------------------------------------------

-Z(DATA)DATA16_I,DATA16_Z,DATA16_N,HEAP+_HEAP_SIZE=0200-0400
-Z(DATA)CSTACK+_STACK_SIZE#

// -------------------------------------------------------------------
//  Information memory (FLASH)
// -------------------------------------------------------------------

-Z(CODE)INFO=1000-10FF
-Z(CODE)INFOA=1080-10FF
-Z(CODE)INFOB=1000-107F


// -------------------------------------------------------------------
// ROM memory (FLASH)
// -------------------------------------------------------------------

//  Code

-Z(CODE)CSTART=C000-FFDF
-Z(CODE)CODE=C000-FFDF


// Constant data

-Z(CONST)DATA16_C,DATA16_ID,DIFUNCT,CHECKSUM=C000-FFDF


// Interrupt vectors

-Z(CONST)INTVEC=FFE0-FFFF
-Z(CONST)RESET=FFFE-FFFF


// -------------------------------------------------------------------
// End of File
// -------------------------------------------------------------------

⌨️ 快捷键说明

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