background image

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

 

Содержание 56800E

Страница 1: ...56800E freescale com 16 Bit Digital Signal Controllers 56800E Flash Programmer User Guide 56800EFPUG Rev 0 09 2005...

Страница 2: ...56800E Flash Programmer User Guide Rev 0 2 Freescale Semiconductor Document Revision History Version History Description of Change Rev 0 Initial release...

Страница 3: ...eded to provide the interface between the JTAG OnCE interface of the target system and the computer The connection is outlined in the figure below Figure 1 Connecting the Target System to the PC via P...

Страница 4: ...flash after programming feature 2 56800E Flash Programmer Description The 56800E Flash Programmer runs under 32 bit Windows operating systems Before loading to the actual device the 56800E Flash Progr...

Страница 5: ...forms 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 o...

Страница 6: ...is option tells the CCS server the frequency kHz at which to run the JTAG interface The default value is 800kHz Faster clock speeds allow for faster programming but if the clock is set too fast the DS...

Страница 7: ...CCS server When connecting to a remote CCS server using the remote switch the remote server will be configured to use this LPT port Example fflash flash cfg my_appl S LPT1 2 1 1 10 p PORT Legacy Supp...

Страница 8: ...y by erasing ALL on chip Flash units of the DSC Please note the contents of ALL on chip Flash units are lost and cannot be recovered after performing this algorithm When the recover switch is provided...

Страница 9: ...ly specifying additional S Records or ELF files on the command line however using the t guarantees it will be the last S Record or ELF file loaded in the chain Example fflash flash cfg my_app S tseria...

Страница 10: ...n forces the 56800E Flash Programmer to wait until the DSC comes out of a Reset state This option is useful in situations where there is external circuitry on the proprietary target hardware prolongin...

Страница 11: ...figuration file was used Flash unit address Erased but still was not blank Flash unit page address Erased but still was not blank Flash unit address Verification Failed CRC32 CRC32 expected CRC32 Flas...

Страница 12: ...rror level exit status is provided for easier integration of the 56800E Flash Programmer into scripts and manufacturing process control systems Error level exit status gives the calling script informa...

Страница 13: ...he 56800E Flash Programmer 2 Ensure the settings are properly configured Please see Section 2 2 4 for more information 3 Select a S Record or ELF file to load using the button located on the GUI main...

Страница 14: ...tton allows the selection of a log file to save the contents revealed by the Details button Figure 2 4 Progress Dialog for Programming FLASH with Details Revealed 2 2 1 1 Erasure Mode Option There are...

Страница 15: ...his option locks the device after programming the device is completed The device is locked by writing a value of 0xE70A to the SECLO_VALUE location in Flash To support more complex features such as th...

Страница 16: ...ect a S Record or ELF file to load using the button 4 Press the Verify Button After pressing the verify button the Verification Dialog similar to the one illustrated in Figure 2 6 appears Figure 2 6 V...

Страница 17: ...stances such as viewing strings embedded on the device it is desirable to be able to swap the ASCII view Typically the ASCII view matches the hexadecimal view byte for byte When the Swap ASCII View is...

Страница 18: ...rmining how the device will be programmed and how to communicate with the device This procedure allows the selection of the Device Configuration File to be used Figure 2 10 Setting Dialog Box 2 2 4 1...

Страница 19: ...800E Flash Programmer connects to the CCS server at the Port 41475 However it is possible to specify a different port for connection This choice is useful when a connection to a CCS server is behind a...

Страница 20: ...ible 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 programme...

Страница 21: ...last unit Echo Press any key to load the next unit or Echo press Ctrl Break to abort PAUSE NUL GOTO TOP Explanation To run the program activate a command prompt and type LOADIT The batch file will att...

Страница 22: ...three different S Record files output_file p S contains data and code to be stored in program memory locations output_file x S contains data and code to be stored in data memory locations output_file...

Страница 23: ...have its contents verified with the CRC32 algorithm The speed of the CRC32 algorithm is based partially on the JTAG clock speed This speed only applies to the 56800E Flash Programmer Therefore if this...

Страница 24: ...ion on 32 bits of data The first assumption can be removed using the offset register N however this is a slight performance degradation as a result of adding this capability Define _CRC32_P_MEMORY and...

Страница 25: ...e final XOR crc crc32table crc 0xFF crc 8 impy w Y0 X0 B B Y0 2 Adjusts for crc32table being 32 bits wide lsrr l 8 Y crc 8 and l C B Removes junk added from impy w routine moveu w B1 R1 R1 B1 move l X...

Страница 26: ...0xdcd60dcfL 0xabd13d59L 0x26d930acL 0x51de003aL 0xc8d75180L 0xbfd06116L 0x21b4f4b5L 0x56b3c423L 0xcfba9599L 0xb8bda50fL 0x2802b89eL 0x5f058808L 0xc60cd9b2L 0xb10be924L 0x2f6f7c87L 0x58684c11L 0xc1611...

Страница 27: ...2bd0b28L 0x2bb45a92L 0x5cb36a04L 0xc2d7ffa7L 0xb5d0cf31L 0x2cd99e8bL 0x5bdeae1dL 0x9b64c2b0L 0xec63f226L 0x756aa39cL 0x026d930aL 0x9c0906a9L 0xeb0e363fL 0x72076785L 0x05005713L 0x95bf4a82L 0xe2b87a14L...

Страница 28: ...nfig_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 s...

Страница 29: ...an cause unpredictable programming results Additionally specifying an incorrect value for set_hfmclkd may cause permanent damage to the HFM preventing any future programming of the device An example o...

Страница 30: ...uit and specifically disclaims any and all liability including without limitation consequential or incidental damages Typical parameters that may be provided in Freescale Semiconductor data sheets and...

Отзывы: