User`s guide
Debugging for DSP56800E
Command-Line Debugging
259Targeting MC56F83xx/DSP5685x Controllers
run test.tcl
NOTE You can use the run command to run a script that includes these
commands: load, close, debug, kill, and run. However, the
preceding commands cannot reside in a block (such as a loop).
For example, this script is invalid:
set x 0
while {$x < 5}
{
load a.mcp
debug
kill
}
save
Use the save debugging command to save the contents of specified memory
locations to a binary file or a text file in hexadecimal format.
Prototype
sa[ve] -h | -b addr_block ... filename [-a | -c | -o]
addr_block ::= address_first..address_last |
address#count
count ::= a value indicating the number of memory locations
The following list defines the first parameter to the save command:
• -h = write a text file in hexadecimal format
• When you save to a file in hexadecimal text format, the debugger saves the
memory location information in the file. Consequently, when you load a file
saved in this format, you do not have to specify the memory address.
• -b = write a binary file
• When you save to a binary file, the debugger does not save the memory location
information in the file. Consequently, when you load a file saved in this format,
you must specify the memory address.
The following list defines the last parameter to the save command: