2.3.112. RESTART

Resets the PC to the program starting address.

Syntax

RESTART [=task]

where:

task

Specifies the task that is to start. This parameter is required when the target is running multiple tasks and the OS extension is enabled.

Note

This argument is not available in this release.

Description

The RESTART command resets the PC to the program starting address, so that the next GO, STEP or GOSTEP command restarts execution at the beginning of the program. The RESTART command does not reset the values of variables, the stack pointer is not reset and breakpoints are not cleared. If required, RESTART can be configured to reload the image using the SETTINGS command. All declared I/O ports are unaffected. You can use the ARGUMENTS command to change the arguments passed to the process for a restart.

Note

  • If the program relies on the initial values of variables in initialized data areas, and those variables are modified during program execution, then using RESTART to rerun the program fails.

  • The RESTART command might behave differently if you are using the OS extension to RealView Debugger. See the instructions for the specific OS extension for more details.

The RESTART command runs synchronously.

Alias

REEXEC is an alias of RESTART.

See also

Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0175N
Non-ConfidentialID052111