
Use the Basic RUN Command / Set Some Breakpoints
2-16
Use the basic RUN command
The debugger provides you with several ways of running code, but it has one
basic run command.
Run your entire program:
run
The label in the COMMAND window changes
to COMMAND [RUNNING...] to indicate
that your program is executing.
Entered this way, the command basically means “run forever”. You may not
have that much time!
This isn’t very exciting; halt program execution:
Set some breakpoints
When you halted execution in the previous step, you should have seen
changes in the display similar to the changes you saw when you entered
go
main earlier in the tutorial. When you pressed
ESC
, you had little control over
where the program stopped. Knowing that information changed was nice, but
what part of the program affected the information?
This information would be much more useful if you picked an explicit stopping
point before running the program. Then, when the information changed, you’d
have a better understanding of what caused the changes. You can stop
program execution in this way by setting
software breakpoints.
Important!
This lesson assumes that you’re displaying the contents of
sample.c in the FILE window. If you aren’t, enter:
file sample.c
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 ...