User`s guide

Debugging for DSP56800E
Debugging in the Flash Memory
265Targeting MC56F83xx/DSP5685x Controllers
NOTE The following procedure explains how to connect in the context of
developing and debugging code on a target board. However, you can
select the
Debug > Connect command anytime you have a project
window open, even if you have not yet downloaded a file to your
target board.
To perform a system-level connect:
1. Select the
Project window for the program you downloaded.
2. From the menu bar, select
Debug > Connect.
The debugger connects to the board. You can now examine registers and the
contents of memory on the board.
Debugging in the Flash Memory
The debugger is capable of programming flash memory. The programming occurs at
launch, during download. The flash programming option is turned on and the
parameters are set in the initialization file. This file is specified in the
Debugger>M56800E Target preference panel. A list of flash memory commands is
given in the next section.
The stationery provides an example of how to specify a default initialization file, how
to write a linker command file for flash memory, and how to copy initialized data from
ROM to RAM using provided library functions.
Flash Memory Commands
The following is a list of flash memory commands that can be included in your
initialization file.
For more information on flash memory commmands and initialization of the flash, see
“M56800E Target (Debugging).”
set_hfmclkd <value>
This command writes the value which represents the clock divider for the flash
memory to the hfmclkd register.