Keil Logo

Debug Commands

µVision3 supports a number of commands you may enter in the Output Window — Command Line. Commands may be separated into categories that describe the common function of the commands.

The commands can be grouped into the following categories:

Breakpoint Commands

Breakpoint commands let you create and delete breakpoints. You use breakpoints to halt program execution or to execute µVision3 commands or user functions when a particular instruction is reached.

Command Description
BreakAccess Add an access breakpoint with length to the list of breakpoints.
BreakDisable Disables one or more breakpoints.
BreakEnable Enables one or more breakpoints.
BreakKill Removes one or more breakpoints from the breakpoint list.
BreakList Lists the current breakpoints.
BreakSet Adds a breakpoint expression to the list of breakpoints.

General Commands

General commands let you perform a number of miscellaneous debugging operations.

Command Description
ASSIGN Assigns input and output sources for the Serial window.
DEFINE Creates a Toolbox button.
DIR Generates a directory of symbol names.
EXIT Exits µVision3 debug mode.
INCLUDE Reads and executes the commands in a command file.
KILL Deletes µVision3 debug functions and Toolbox buttons.
LOAD Loads object modules, and HEX files.
LOG Creates log files, queries log status, and closes log files for the Debug window.
MODE Sets the baud rate, parity, and number of stop bits for PC COM ports.
RESET Resets µVision3, resets memory map assignments, and resets predefined variables.
SAVE Saves a memory range in an Intel HEX386 file.
SCOPE Displays address assignments of modules and functions of a target program.
SET Sets the string value for predefined variable.
SIGNAL Displays signal function status and removes active signal functions.
SLOG Creates log files, queries log status, and closes log files for the Serial window.

Memory Commands

Memory commands let you display and change the contents of memory.

Command Description
ASM Assembles in-line code.
DEFINE Defines typed symbols that you may use with µVision3 functions.
DISPLAY Display the contents of memory.
ENTER Enters values into a specified memory area.
EVALuate Evaluates an expression and outputs the results.
MAP Specifies access parameters for memory areas.
Unassemble Disassembles program memory.
WatchSet Adds a watch variable to the Watch window.
WatchKill Kill all watch variable in the Watch window.

Program Commands

Program commands let you execute your target program and analyze its performance.

Command Description
COVERAGE Display code coverage information.
Go Starts program execution.
LogicAnalyze Initializes the Logic Analyser.
PerformanceAnalyze Initializes the built-in performance analyzer.
Pstep Steps over instructions but does not step into procedures or functions.
Ostep Steps out of the current function.
Tstep Steps over instructions and into functions.

Command Entry

During command entry, the syntax generator displays possible commands, options and parameters. As you enter commands µVision3 reduces the list of likely commands to coincide with the characters you type.

If you type B, the syntax generator reduces the commands listed. Syntax Generator Example 1
Available command options are listed if the command is clear. Syntax Generator Example 2
The syntax generator leads you through the command entry and helps you to avoid errors. Syntax Generator Example 3

Note

  • Only the CAPITAL characters of the command names are enter. For example, the BreakSet command must be entered as BS.

Related Knowledgebase Articles

  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.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.