User`s guide

Debugging for DSP56800E
Debugging in the Flash Memory
266
Targeting MC56F83xx/DSP5685x Controllers
The value for the set_hfmclkd command depends on the frequency of the clock.
If you are using a supported EVM, this value should not be changed from the value
provided in the default initialization file. However, if you are using an unsupported
board and the clock frequency is different from that of the supported EVM, a new
value must be calculated as described in the user’s manual of the particular processor
that you are using.
NOTE
The set_hfmclkd, set_hfm_base, and at least one
add_hfm_unit command must exist to enable flash
programming. All other flash memory commands are
optional.
set_hfm_base <address>
This command sets the address of hfm_base, which is where the flash control
registers are mapped in X: memory.
NOTE
The set_hfm_base and add_hfm_unit commands should
not be changed for a particular processor. Their values will
always be the same.
set_hfm_config_base <address>
This command sets the address of hfm_config_base, which is where the flash
security values are written in program flash memory. If this command is present, the
debugger used the address to mimic part of the hardware
reset behavior by copying the
protection values from the configuration field to the appropriate flash control registers.
add_hfm_unit <startAddr> <endAddr> <bank> <numSectors> <page-