background image

56800E Flash Programmer User Guide, Rev. 0

8

 Freescale Semiconductor

 

2.1.1.11   –page

Legacy Support

This option specifies a Page Erase mode should be used instead of the Mass Erase mode. This parameter 
is useful for in-field upgrades where parameters stored in on-chip Flash must be preserved. In this case, 
only pages containing addresses referenced by the S-Record file will be erased. As this option is 
deprecated, the –erase=X option should be used instead. This option is identical to –erase=page.

Example: 

fflash flash.cfg my_appl.s –page

2.1.1.12   –r<mem><start>:<end>

This option causes the contents of the DSC memory to be dumped to the specified S-Record file. If the 
output file already exists, it is overwritten.’<mem>’ specifies whether Data (‘X’) or Program (‘P’) memory 
should be dumped. Addresses, ‘<start>’ and ‘<end>’, are expressed in hexadecimal.

Examples: 

fflash flash.cfg readout_x.S –rX0x0:0xfff

 

fflash flash.cfg readout_p.S –rP0x0:0xfff

2.1.1.13   –recover

This option disables Flash Security 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 in combination with a S-Record, or ELF file, the program will first 
recover the Flash before programming the new S-Record, or ELF file onto the Flash.

Example: 

fflash flash.cfg –recover

fflash flash.cfg my_appl.S –recover

2.1.1.14   –remote=Address[:port]

By default, the 56800E Flash Programmer connects to the local computer’s CCS server and attempts to 
use it to program the DSC device. However, it is possible to program a device connected to a remote 
computer’s CCS server. When the remote option is specified, the address of the remote CCS server is 
required; nonetheless, the port is optional. The default value of the port is 41475. Changing the port value 
is useful when the CCS server is behind a firewall. Contact your network administrator for more 
information about which ports are open. 

NOTE: 

The IP address of the local computer is 127.0.0.1.

Examples:

Table 2-1 Typical Addresses Assigned to 

LPT Ports on IBM-PC Machines

LPT#

Base Address

LPT1

0x378

LPT2

0x278

LPT3

0x3BC

Summary of Contents for 56800E

Page 1: ...56800E freescale com 16 Bit Digital Signal Controllers 56800E Flash Programmer User Guide 56800EFPUG Rev 0 09 2005...

Page 2: ...56800E Flash Programmer User Guide Rev 0 2 Freescale Semiconductor Document Revision History Version History Description of Change Rev 0 Initial release...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 26: ...0xdcd60dcfL 0xabd13d59L 0x26d930acL 0x51de003aL 0xc8d75180L 0xbfd06116L 0x21b4f4b5L 0x56b3c423L 0xcfba9599L 0xb8bda50fL 0x2802b89eL 0x5f058808L 0xc60cd9b2L 0xb10be924L 0x2f6f7c87L 0x58684c11L 0xc1611...

Page 27: ...2bd0b28L 0x2bb45a92L 0x5cb36a04L 0xc2d7ffa7L 0xb5d0cf31L 0x2cd99e8bL 0x5bdeae1dL 0x9b64c2b0L 0xec63f226L 0x756aa39cL 0x026d930aL 0x9c0906a9L 0xeb0e363fL 0x72076785L 0x05005713L 0x95bf4a82L 0xe2b87a14L...

Page 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...

Page 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...

Page 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...

Reviews: