?? df054780_v4_new.xcl
字號:
/************************************************************************/
/* DF054780_V4.XCL */
/* */
/* NEC 78K0 series microcontroller device uPD78F0547_80 */
/* */
/* XLINK command file template (IAR Systems C Compiler ICC78K V4.xx) */
/* */
/* */
/* Copyright (C) NEC Corporation 2005 */
/* This file was created from device file DF054780.78K [V2.10 ] */
/* by DeFiX78 V1.07 */
/* */
/* 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.
//--------------------------------------------------------------------------
// spl78k0_kx2
// =====================
//-Z(CODE)BCLUST0=0086-0FFF
-Z(CODE)BCLUST0=02BA-0FFF //CM:Reserved ROM area for Minicube Firmware: 0090-02B9
// spl78k0_kx2
// ===============
-Z(DATA)RB3REGS=FEE0-FEE7
-Z(DATA)RB2REGS=FEE8-FEEF
-Z(DATA)RB1REGS=FEF0-FEF7
-Z(DATA)RB0REGS=FEF8-FEFF
//--------------------------------------------------------------------------
// Allocate interrupt vector segment.
//--------------------------------------------------------------------------
-Z(CODE)INTVEC=0000-003F
//--------------------------------------------------------------------------
// Allocate CALLT segments.
//--------------------------------------------------------------------------
-Z(CODE)CLTVEC=0040-007D
//--------------------------------------------------------------------------
// Allocate OPTION BYTES segment.
//--------------------------------------------------------------------------
-Z(CODE)OPTBYTE=0080-0084
//--------------------------------------------------------------------------
// Allocate SECURITY_ID segment.
//--------------------------------------------------------------------------
-Z(CODE)SECUID=0085-008E
//--------------------------------------------------------------------------
// Reserved ROM area for Minicube Firmware: 0090-02B9
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
// Allocate CALLF segment.
//--------------------------------------------------------------------------
//-Z(CODE)FCODE=0800-0FFB
//--------------------------------------------------------------------------
// Startup, Runtime-library, Non banked, Interrupt
// and Calltable functions code segment.
//--------------------------------------------------------------------------
//-Z(CODE)RCODE,CODE=0086-0FFB
-Z(CODE)RCODE,CODE=02BA-0FFB //CM:Reserved ROM area for Minicube Firmware: 0090-02B9
//--------------------------------------------------------------------------
// Data initializer segments.
//--------------------------------------------------------------------------
//-Z(CODE)NEAR_ID,SADDR_ID,DIFUNCT=0086-0FFB
-Z(CODE)NEAR_ID,SADDR_ID,DIFUNCT=02BA-0FFB //CM:Reserved ROM area for Minicube Firmware: 0090-02B9
//--------------------------------------------------------------------------
// Constant segments
//--------------------------------------------------------------------------
//-Z(CODE)CONST,SWITCH=0086-0FFB
-Z(CODE)CONST,SWITCH=02BA-0FFB //CM:Reserved ROM area for Minicube Firmware: 0090-02B9
//--------------------------------------------------------------------------
// 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=0006
//-D_CODEBANK_REG=FFF3
//--------------------------------------------------------------------------
// Banked functions code segment.
// The following code segments are available:
// - BCODE segment uses all banks
// - BANKx,BANKCx segments use only bank x
//--------------------------------------------------------------------------
//-P(CODE)BCODE=[_CODEBANK_START-_CODEBANK_END]*_CODEBANK_BANKS+10000
//-Z(CODE)BANK0,BANKC0=[(_CODEBANK_START+00000)-(_CODEBANK_END+00000)]
//-Z(CODE)BANK1,BANKC1=[(_CODEBANK_START+10000)-(_CODEBANK_END+10000)]
//-Z(CODE)BANK2,BANKC2=[(_CODEBANK_START+20000)-(_CODEBANK_END+20000)]
//-Z(CODE)BANK3,BANKC3=[(_CODEBANK_START+30000)-(_CODEBANK_END+30000)]
//-Z(CODE)BANK4,BANKC4=[(_CODEBANK_START+40000)-(_CODEBANK_END+40000)]
//-Z(CODE)BANK5,BANKC5=[(_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)IXRAM1=E000-F7EF
//--------------------------------------------------------------------------
// Allocate Buffer RAM segment.
//
// Note: This segment will not be automatically created by ICC78000/A78000
// and it will not be initialised by CSTARTUP!
//--------------------------------------------------------------------------
-Z(DATA)BUFRAM=FA00-FA1F
//--------------------------------------------------------------------------
// Allocate near data, heap and stack segments.
//--------------------------------------------------------------------------
-Z(DATA)HEAP+_HEAP_SIZE,CSTACK+_CSTACK_SIZE,NEAR_I,NEAR_Z,NEAR_N=FC01-FEDF
-Z(DATA)DS_DBF=FB00-FC00
//--------------------------------------------------------------------------
// Allocate saddr data segments.
//--------------------------------------------------------------------------
-Z(DATA)DS_ERAM=FE20-FE83
-Z(DATA)SADDR_I,SADDR_Z,SADDR_N,WRKSEG=FE84-FEDF
//--------------------------------------------------------------------------
// Fill unused Code bootloader
//--------------------------------------------------------------------------
//-h(CODE)0-0FFB
//-HFF
//-h(CODE)0-0FFB
//-HFF // CM: The code must not be filled otherwise the OCD code can not be placed.
//--------------------------------------------------------------------------
// Segment for CRC
//--------------------------------------------------------------------------
-Z(CODE)CHECKSUM=0FFE-0FFF
//--------------------------------------------------------------------------
// CRC
//--------------------------------------------------------------------------
//-J2,crc16,,,,1,0=(CODE)0-0FFB //CM: The checksum calculation may not work properly because the OCD code,
// which is part of the checksum area, is not predicable
//--------------------------------------------------------------------------
// 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.
//--------------------------------------------------------------------------
//-Fdebug
//--------------------------------------------------------------------------
// End of File
//--------------------------------------------------------------------------
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -