
56800E Flash Programmer User Guide, Rev. 0
28
Freescale Semiconductor
Appendix C
Configuration File
The configuration file format matches the Metrowerks CodeWarrior interface. The file is simply a test file
describing how programmers should communicate with the device, and how the device is physically
constructed. The file allows a comment (‘#’) character. The following options are allowed in the
configuration file. Their behavior may be different for the Metrowerks CodeWarrior tool, especially for
options ignored by this tool.
:
Table C-1 Configuration File
Command
Description
Default
set_hfmclkd <divisor>
Value for HFM clock divisor register
0x14
set_hfm_base <address>
Base address of the HFM peripheral
0xFFF400
add_hfm_unit <start> <end> <bank>
<# of sectors> <page size> <pgm>
<boot> <interleaved>
Definition of a flash unit, see below for
more information
N/A
set_hfm_config_base <address>
Address of the HFM configuration area
0xFFF7
set_hfm_programmer_base <address>
Address of the PRAM area
0x2F800
set_hfm_verify_program <0/1>
Verify every word that is programmed
(slow)
0
set_hfm_verify_erase <0/1>
Verify erases are completed by reading
back the erased unit/page (slow)
0
unlock_flash_on_connect <0/1>
Performs a recovery when the
programmer connects to the device
regardless of/recover switch
0
set_hfm_erase_mode <all|unit|page>
‘all ’
will erase the entire device when
programming. Unit will only erase units
to be programmed to, and page will
erase only pages to be programmed
Unit
writepmem16 <addr> <value>
Writes a 16-bit value to an address in
program memory when the device is
sent into debug mode
N/A
writexmem16 <addr> <value>
Writes a 16-bit value to an address in
data memory when the device is sent into
debug mode
N/A
writereg <reg> <value>
Writes a register when the device is sent
into debug mode
N/A
target_code_sets_hfmclkd
Ignored
N/A
set_hfm_prog_buffer_base <address>
Ignored
N/A
set_hfm_prog_buffer_size <value>
Ignored
N/A