Keil Logo Arm Logo

µVision4 User's Guide

User

The dialog Options for Target - User allows specifying programs that are executed during the build process of an application. Programs can be run before compiling, before building, and after building the application. Arguments are passed from µVision to the external program using Key Sequence.

Run User Programs Before Compilation of a C/C++ File

Run #
Specifies programs that run before compiling any C/C++ source file (typically used for extensive syntax checkers such as MISRA tools). Enable the checkbox to activate the program.
DOS16
Enable this checkbox for external programs that must run in a 16-bit DOS environment.
Stop Build/Rebuild on Exit Code
Specifies an exit condition when compilation errors occur. Not Specified is the default setting. In this case, all files are compiled; all errors are captured and diplayed. To halt execution upon a certain number of errors, select another condition from the drop-down list. For example, to exit upon the 5th error, select the entry >=5.

Run User Program Before Build/Rebuild

Run #
Specifies programs that run before building or rebuilding an application. Enable the checkbox to activate the program.
DOS16
Enable this checkbox for external programs that must run in a 16-bit DOS environment.

Run User Program After Build/Rebuild

Run #
Specifies programs that run after a successful build or rebuild process (typically used for file converters or debuggers). Enable the checkbox to activate the program.
DOS16
Enable this checkbox for external programs that must run in a 16-bit DOS environment.
Beep When Complete
Gives an acoustic signal after the build process completed.
Start Debugging
Starts the Debugger after an application has been built successfully.

Examples:

  • Run #1: C:\Utilities\Programmer.exe -d271001 #H
    Runs the external program Programmer.exe with a program-specific parameter, -d271001. The key sequence, #H, identifies the HEX Output file (H) with the full path specification (#). For example, #H could be C:\MyProject\Project1.HEX.  
  • Run #2: C:\Utilities\Emulator.exe "%L" -p"$P"
    Runs the external program Emulator.exe using key sequnces for passing arguments. "%L" for using the linker output file without a path specification. "$P" for passing the project path. -p is the argument identifier of the external program. For example, the command above could generate the following output:
    C:\Utilities\Emulator.exe "Project1.lnk" -p"C:\My Project"

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.