Keil Logo

Debug Commands

Debug Commands can be used in the Command Window and in debug functions. You must use the CAPITAL letters of a command. For example, BreakAccess must be entered as BA or ba.

Debug commands can be built using:

Breakpoint Commands

Use breakpoint commands to halt program execution, to stop commands, or interrupt user functions.

Command Description
BreakAccess Add an access breakpoint with a length parameter to the breakpoint list.
BreakDisable Disable one or more breakpoints.
BreakEnable Enable one or more breakpoints.
BreakKill Remove one or more breakpoints from the breakpoint list.
BreakList List all breakpoints.
BreakSet Add a breakpoint expression to the list of breakpoints.
SBC (only Cortex-M) Define SW breakpoint configuration for a memory block.

General Commands

General commands perform a number of miscellaneous debugging operations.

Command Description
ASSIGN Assign input and output sources for the Serial window.
DEFINE Create a Toolbox button.
DIR Generate a directory of symbol names.
EventRecorder Protocol events to a file or save/restore event filter settings.
EXIT Exit debug mode.
FUNC Create C-like functions for debugging.
INCLUDE Read and execute commands in a command file.
ITMLOG Create a log file for writing ITM channel output of Cortex-M devices. Each ITM channel has its own log file.
IRLOG Create a log file for writing all ITM channel outputs of Cortex-M devices to one common file. Create a log file for RTA channel output of ARM7 or ARM9 devices.
KILL Delete user- or signal functions and Toolbox buttons.
LOAD Load object modules and HEX files.
LOG Create log files, querie log status, and close log files for the Debug window.
MODE Set the baud rate, parity, and number of stop bits for PC COM ports.
RESET Reset the CPU, memory map assignments, and predefined variables.
SAVE Save a memory range in an Intel HEX386 file.
SCOPE Display address assignments of modules and functions of a target program.
SET Set the string value for predefined variables.
SIGNAL Display signal function status and remove active signal functions.
SLOG Create log files, querie log status, and close log files for the Serial window.

Memory Commands

Memory commands display and change the content of memory.

Command Description
ASM Assemble in-line code.
DEFINE Define symbols or Toolbar buttons.
DISPLAY Display the content of memory.
ENTER Enter values into a specified memory area.
EVALuate Evaluate an expression and output the results.
MAP Specifie access parameters for memory areas.
Unassemble Disassemble program memory.
WatchSet Add a watch variable to the Watch window.
WatchKill Kill all watch variable in the Watch window.

Program Commands

Program commands execute target programs and analyze their performance.

Command Description
COVERAGE Display code coverage information.
COVTOFILE Save code coverage information quickly without displaying it.
Go Start program execution.
LogicAnalyze Add, delete, or display Logic Analyser variables.
PerformanceAnalyze Add, delete, display, or reset Performance Analyzer ranges.
Pstep Step over instructions but do not step into procedures or functions.
Ostep Step out of the current function.
Tstep Step over instructions and into functions.

Tracepoint Commands

Tracepoint commands define tracepoints for Cortex-M3 and Cortex-M4 processor-based devices.

Command Description
TraceAccessPoint Define a tracepoint for capturing read or write activities on a memory range.
TraceDataPoint Define a tracepoint for capturing read or write activities on a memory range.
TraceDisable Deactivate a tracepoint.
TraceEnable Activate a tracepoint.
TraceHalt Stop capturing all trace data.
TraceKill Remove one or more tracepoints.
TraceList List all tracepoints.
TraceRun (ETM) Define a tracepoint to start capturing ETM instructions.
TraceSuspend (ETM) Define a tracepoint to stop capturing ETM instructions.
  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.