56800E Flash Programmer User Guide, Rev. 0
20
Freescale Semiconductor
TAP
. For Parallel Port devices, best results are achieved when the port is set to ECP mode. A typical time
needed for erasing, programming, and verification of the whole contents of program, data, and Boot Flash
units of the DSP56F8323 (24,576 words) with the
CodeWarrior USB TAP
, and with the JTAG clock set
to 800kHz, takes about 6 seconds. In the case when only a portion of the Flash Memory space is occupied
by the target 56800E Flash Programmer, the programming time will be proportionally shorter. The JTAG
clock speed can also have a dramatic effect on the programming speed, but if the JTAG clock speed is set
to a speed faster than the device can sustain, corrupted programming results.
2.3.1
Detailed performance information about Erasures
Currently, all DSCs using the 56800E core including the HFM (Flash Unit), have the following timing
characteristics:
Program Word: 20-40µs
Erase Page: 20ms (Fastest possible)
Mass erase: 100ms (Fastest possible)
However, due to overhead, the 568000E Flash Programmer performs a single page erasure about twice as
fast as a mass erase, therefore, a mass erase is faster if more than two pages are being programmed.
3. Advance Techniques
3.1 Partially Writing Over a Page/Unit
It is possible to program specific words of a device in the command line version. To program specific
words, run the program twice.
Example:
fflash 56801x_flash.cfg -rP0x0:0x1fff original.s
fflash 56801x_flash.cfg original.s patch.s
Explanation:
The first command dumps the entire program Flash to an S-Record called original.s. The second command
loads original.s and then overwrites only the contents patch.s programs into original.s, and then
reprograms the
entire
device, resulting in only the words defined in patch.s being programmed on the
device.
3.2 Automated Loading Using a Batch File
One of the primary functions of the command-line version is to allow loading of software onto a device
once it has been assembled in preparation for shipping to the customer. This section outlines how a small
batch file can be created to make this process easier. First create a file called loadit.bat with the following
contents:
Example:
@ECHO OFF
:TOP