?? df0397_v4_saved.xcl
字號:
/************************************************************************/
/* DF0397_V4.XCL */
/* */
/* NEC 78K0 series microcontroller device uPD78F0397 */
/* */
/* XLINK command file template (IAR Systems C Compiler ICC78K V4.xx) */
/* */
/* */
/* Copyright (C) NEC Corporation 2005 */
/* This file was created from device file DF0397.78K [V1.00 ] */
/* by DeFiX78 V1.04 */
/* */
/* This file is only intended as a sample supplement to IAR Systems */
/* tools. This file is provided 'as is' without warranty of any kind. */
/* Neither NEC nor their sales representatives can be held liable */
/* of any inconvenience or problem caused by its contents. */
/************************************************************************/
//--------------------------------------------------------------------------
// The following segments are defined in this template link file:
//
// INTVEC -- Interrupt vectors.
// CLTVEC -- Calltable vectors.
// RCODE -- Code used by C/EC++ startup and run-time library.
// FCODE -- Code used by __callf functions.
// CODE -- Code used by __non_banked, __interrupt and __callt functions.
// BCODE -- Code used by __banked functions.
// CONST -- Constants used by const.
// NEAR_x -- Variables used by __near.
// SADDR_x -- Variables used by __saddr.
// SWITCH -- Switch tables.
// DIFUNCT -- Dynamic initialization vector used by EC++
// HEAP -- The heap used for malloc and free by EC++
//
// Where _x could be one of:
//
// _Z -- Initialized data (initvalue = 0 or without init value).
// _I -- Initialized data (initvalue != 0).
// _ID -- The inial values of _I.
// _N -- Uninitialized data, used by __no_init.
//
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
// Define CPU
//--------------------------------------------------------------------------
-c78000
//--------------------------------------------------------------------------
// Size of the stack.
// Remove comment and modify number if used from command line.
//--------------------------------------------------------------------------
//-D_CSTACK_SIZE=80
//--------------------------------------------------------------------------
// Size of the heap.
// Remove comment and modify number if used from command line.
//--------------------------------------------------------------------------
//-D_HEAP_SIZE=400
//--------------------------------------------------------------------------
// Used by DLIB only
// Define the format functions used by printf/scanf.
// Default is full formatting.
// Remove appropriate comment(s) to get reduced formatting
// if used from command line.
//--------------------------------------------------------------------------
//-e_PrintfTiny=_Printf
//-e_PrintfSmall=_Printf
//-e_PrintfLarge=_Printf
//-e_ScanfSmall=_Scanf
//-e_ScanfLarge=_Scanf
//--------------------------------------------------------------------------
// Used by DLIB only
// Define if row buffering should be used by terminal output.
// Default is no buffering.
// Remove comment to get buffered terminal output if used from command line.
//--------------------------------------------------------------------------
//-e__write_buffered=__write
//--------------------------------------------------------------------------
// Used by CLIB only
// Define the format functions used by printf/scanf.
// Default is full formatting.
// Remove appropriate comment(s) to get reduced formatting
// if used from command line.
//--------------------------------------------------------------------------
//-e_small_write=_formatted_write
//-e_medium_write=_formatted_write
//-e_medium_read=_formatted_read
//--------------------------------------------------------------------------
// Allocate the read only segments that are mapped to ROM.
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
// Allocate interrupt vector segment.
//--------------------------------------------------------------------------
-Z(CODE)INTVEC=0000-003F
//--------------------------------------------------------------------------
// Allocate Bootloader
//--------------------------------------------------------------------------
//-Z(CODE)BOOTLOADER=0085-0FFF
//--------------------------------------------------------------------------
// Allocate CALLT segments.
//--------------------------------------------------------------------------
-Z(CODE)CLTVEC=0040-007D
//--------------------------------------------------------------------------
// Allocate OPTION BYTES segment.
//--------------------------------------------------------------------------
-Z(CODE)OPTBYTE=0080-0081
//--------------------------------------------------------------------------
// Allocate SECURITY_ID segment.
//--------------------------------------------------------------------------
-Z(CODE)SECUID=0084-008E
//--------------------------------------------------------------------------
// Reserved ROM area for Minicube debugger Firmware: 0x0090-0x018F
// This area cannot be used by the application.
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
// Allocate CALLF segment.
//--------------------------------------------------------------------------
-Z(CODE)FCODE=0800-0FFF
//--------------------------------------------------------------------------
// Startup, Runtime-library, Non banked, Interrupt
// and Calltable functions code segment.
//--------------------------------------------------------------------------
-Z(CODE)RCODE,CODE=0190-7FFF
//--------------------------------------------------------------------------
// Data initializer segments.
//--------------------------------------------------------------------------
-Z(CODE)NEAR_ID,SADDR_ID,DIFUNCT=0190-7FFF
//--------------------------------------------------------------------------
// Constant segments
//--------------------------------------------------------------------------
-Z(CODE)CONST,SWITCH=0190-7FFF
//--------------------------------------------------------------------------
// Start and end address of the code bank area.
// Number of banks in the code bank area.
// SFR register address for code bank switching.
// Remove comments and modify numbers if used from command line.
//--------------------------------------------------------------------------
//-D_CODEBANK_START=8000
//-D_CODEBANK_END=BFFF
//-D_CODEBANK_BANKS=0005
//-D_CODEBANK_REG=FFF3
//--------------------------------------------------------------------------
// Banked functions code segment.
// The following code segments are available:
// - BCODE segment uses all banks
// - BANKx segments use only bank x
//--------------------------------------------------------------------------
-P(CODE)BCODE=[_CODEBANK_START-_CODEBANK_END]*_CODEBANK_BANKS+10000
-P(CODE)BANK0=[(_CODEBANK_START+00000)-(_CODEBANK_END+00000)]
-P(CODE)BANK1=[(_CODEBANK_START+10000)-(_CODEBANK_END+10000)]
-P(CODE)BANK2=[(_CODEBANK_START+20000)-(_CODEBANK_END+20000)]
-P(CODE)BANK3=[(_CODEBANK_START+30000)-(_CODEBANK_END+30000)]
-P(CODE)BANK4=[(_CODEBANK_START+40000)-(_CODEBANK_END+40000)]
-P(CODE)BANK5=[(_CODEBANK_START+50000)-(_CODEBANK_END+50000)]
//--------------------------------------------------------------------------
// Allocate the read/write segments that are mapped to RAM.
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
// Allocate internal extended RAM segment(s).
//
// Note: This segment(s) will not be automatically created by ICC78000/A78000
// and it will not be initialised by CSTARTUP!
//--------------------------------------------------------------------------
-Z(DATA)IXRAM=E000-F7FF
//--------------------------------------------------------------------------
// Allocate near data, heap and stack segments.
//--------------------------------------------------------------------------
-Z(DATA)HEAP+_HEAP_SIZE,CSTACK+_CSTACK_SIZE,NEAR_I,NEAR_Z,NEAR_N=FB00-FE1F
//--------------------------------------------------------------------------
// Allocate saddr data segments.
//--------------------------------------------------------------------------
-Z(DATA)SADDR_I,SADDR_Z,SADDR_N,WRKSEG=FE20-FEDF
//--------------------------------------------------------------------------
// Select the 'C' library
// Remove comment to select the required library if used from command line.
//--------------------------------------------------------------------------
//cl78kb1.r26
//--------------------------------------------------------------------------
// Select the output file format if used from command line.
// Remove comment to select the file format if used from command line.
//--------------------------------------------------------------------------
//-Fxcoff78k
//--------------------------------------------------------------------------
// Select the format modifier for XCOFF if used from command line.
// Remove comment to select the format modifier if used from command line.
//--------------------------------------------------------------------------
//-ysp
//--------------------------------------------------------------------------
// End of File
//--------------------------------------------------------------------------
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -