RESTART

Restart the target system.

Syntax

RESTART ["filename"] [/ioport] [/powergood]

Parameters

filename

The batch file to be executed. If the file is not located in the working directory, you must enter its entire path.

/ioport

The reset is performed by accessing a specified I/O port.

/powergood

The reset is performed by toggling the power-good signal on the debug port.

Description

This command restarts the target system by asserting the RESET pin of the CPU by default or using the reset method specified as a parameter. The execution is stopped at the reset vector, if supported by the target platform. To ensure that execution stops after the reset, use the Breakpoints window to create a platform breakpoint.

When a batch file name is specified, the procedure of restarting the target and executing the batch file is as follows:

  • Enabled and disabled code/data breakpoints are deleted from the target system. Platform breakpoints are not disabled.

  • The debugger executes a restart of the target with the selected reset method.

  • The execution stops at the reset vector, if supported by the target

  • The batch file specified as filename is executed.

If /IOPORT is set, the reset is performed by accessing the specified I/O port.

If /POWERGOOD is set, the reset is performed by toggling the power-good signal on the debug port.

Note

The /IOPORT and/or /POWERGOOD options are not supported by all targets and/or target connection methods. A message like "Unsupported reset type" will be printed out on the console in that case.

Example

RESTART
RESTART "control.xdb"
RESTART "C:\test\demo.xdb"
RESTART /IOPORT
RESTART /POWERGOOD

See Also

For more complete information about compiler optimizations, see our Optimization Notice.