µVision4 User's Guide

Debug Commands

Debug Commands can be used in debug functions and in the Command Window. The syntax generator displays matching commands, options, and parameters when using the Command Window. The list of likely commands is reduced to coincide with the typed characters.

Enter the CAPITAL characters of a command! For example, BreakSet must be entered as BS.

By typing B, the syntax generator reduces the list of possible commands.Syntax Generator Example 1
The command options are shown when the typed command is identified clearly.Syntax Generator Example 2
The syntax generator leads through the command entry and helps avoiding errors.Syntax Generator Example 3

Breakpoint Commands

Breakpoint commands create, delete, enable, disable, or list the breakpoints. Use breakpoints to halt program execution, to stop commands, or interrupt user functions.

CommandDescription
BreakAccessAdds an access breakpoint with a length parameter to the breakpoint list.
BreakDisableDisables one or more breakpoints.
BreakEnableEnables one or more breakpoints.
BreakKillRemoves one or more breakpoints from the breakpoint list.
BreakListLists the current breakpoints.
BreakSetAdds a breakpoint expression to the list of breakpoints.

General Commands

General commands perform a number of miscellaneous debugging operations.

CommandDescription
ASSIGNAssigns input and output sources for the Serial window.
DEFINECreates a Toolbox button.
DIRGenerates a directory of symbol names.
EXITExits the debug mode.
INCLUDEReads and executes the commands in a command file.
KILLDeletes user- or signal functions and Toolbox buttons.
LOADLoads object modules, and HEX files.
LOGCreates log files, queries log status, and closes log files for the Debug window.
MODESets the baud rate, parity, and number of stop bits for PC COM ports.
RESETResets the CPU, memory map assignments, and predefined variables.
SAVESaves a memory range in an Intel HEX386 file.
SCOPEDisplays address assignments of modules and functions of a target program.
SETSets the string value for predefined variables.
SIGNALDisplays signal function status and removes active signal functions.
SLOGCreates log files, queries log status, and closes log files for the Serial window.

Memory Commands

Memory commands display and change the content of memory.

CommandDescription
ASMAssembles in-line code.
DEFINEDefines symbols or Toolbar buttons.
DISPLAYDisplays the content of memory.
ENTEREnters values into a specified memory area.
EVALuateEvaluates an expression and outputs the results.
MAPSpecifies access parameters for memory areas.
UnassembleDisassembles program memory.
WatchSetAdds a watch variable to the Watch window.
WatchKillKills all watch variable in the Watch window.

Program Commands

Program commands execute target programs and analyze their performance.

CommandDescription
COVERAGEDisplays code coverage information.
GoStarts program execution.
LogicAnalyzeAdds, deletes, or displays Logic Analyser variables.
PerformanceAnalyzeAdds, deletes, displays, or resets the Performance Analyzer ranges.
PstepSteps over instructions but does not step into procedures or functions.
OstepSteps out of the current function.
TstepSteps over instructions and into functions.

Note