run

The operation of this command depends on what the target is:

Bare-metal

This command sets the PC register to the entry point address previously recorded by the load or loadfile command and starts running the target. Subsequent run commands also reload the executable image.

Note

You must use the load command before you can run on bare-metal.

gdbserver

This command sends a request to the server to restart the application and then start running it.

Note

Control is returned as soon as the target is running. You can use the wait command to block the debugger from returning control until either the application completes or a breakpoint is hit.

Show/hideSyntax

run [args]

Where:

args

Specifies the command-line arguments that are passed to the main() function in the application using the argv parameter. The name of the image is always implicitly passed in argv[0] and it is not necessary to pass this as an argument to the run command.

Show/hideExample

Example 90. run

run                                   # Start running the device

Show/hideSee also

Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0452D
Non-ConfidentialID011411