WAITUNTIL

Waits until the target is in the specified run state.

Syntax

WAITUNTIL {RUNNING | STOPPED} [/TIMEOUT=time]

WAITUNTILRUNNING ,STOPPED [/TIMEOUT=time]

Arguments

RUNNING

The execution is halted until the target is in the run-state "running".

STOPPED

The execution is halted until the target is in the run-state "stopped".

TIMEOUT=time

Specifies a timeout time in milliseconds. If the following error message is issued:

"E-L-C-SNRT : Timed out while waiting for the target to be running"

the target could not reach the specified run-state after the timeout.

Description

The WAITUNTIL command halts the program execution until the target has reached the specified run state. This can be useful for scripts whose execution depend on a particular target state.

! Create a watchpoint for port 80 and wait until the target has been stopped
! due to the watchpoint before continuing with the script execution
set watchpoint /access=io at 0x80
run
waituntil stopped /timeout=2000
Optimization Notice: 
For more complete information about compiler optimizations, see our Optimization Notice.