mdk工具关键字的定义。

来源:互联网 发布:淘宝 实木家具 编辑:程序博客网 时间:2024/06/08 14:10

Key Sequence for Tool Parameters

Use Key Sequences to pass arguments from µVision to external user programs. Key Sequences are combinations of aKey Code and a File Code. Key sequences can be used, for example, in the dialogsTools, SVCS, Options for Target — User, or from the command line. The following rules apply:

  • Certain Key Codes have to be duplicated when used from the command line.
    To use the symbols $, #, %, @, ~, ^
    escape them with $$, ##, %%, @@, ~~, ^^.
  • Enclose Key Sequences within quotes (" ") when using folder names that might contain special characters (space,~, or #).

Key Codes and File Codes are listed in the tables below:

Key CodeDescription%File name with extension, but without path specification (PROJECT1.UVPROJ)#File name with extention and complete path specification (C:\MYPROJECT\PROJECT1.UVPROJ)@File name without extension or path specification (PROJECT1)$Folder name of the file specified in the File Code (C:\MYPROJECT)!File name with extention and relative path specification to the current folder (SRC\TEST.C)~ 1Line number of the current cursor position^ 1Column number of the current cursor positionFile CodeDescription$DDevice name as selected from the Device Database.EEditor file name currently in focus.FDepending on the context, this File Code returns:
  • The file selected in the window Project.
  • The currently active editor file.
  • The file that is currently translated by a build process.
HApplication HEX file name (PROJECT1.H86).KRoot folder of the development tool (C:\Keil).LLinker output file. Typically the executable file used for debugging (PROJECT1).$MCPU mask revision number.PCurrent project file name (PROJECT1.UVPROJ).$WExpands the path with the root folder of a multiple-project. Applies to
  • SmartCard multiple-projects.
  • *.ini files. Not usable in interactive mode.
LOAD $Wres/obj/um.abs INCREMENTAL ?
LOAD C:/multiproj/subproj/res/obj/um.abs INCREMENTAL
XFor Key Code %, # @: µVision executable program file (C:\Keil\UV4\UV4.EXE).$XFor Key Code $: XTAL clock frequency in MHz as specified in Options for Target — Target — XTAL.^XFor Key Code ^: XTAL clock frequency in kHz as specified in Options for Target — Target — XTAL.The following File Codes are valid when using a SVCS systemQ 2Name of the temporary file that contains comments (Comment).R 2Revision number (Revision).C 2Check point string (Check Point).I 2Project identification string (Project Ident).U 2User name (User Name).V 2Database file name string (Database).
  • 1 only in combination with the File Code F.
  • 2 only in combination with the Key Code %.
  • Examples can be found in the sections: Start External Tools andUsing the SVCS Menu.

0 0
原创粉丝点击