Command-Line Version
56800E Flash Programmer User Guide, Rev. 0
Freescale Semiconductor
5
1. fflash <flash config file> <S-Record/ELF file 1> [S-Record/ELF file 2] [.] [S-Record/ ELF file N]
[options]
2. fflash <flash config file> [options]
Certain operations, such as recovery, are performed when no S-Record or ELF file is provided.
The configuration files can be typically found in the following directory on the PC:
C:\Program Files\Metrowerks\CodeWarrior\M56800E Support\initialization
2.1.1
Options
Position of options on the command line is not fixed. They can be specified before, between, or after the
configuration and the list of S-Record ,or ELF files to be loaded.
All options with the text
Legacy Support,
indicate they remain to support the old
Flash over JTAG
application. These options are deprecated. They indicate what options should be used instead.
2.1.1.1
–crc
Performs a 32-bit cyclical redundancy check (CRC) from a start address to an end address, and reports the
32-bit CRC to the user. This can be used in conjunction with the –dumpvirtual to dump the 32-bit CRC of
a file without loading it onto the device.
Example:
fflash flash.cfg my_appl.S –crcP0x0-0x1fff
2.1.1.2
–d
By default, the tool resets the target after programming is concluded and program execution will occur.
This option forces the tool to leave the target in Debug mode, i.e. the downloaded code is not executed
immediately after programming.
Example:
fflash flash.cfg my_appl.S –d
2.1.1.3
–dumpvirtual
When used in conjunction with the –r/–v/–crc switch’s parameters, the contents of the virtual device on
the computer will be dumped to a S-Record, or ELF file, instead of reading the contents off of the actual
Digital Signal Controller (DSC) device.
Example:
fflash flash.cfg my_appl.S –dumpvirtual –vP0x0:0x1fff
2.1.1.4
–erase=<all|unit|page>
This parameter tells the programmer
how
the device should be erased by any one of three modes before
any programming occurs: