Return – Freescale Semiconductor Microcontrollers User Manual

Page 815

Advertising
background image

Debugger Engine Commands

Debugger Commands

815

Microcontrollers Debugger Manual

RETURN

The RETURN command terminates the current command processing level (returns from
a

CALL

command). If executed within a command file, control is returned to the caller of

the command file (i.e. the first instance that did not chain execution).

Usage

RETURN

Components

Debugger engine.

Example:

In file d:\demo\cmd1.txt:

...

CALL d:\demo\cmd2.txt

T

...

In file d:\demo\cmd2.txt

...

...

RETURN // returns to the caller

The command file cmd1.txt calls a second command file cmd2.txt. It is so
necessary to insert the RETURN instruction to return to the caller file. Then the

T

Trace instruction is executed.

RS

The RS command assigns new values to specified registers. The RS mnemonic is
followed by register name and new value(s).

An equal sign (=) may be used to separate the register name from the value to be assigned
to the register; otherwise they must be separated by a space. The contents of any number
of registers may be set using a single RS command. If the specified register is not a CPU
register, then the register is searched in a register file as an I/O register. This file is called:
MCUIxxxx.REG

(where xxxx is a number related to the MCU).

Advertising