
Running Your Programs
6-14
Running code while disconnected from the target system
reset
The RESET command resets the simulator and reloads the monitor. This is a
software reset. The format for this command is:
reset
If you execute the RESET command, the simulator simulates the ’C6x proces-
sor and peripheral reset operation, putting the processor in a known state.
Running code conditionally
The RUN, STEP, CSTEP, NEXT, and CNEXT commands all have an optional
expression parameter that can be a relational or logical expression. This type
of expression uses one of the following operators as the highest precedence
operator in the expression:
>
> =
<
< =
= =
! =
&&
| |
!
When you use this type of expression with these commands, the command
becomes a conditional run. The debugger executes the command repeatedly
for as long as the expression evaluates to true.
You must use software breakpoints with conditional runs; the expression is
evaluated each time the debugger encounters a breakpoint. (Breakpoints are
described in Chapter 8,
Using Software Breakpoints.) Each time the debugger
evaluates the conditional expression, it updates the screen. The debugger
applies this algorithm:
top:
if (
expression = = 0) go to end;
run or single-step (until breakpoint,
ESC
, or mouse button halts execution)
if (halted by breakpoint,
not by
ESC
or mouse button) go to top
end:
Generally, you should set the breakpoints on statements that are related in
some way to the expression. For example, if you’re watching a particular
variable in a WATCH window, you may want to set breakpoints on statements
that affect that variable and to use that variable in the expression.
Summary of Contents for TMS320C6 Series
Page 10: ...x ...
Page 20: ...xx ...
Page 118: ...4 20 ...
Page 144: ...6 16 ...
Page 164: ...7 20 ...
Page 170: ...8 6 ...
Page 284: ...B 18 ...
Page 290: ...C 6 ...