Home

Flash Memory Programmer PG-FP5 Preliminary User`s Manual

image

Contents

1. lt 2 gt The target interface must be isolated from other devices using jumper switches or the like otherwise malfunction may occur Refer to CHAPTER 8 NOTES ON TARGET SYSTEM DESIGN CHAPTER 9 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS or the users manual of the target device Moreover monitor the actual waveform to confirm that the signal is not distorted and the signal level is correct Cause 2 Connection of pins for other than for the target interface may be incorrect Action 2 Refer to CHAPTER 8 NOTES ON TARGET SYSTEM DESIGN or the user s manual of the target device Cause 3 The PR5 file selected in the Parameter and Setting file area on the Target tab in the Device Setup dialog box may not be correct Action 3 Use the PR5 file that supports the target device For details on PR5 files refer to 1 3 Supported Devices and 4 3 3 12 a Parameter and Setting file area Cause 4 The clock may not be able to be supplied to the target device Action 4 lt 1 gt Check the settings in the Supply oscillator area on the Standard tab in the Device Setup dialog box For the correct settings refer to the supplementary materials for the PR5 file or the user s manual of the target device lt 2 gt Check the clock supply on the target system by means such as waveform monitoring Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 126 138 Cause 5 Power may not be supplied correctly to the ta
2. Connect Signature read Get security Settings Setup lt 2 gt The Device Setup dialog box Target tab is opened Figure 5 7 Device Setup Dialog Box Target Tab Target Standard Advanced Programming Area Setting Division patter Unknown 4 division 4 MB DIY 8 division 2 MB DIV o Target Setting Parameter and Setting file C Program Files NEC Electronics Toole4 PG FPS4 1 00 binsFP5_ PR l Unknown 78F1166 est New Save s Object HEX file C Program FilesSMEC Electronics Tools PG FPS44 7 00 bin Informationr e Clear Toolbar ZUD CD 07 0051 Ya 94 138 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 95 138 lt 3 gt Set the Programming Area Setting area In this example 4 divided Area 0 is selected Figure 5 8 Setting of Programming Area Setting Area Programming 4rea setting Division pattern lt 4 gt Click the button to create a new ESF file for the PD78F1166 Figure 5 9 Creation of New ESF File Save in FP5_PRi r S 78F 1166 es My Recent Documents My N File name FOF 1166 es Places save as type FPS setup files esf Cancel Parameter file 78F1166 pr5 lt 5 gt Select 78F1166 pr5 from the Parameter file list Figure 5 10 Selecting PR5 File Parameter file 70F3732 pr5 POFS 32 pro forU
3. Include this location in the search m Files NEC Electronics Tools PG FP5 W1 O0 driver Don t search will choose the driver to install Choose thie option to select the device driver from a list Windows does not guarantee that the driver you choose will be the best match for your hardware ek new 7 If the following window appears specify the same folder as specified in 6 for Copy files from and then click the button Figure 3 4 Files Needed Files Needed The file fpusb sys on FPS USB Driver Disk i needed K Cancel Type the path where the file i located and then click OF Copy files from Files NEC Electronics Tools PG FPS44 1 O0 driver w Browse 8 If the message Software has not passed Windows Logo testing or Windows can t verify the publisher of this driver software is displayed select Continue Anyway or Install this driver software anyway 9 The USB driver will then be installed the FP5 is ready to communicate via the USB port Click the button to complete the installation Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 23 138 Figure 3 5 Found New Hardware Wizard Window lt 4 gt Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for Flash Programmer FPS Click Finish to close the wizard Cancel Flash Memory Progr
4. Information on the PR5 or ESF file is missing in the INI file but a valid PR5 or ESF file is stored in the FP5 No PR5 or ESF file is stored in the FP5 but valid PR5 or ESF file has been detected because they are defined in the INI file The PR5 or ESF file is missing No valid PR5 or ESF file is defined in the INI file Store a valid PR5 or ESF file in installation foldenFP5 PRJ Select whether to update the firmware Click Ok to update the firmware Click Cancel to cancel the operation Select whether to update the FPGA Click Ok to update the FPGA Click Cancel to cancel the operation Select whether to change the factor for dividing the programming area After this operation all data will be lost The settings in the ESF file are insufficient or do not match the settings made in the FP5 Device setup is required The contents of the ESF file do not match those stored in the FP5 Select whether to open the Device Setup dialog box The firmware update will take several minutes ATTENTION Firmware update cannot be aborted The FP5 may not operate normally if proper firmware is not installed Select whether to update the firmware The FPGA update will take several minutes ATTENTION The FP5 may not operate normally if a proper FPGA is not installed Select whether to update the FPGA Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 132 138 12212 You must be careful
5. Target Setting Parameter and Setting tile C Program Files WEC Electronics Toole PG FP544 7 00 bins FPS_FRJ rereset a e Save ag r Object HEX file j C Program Filet HEC Electronice Tools PG FPS44 7 00 bin sample hes a Fri Feb 24 21 13 10 2006 Information warning Mot match FFS Area 2 Clear Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 71 138 b Standard tab in Device Setup dialog box On the Standard tab set the programming environment of the flash memory in the target device All basic settings to configure the user environment and the target device can be performed Communication channels speeds and the operation clock supplied to the target device vary depending on the device so refer to the user s manual of the target device for setting these items This tab consists of the following items lt 1 gt Communication interface to device area lt 2 gt Supply oscillator area lt 3 gt Operation Mode area lt 4 gt Defaults button Figure 4 50 Device Setup Dialog Box Standard Tab Setup Target Standard Advanced Communication interace to device Supply oscillator Frequency 5000000 l Pulse number 11 On Target Hz lt 2 gt Speed 5000kHz Multiply rate C Internal Direct mode f PLL mode 4 00 lt 1 gt Operation Mode e Chip C Block Start lt 3 gt T Area Ea M Sho Defaults lt 4 gt C
6. a banana jack and a spade terminal Caution The FP5 and target system may be damaged if the voltage between the FP5 GND and the target system GND is different Use the GND cable to match the voltage before connecting the target cable Figure 7 14 GND Cable Outline i Banana Jack Spade terminal Part number of banana jack TJ 2167 made by Sato Parts Co Ltd Part number of spade terminal BPF1 25 3 red Daido Solderless Terminals Mfg Co Ltd Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 116 138 CHAPTER 8 NOTES ON TARGET SYSTEM DESIGN This chapter explains the basic notes on the target system for writing to the flash memory in the target device using the FP5 Target Device Pin Recommended Design Common item e When connecting the FP5 output signal pins refer to CHAPTER 9 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS and pull up or pull down with a resistance in compliance with the device specifications Vin Vit e When connecting the FP5 input signal pins refer to CHAPTER 9 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS and pull up or pull down with a resistance in compliance with the device specifications lon lot RESET Do not connect the RESET signal generator on the target system to the RESET signal of the FP5 Otherwise a signal conflict will occur To avoid a conflict isolate the RESET signal generator from the RESET signal of the FP5 Do not generate RESET while the FP5
7. 05 00 Security flag settings Disable Chip Erase Vdd 00 00 Disable Block Erase On Target ga 14 fain te Disable Program FLMDO Vdd fE CLE Wad oo Disable Boot block cluster reprogramming RESET Vdd 5 erial Cut Vdd oo m Block protection Boot Block end ft Serial In dd FS Block start 0 FS Block end Command options lf Blank check before Erase Show Address Verify after Program Security after Program Reset vector setting Checksum after Program Reset vector E gogi h Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 61 138 12 Setup command JD memory programming set command options and perform security settings Each time the programming GUI When the Setup command is executed the Device Setup dialog box is opened In this dialog box select a program file perform settings in accordance with the user environment for flash is started the programming GUI loads the PRS5 file ESF file and program file that were used last and displays the settings Settings for the items not dimmed can be changed in accordance with the user environment Switch the Target Standard and Advanced tabs for setting Figure 4 37 Device Setup Dialog Box Target Standard Advanced Programming Area Setting Division pattern Unknown Target Setting Parameter and Setting tile C Program Files MWEC Electronics Toole PG FP544 7 00 bins FPS PR
8. 78F1166 esf 2 New Save ag Object HEX file C Program FilesSMEC Electronics Tools PG FPS44 7 O0 bin sample hes Ea Fri Feb 24 21 13 10 2006 Information a Clear Remark e PRd file parameter file PR5 files parameter files contain parameter information required for writing programs to the flash memory in the target device Do not change the PR5 file data because it affects assurance of written data otherwise the programming GUI will not recognize the PR5 file e ESF file customized setup file ESF files customized setup files contain the programming environment settings specific to the user environment and PR5 file names If the file contains invalid contents the programming GUI will not recognize the ESF file Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 62 138 When the button button common to Target Standard and Advanced tabs is clicked program areas are cleared and PRS5 files ESF files and program files are downloaded for the FP5 After that the settings made on the Target Standard and Advanced tabs are saved into an ESF file These settings are reflected to the programming parameter window If there are settings which have not been updated the files related to the settings are not downloaded When a program file is downloaded the date and checksum of that file are displayed in the action log window The checksum is calculated as shown
9. Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 105 138 6 3 Standalone Operation Menu In standalone mode the programming environment of the target device can be checked and then programs can be written by using the commands explained in this section 6 3 1 Commands menu The Commands menu provides various commands required for programming the target device Select a command from this menu and press the ENTER button the FP5 will then execute the command for the target device based on the settings downloaded to the valid programming area For details on command execution refer to 4 4 3 Device menu Table 6 1 Commands Menu Main Menu Submenu Description Commands gt Pressing the button executes the Program command Erase gt Pressing the ENTER button executes the Erase command Pressing the ENTER button executes the Verify command Pressing the ENTER button executes the Security command Verify gt Security gt Checksum gt Pressing the ENTER button executes the Checksum command The checksum value read from the target device is displayed in the message display Display example Checksum 623E Blank check gt Pressing the ENTER button executes the Blank check command Signature gt Pressing the ENTER button executes the Signature read command The device name is displayed in the message display Displa
10. Name Versioni Name Date Mame Date Address Type Address Value Hame Fort Pulse Num Speed Ydd Freg Multiply Mode Range roF1166 pr5 W1 00 roF1166 esf wed Mar 28 23 50 39 2007 Download file sample hex Fri Feb 24 21 13 08 2006 OOO000 007FFF File checksum Target device foF 1166 UART 0 1 000 O00 bps 05 00 FPS Internal Osc T arget 1 00 Flash Memory Programmer PG FP5 Preliminary User s Manual 7 Execution of Autoprocedure E P command Execute the Autoprocedure E P command in the Device menu Figure 5 17 Autoprocedure E P Command Blank check Erase Program Wer ify Ver Firmware Versa Board HeW V1 l Serial Ho F Security gt Checksum Roa saa o Sutoprocedure E F3 gt downset Signature read H loadi a Or ee Get Security Settings Setup lod name ZUD CD 07 0051 Toolbar 100 138 When the Autoprocedure E P command is executed the Blank check Erase if the target area is not blank and Program commands are executed in that order for the uPD78F1166 Remarks 1 If necessary insert the target device to be newly written to in the program adapter and execute the Autoprocedure E P command 2 Turn off power connect the target system to be newly written to and execute the Autoprocedure E P command after power is supplied before supplying Vpp Vpp2 power from the target system
11. Write OK EPV OK Mon Feb 26 15 56 36 2007 Figure B 4 Division Original Calculation Specifications define BLOCKSIZ 256 You have to store 1 Block ROM data unsigned char rom_data BLOCKSIZ unsigned char bist cale Pie 1y unsigned short bist bist_temp Dist 03 for i 0 i lt BLOCKSIZ i bist_temp bist amp 0x1 bist_temp bist_temp lt lt 8 bist_temp lt lt 9 bist_temp lt lt 11 bist_temp lt lt 12 bist bist gt gt 1 rom_data i bist_temp return unsigned char bist Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 138 138 APPENDIX C REVISION HISTORY Document Number ZUD CD 07 0051 April 5 2007 Newly created
12. Communication within host PC and FlashProgrammer is An error occurred in communication between the host machine and the FP5 Check the cable connection and FP5 power supply Can t setup communication within host PC and Communication between the host machine and FP5 cannot be FlashProgrammer established Check the cable connection and power supply Moreover check if the USB driver is installed correctly E1102 Can t find parameter file The specified PR5 file could not be found E1103 Open parameter file failed The specified PR5 file cannot be opened E 1105 Unable to open last active PRM SET file Using most The PR5 ESF file in the valid programming area cannot be opened recent settings The latest setting will be used E 1106 Firmware is not valid or version is lower than requirement Incorrect version information or an old version was detected Update the FP5 firmware The factor for dividing the programming area does not match the one defined in the INI file Select whether to reset the division E1107 Parameter area format is not match with initial file Do you want reset parameter area format E1108 No invalid Parameter file defined GUI can not work properly E1201 Invalid file E1202 lt Setting file name gt is not valid Using most recent settings E1203 lt Parameter file name gt is not valid Using most recent settings E1204 Download of parameter file failed E1205 Download of setting fi
13. E Frs Belg File Programmer Device Help gt tcks ar U Frogrammer Checksum Code 00000 JFFFF 6623H FPA GUI v1 00 gt Firmware 71 00 Frog Area D Parameter and Setting file Mame oF 1166 pro Version w100 Name ToF1166 esf Date Wed Mar 28 79 01 29 2007 Download file Name sample hex Date Fri Feb 24 21 13 08 2006 Address Q00000 007FFF File checksum Arthmetic checksum 16 bit OO0000 03F FFF B23E Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 43 138 Figure 4 11 Checksum Result lt If Downloaded PR5 File Is for Target Device That Supports Data Flash gt rEcks ari O YEELE 400000 40ttftt Programmer Checksum Code OO0000 07FFFF FPS GUI 1 00 Checksum Data 400000 40FFFF Firmware 7 00 Checksum Total 623E Frog Area D Parameter and Setting file Mame T F3380 pr5 Yersion W700 Name FOF S380 est Date Wed Mar 28 20 14 08 2007 Download file Name sample hex Date Fri Feb 4 21 13 08 2006 Code flash 000000 007FFF Data flash File checksum Type Arithmetic checksum 16 bit Code flash 623E 000000 0 7FFFF Data flash O000 400000 40FFFF Total BA 3E 3 Quit command The Quit command terminates the programming GUI The programming GUI can also be terminated by clicking the button on the right end of the title bar in the main window When the programming GUI is terminated various settings are saved in the INI file
14. Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 101 138 If execution of the Autoprocedure E P command is normally completed Erase Program OK is displayed in the action log window Figure 5 18 Device Help rA UKS Firmware Version V1 00 Board H W 1 FPGA V1 Serial Ho HEEXHHNENHEX gt gt downprm How loading JE rdownset How loading JE gt lod fname sanple hes ftime 2006 O02 24 21 13 Preparing storage OK How loading Address range OxUOUOU0U0 to x FFFF CRC3Z JE rep Blank check Chip ERROR Not Blank Erase needed Erase Chip OF Erase OF Write Chip Los For Help press FI OxG61DS5Fa67C FPS GUI Firmware Prog Area Autoprocedure E P Command Execution Result Seles Programmer W100 W100 0 Parameter and Setting file Mame Version Mame Date Mame Date Address Type Address Value Hame Fort Pulse Num Speed Wedd Freq Multiply Mode Range roF1166 pr5 V7 0 foF 1166 est Wed Mar 20 23 50 39 2007 Download file sample hex Fri Feb 24 21 13 08 2006 OOO000 00FFF File checksum Target device oF 1166 UART 0 1 000 O00 bps 05 00 FPS Internal Osc T arget 1 00 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 102 138 8 System shutdown lt 1 gt Remove the program adapter from the target cable Remark Turn off power and rem
15. Fort Pulse Num Speed Ydd Freg Multiply Mode Range roF1166 pr5 W1 00 roF1166 esf Wed Apr 04 23 53 02 2007 Download file sample hex Fri Feb 24 21 13 08 2006 OOO000 00FFF File checksum Arthmetic checksum 16 bit OOO000 03F FFF B23E Target device ToF1166 UART 0 1 000 O00 bps 05 00 FPS Internal Osc T arget 1 00 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 90 138 CHAPTER 5 EXAMPLE OF OPERATION USING PROGRAMMING GUI This chapter explains a series of basic FP5 operations using the programming GUI taking a case where the uPD 8F 1166 is used as the target device as an example This chapter covers how to start the system execute the Autoprocedure E P command and program the target device For the other commands and applications refer to CHAPTER 6 USAGE IN STANDALONE MODE e Series of operations described in this chapter The operation conditions for this chapter are as follows Host machine interface USB Programming area Divided by 4 Area 0 Target device UPD78F1166 with program adapter Communication channel UART 1 MHz Clock setting None Internal OSC Internal Direct mode Operation mode Chip Supply voltage Supplied from FP5 5 V Command option Blank check before Erase enabled Security setting Not used The operation steps described in this chapter are as follows Installation of programming GUI 1 2 Installation of PRS
16. menu on the menu bar and select Update Firmware the Update Firmware dialog box will then be opened Figure 3 6 Update Firmware Command aeae Device Help Setup host connection Logging Select Programming area syed Buzzer Firt Reset Boas aa nelf Test Update Firmware Update FPGA Figure 3 7 Update Firmware Dialog Box Update Firmware I 2210 Updating the firmware will take several minutes ATTENTION The process of updating your Firmware must WOT be interrupted Without Firmware this FPS SUI will WOT run properly Install new Firmware in your programmer Cancel Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 28 138 2 Click the button to continue firmware update The Open firmware file dialog box is opened Figure 3 8 Open firmware file Dialog Box Open firmware file Look in 9 firmware My Recent Documents E Deskto My Documents My Computer gt My Network File name lip fa v 00 rec Places e Files of type S rec Hes files rec s hens rec hest Cancel Select the firmware file fp5_fw_vxxx rec and then click the button Caution Do not use FP5 firmware other than the one posted on the website otherwise a defect may occur Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD
17. 00000 h Reset vector text box If the Security command is executed with an arbitrary address value input the reset vector is changed to the specified address This setting is cleared if the Erase command is executed with Chip selected in the Operation Mode area The initial setting is 000000h Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 84 138 4 3 4 Help menu Clicking the Help menu displays the following pull down menu Figure 4 63 Help Menu lt 2 1 Help Topics command The Help Topics command opens the FP5 help file 2 About FP5 command This command opens the following dialog box and shows the versions of the programming GUI Clicking the OK button closes this dialog box Figure 4 64 About FP5 Dialog Box About FPS FPS Version 1 00 Copyright 2 2005 2007 NEC Electronics Corporation All rights reserved Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 85 138 4 4 Toolbar The commands frequently used with the programming GUI are displayed as buttons on the toolbar A command can be executed just by clicking the relevant button Some commands may be unavailable depending on the PR5 file selected or when the programming GUI is started for the first time By pointing to a button with the pointer the hint for the button is displayed on the hint bar Table 4 3 Toolbar Buttons Opens the
18. 600Baud e 6800Baud e 115200Baud e 128000Baud e 153600Baud e 250000Baud e 500000Baud e 1000000Baud lt When SIO chO SIO ch1 SlIO ch2 SIO H S or CSI Internal OSC is selected gt e 9 8kHz e 156kHz e 625kHz e 2500kHz e 5000kHz lt When IIC chO IIC ch1 IIC ch2 or IIC ch3 is selected gt e 10kBaud e 20kBaud e 50kBaud e 100kBaud lt When Port chO Port ch1 or Port ch2 is selected gt e 100Hz e 200Hz e 300Hz e 400Hz e 500Hz e 600Hz e 800Hz e 1000Hz e 1200Hz e 1500Hz e 2000Hz Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 74 138 IIC Address area If C is selected as the communication channel input a hexadecimal number as a slave address of the target device The valid input range is 8 to 77H Do not input a unit The slave address can be any value in the above range but must not be the same as the slave address of another target device on the IC This field is not available if the I C port is not selected lt 2 gt Supply oscillator area Set the clock to be supplied to the target device Figure 4 52 Supply oscillator Area Supply oscillator Frequency 5000000 On Target Hz Z Multiply rate hternal Direct mode f PLL mode 4 00 Frequency text box Set the oscillation frequency of the clock supplied to the target device When using the clock mounted on the target system On Target check box selected input its oscillation frequency When using the clock on the FP
19. Area Target Setting Parameter and Setting file C Program Files NEC Electronics Toole PG F PSW 00 hingF Ph PRA TSF 1 lGif est 7 Mew Save Ag Object HEX file C Program Files NEC Electronics Tools PGi F PSW O0 bin sa mp le hex i Fri Feb 24 27 13 08 2006 Infor mation e Clear lt 3 gt Parameter and Setting file area In this area ESF files can be created and selected and PR5 files can be selected Figure 4 42 Parameter and Setting file Area Parameter and Setting file C Program Files NEC Electronics Toole PG F PSW 00 bm F PS PRA TSF 1 lGif est P Mew Save Ag ESF file selection list box Select the ESF file to be used If no ESF files are registered in the valid programming area ESF files stored in the FP5_PRJ folder in the programming GUI installation folder are displayed If the reference folder is changed by using the or button ESF files stored in the changed folder are displayed Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 66 138 A button Click this button when specifying an ESF file stored in a folder other than the FP5_PRJ folder in the programming GUI installation folder A dialog box for specifying the ESF file will be displayed Specify the relevant file and then click the button Figure 4 43 ESF File Select Dialog Box Look in FP5_PRY BER 166 e5F My Recent Documents Desktop My
20. Arithmetic checksum 16bit 16 bit arithmetic subtraction CRC sum 32bit 32 bit CRC Remark With the 16 bit arithmetic subtraction mode the lower 4 digits of the result from which a value is subtracted from OOh in 1 byte units are displayed With 32 bit mode the 8 digit result of CRC32 function calculation is displayed For details on arithmetic specifications refer to Figure B 2 32 bit CRC Calculation Specifications lt 3 gt Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 42 138 lt 3 gt Address range selection Select the range for calculating checksum of the selected program file If there is no program file data in the specified range the specified range is filled with FFh for calculation Device Area From the start to end addresses of the device which are contained in the selected PR5 file User Defined Any range can be specified by inputting the addresses to the Start Address and End Address text boxes Clicking the button displays the calculation result in the File Checksum area in the action log window and programmer parameter window Clicking the Cancel button closes the dialog box without saving the settings made in the Checksum dialog box Remark When the valid programming area is changed or a program file is downloaded the checksum result will be cleared Figure 4 10 Checksum Result lt If Downloaded PR5 File Is for Target Device That Does Not Support Data Flash gt
21. CONNECTORS AND CABLES Caution The FP5 and target system may be damaged if the voltage between the FP5 GND and the target system GND is different Use the GND cable to match the voltage before connecting the target cable Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 19 138 CHAPTER 3 SOFTWARE INSTALLATION This chapter explains the following items related to installation e Obtaining software e Installation e Uninstallation e Updating programming GUI firmware and FPGA 3 1 Obtaining Software Download the programming GUI USB driver and FP5 parameter file PR5 file from the following NEC Electronics website URLs Japanese version http www necel com micro ods jpn English version http www necel com micro ods eng Click Version up Service lt Programming GUI including USB driver gt Click FlashProgrammer in the Each Development Tool column and then click FP5_ GUI lt PR5 file gt Select the microcontroller to be used in the Each Device Series column and select the device name in the Device Name column the FP5 parameter file can then be found Caution Use of the latest version of software is recommended to assure the FP5 operation 3 2 Installation This section explains the installation procedure for the programming GUI USB driver and parameter file PR5 file Table 3 1 Installation Installation Order Method Programming Run the downloaded executabl
22. Documents My Computer My Network File name 78F1166 esi M Places Files of type FP5 setup files est Cancel Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 67 138 New button Click this button to create a new ESF file The following dialog box will be displayed Figure 4 44 New ESF File Creation Dialog Box Save in FP5_PR 4 ee Ex 2 78F1166 esf My Recent Documents T Desktop My Documents hy Computer _ My Network File name FSF 1166 est Places m Save as type FPS setup files esf Cancel Parameter file 79F1166 pr5 The PR8d file stored in the FP5_PRJ folder in the programming GUI installation folder is displayed in the Parameter file list Select the PRS file for the target device used After selecting the PRS file input the new ESF file name and then click the button Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 68 138 button Clicking this button opens the dialog box for overwriting the current settings made in the Device Setup dialog box to the existing ESF file or saving as another file Specify the file and then click the button Figure 4 45 Save as Dialog Box Save Ir 5 FPS PAJ ki E 78F1166 esf My Recent Documents iF Desktop e My He File name Places for 1166 esf save as type FPS setup files est noel lt 4 gt
23. H S Pins FP5 Vbpb 33 Q 74LV125 Self testing LF circuit FP5 Vbpb Signal input TALV129 circuit gt EMZ6 8 E Target System Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 121 138 9 3 CLK It is recommended to supply the target device operating clock from the target system When supplying the target device operating clock from the FP5 communication may not be performed normally due to the waveform distortion caused by wiring of clock lines on the target system In such a case add elements such as CMOS buffers to the target system as necessary so as to adjust the waveform Figure 9 3 CLK Pins FP5 Vbb or FP5 Vbpb2 74LV125 NFL21SP506 33Q necessary Signal output Signal siete e CMOS buffers if Target System 9 4 FLMDO and FLMD1 Figure 9 4 FLMDO and FLMD1 Pins FP5 Vbpb 74LV125 f gt Signal Signal output circuit Self testing T4ALV125 circuit Lu ba N Lu Target System Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 122 138 9 5 VDD and VDD2 When supplying Vpop and Vpp2 from the target system the FP5 internal power supply and the external voltage regulator is protected by a transistor Figure 9 5 Vpp and Vpp2 Pins FP5 Vbpb or FP5_Vpbb2 p gt Voo or Vpp2 Voltage detector Target System 9 6 VPP Figure 9 6 Vpp Pin FPS_VPpp Transisto Voltage detector Tar
24. Remote Interface Test FASS Figure 4 19 Example for When Self Testing Result Is FAILED lt Action Log Window gt gt selftest PERK CAUTION e Remove any plugs from Target and Remote Connector before starting Any hardware attached to those connectors may be damaged by this test Xek CAUTION e Target and Remote connector unplugged If yes press s to start the test s FPGA Test PASS Power Supply Test PASS Target and Remote Interface Test FAIL Selftest FAILED gt Figure 4 20 Example for When Self Testing Result Is FAILED lt Result Dialog Box gt self test FPS Self test FAILED FPGA Test PASS Power Supply Test FASS Target and Remote Interface Test FAIL Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 49 138 7 Update Firmware command The Update Firmware command updates the firmware Refer to 3 4 Updating Programming GUI Firmware and FPGA and download the relevant update file before starting update Executing of this command displays the following dialog box Figure 4 21 Update Firmware Dialog Box Update Firmware I 2210 Updating the firmware will take several minutes ATTENTION The process of updating your Firmware must WOT be interrupted Withouk Firmware this FPS SUIT will WOT run properly Install new Firmware in your programmer Cancel To continue the firmware update click the button Clicking the button canc
25. The Save As display varies whether or not the downloaded PR5 file is for the target device that supports data flash Figure 4 8 Save As Dialog Box of HEX Editor The downloaded PR5 file is for a target device that does not support data flash Save in O HEX d c Eg lE sample hex Save as lype HEX Files HE Cancel f Intel HEX C Motorola SREC Start address E End address The downloaded PR5 file is for a target device that supports data flash Save int HEX ey Eg el sample hex File name le Save as type HEX Files HE Cancel f Intel HE f Motorola SREC If Code flash area Data flash area Start address E End address FFF Besides the file name and folder location a start address and an end address for the new file can be selected in the Save As dialog box The original start address and end address are displayed by default Select the file radio button for the format in which to save the data Select the same format as that of the loaded file Use of the saved file with other tool products is not supported Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 41 138 Remark For the saved program file contents of the data flash area refer to Figure B 1 Relationship Between HEX Editor and Saved Program File 2 Checksum command
26. USB mini B type connector and USB type A connector Figure 7 7 GND Cable External View a O a Lie USB mini B type USB type A Flash Memory Programmer PG FP5 Preliminary User s Manual 7 4 Target Connector The target connector 15 pin HD SUB female connector is laid out on the target connector side of the FP5 Target connector 5 1 oye 15 11 Table 7 2 Target Connector Pin Configuration Se o a o Se o ZUD CD 07 0051 Figure 7 8 Target Connector lt FP5 Target Connector Side gt Figure 7 9 Target Connector 15 Pin HD SUB Female Connector Pin Assignment 113 138 Part number of target connector 15 pin HD SUB female connector 070431FB015S200ZU Suyin Connector Corp Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 114 138 7 5 Target Cable The target cable is a standard shielded cable approximately 42 centimeters long The target cable is equipped with a 15 pin HD SUB male connector and a 16 pin 2 54 mm pitch multipurpose female connector Figure 7 10 Target Cable Outline 16 pin 2 54 mm pitch multipurpose female connector 15 pin HD SUB male connector Figure 7 11 15 Pin HD SUB Male Connector Pin Assignment 11 1 15 epef 5 10 Figure 7 12 16 Pin 2 54 mm Pitch Multipurpose Female Connector Outline View from Socket Side pif 3 s 7 9 411 13 15 2446 8 10 12 14 16 Table 7 3 Target Connector Pin Configurati
27. area on the Advanced tab in the Device Setup dialog box on Selected off Not selected PRG disable Displays the setting of the Disable Program check box in the Security flag settings area on the Advanced tab in the Device Setup dialog box on Selected off Not selected READ disable Displays the setting of the Disable Read check box in the Security flag settings area on the Advanced tab in the Device Setup dialog box on Selected off Not selected Boot Blk PRG dis Displays the setting of the Disable boot block cluster reprogramming check box in the Security flag settings area on the Advanced tab in the Device Setup dialog box on Selected off Not selected Reset Vector Displays the setting of the Reset vector check box in the Reset vector settings area on the Advanced tab in the Device Setup dialog box Display example Reset vector Addr 0x000000 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 108 138 Option Setting gt End Boot Blk Displays the setting of the Boot Block end check box in the Block protection area on the Advanced tab in the Device Setup dialog box Display example End Boot BIk 0 FS area Displays the setting of the FS Block start and FS Block end check boxes in the Block protection area on the Advanced tab in the Device Setup dialog box Display example FS area 0 to 127 6 3 4 Voltage Setting menu T
28. below For details of the arithmetic specifications refer to Figure B 2 32 bit CRC Calculation Specifications Method 32 bit CRC Range From the start to end addresses in the program file When the button button common to Target Standard and Advanced tabs is clicked the dialog box is closed without saving changed settings on the Target Standard and Advanced tabs into an ESF file Figure 4 38 Clearing of Programming Area PR5 Files and ESF Files and Download of Program File Weres ia fx File Programmer Device Help f gt progarea clear 0 Programmer gt FPS GUI 1 00 Firmware 71 00 Prog rea Parameter and Setting file Name ToF1166 pr5 OK Versiory W700 Mame TOF1166 esf gt lod fname sample hex ftime 2006 O02 24 21 13 Date Wed Mar 28 19 01 29 2007 Preparing storage OK Download file How loading Name sample Hex WAddress range Ox000000 to Os007FFF CRC32 Ox61DSF67C Date Fri Feb 24 21 12 08 2006 a BE Address QO0000 007FFF File checksum Type Address Value Target device Name FOF 1166 Port UART Pulse Mum Speed 1 000 O00 bps Wide 05 00 FP5 Freq Internal Osc T arget Multiply 1 00 Mode Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 63 138 a Target tab in Device Setup dialog box Settings related to programming areas PRO files ESF files and program files can be performed on the Target tab in the Device Setup
29. cable Approximately 3 m cross cable Target Target connector Connector 15 pin HD SUB female connector Soa Protected function Internal overvoltage input protection circuit interface Supported communication mode and rate 3 wire serial I O CSI 5 0 MHz max 3 wire serial I O with handshake CSI HS 5 0 MHz max Pseudo 3 wire I O 2 0 kHz max UART 1 Mbps max I C 100 kHz max Target cable Cable length Approximately 42 cm FP5 side 15 pin HD SUB male connector Target system side 16 pin 2 54 mm pitch multipurpose female connector Note 2 Power supply Target VDD power supply 1 5 to 6 0 V max 200 mA Internal overcurrent detection circuit Power supply detection Available Current consumption 1 mA or less CPU clock supply 1 MHz 2 MHz 4 MHz 5 MHz 6 MHz 8 MHz 9 MHz 10 MHz 12 MHz 16 MHz 20 MHz GND cable Approximately 1 m Notes 1 The maximum communication speed in the interface may vary depending on the device and environment used 2 Vop for the target system is supplied for the purpose of supplying power to the target device through which writing is performed so the specification cannot secure sufficient capacity to operate the target system Use the power source on the target system when performing on board programming Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 14 138 CHAPTER 2 HARDWARE CONFIGURATION This chapter explains the following items for hardware con
30. each product e The power supplied to the target device is stable 1 3 Supported Devices The FP5 supports on chip 2 power supply flash memory microcontrollers and on chip single power supply flash memory microcontrollers FP5 parameter files PR5 files corresponding to the supported devices are posted on the following website URLs Japanese version http www necel com micro ods jpn English version http www necel com micro ods eng Click Version up Service Select the microcontroller to be used in the Each Device Series column and select the device name in the Device Name column the FP5 parameter file can then be found Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 10 138 1 4 FP5 System Overview The FP5 system overview is shown in the following diagrams Figure 1 1 FP5 Connection Image Serial cable Seg on Tr iii USB cable AC adapter Target cable Target system or program adapter lt Programming GUI operation gt Figure 1 2 FP5 Function Overview HEX editor changes the memory contents Checksum calculation p Self testing function KEZD Programming environment setting Saved in FP5 internal flash memory Standalone operation NJ Built in 16 MB flash memory for saving program files Files are divided by 4 in 4 MB units or divided by 8 in 2 MB units Programmin
31. execution do not execute other commands or terminate the programming GUI 4 3 1 File menu The following pull down menu appears by clicking the File menu This menu includes commands related to program file operation Figure 4 5 File Menu Programmer Hex Editor 1 2 3 Checksum muit 1 Hex Editor command The Hex Editor menu allows you to edit a program file in Intel HEX format or Motorola HEX format When this command is executed a HEX Editor select dialog box is opened and the file to be edited can be specified Figure 4 6 HEX Editor Select Dialog Box Look in HEX e Ea iraa E sample hex My Recent Documents Places Files of type HEX Files HE Cancel HEX Files HEX SREC Files REC or All files may be selected from the Files of types list box After selecting a file to be opened the file selected in the HEX Editor main window is loaded At this time whether the file is of the Intel HEX format or Motorola HEX format is automatically recognized When loading is finished the HEX Editor main window is opened Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 39 138 Figure 4 7 HEX Editor Main Window tf Editor C HEX sample hex Seles File Go to B C O E F 0123456 89ABCDEF 61 00 61 00 81 O00 ELE LEE LL TELE EEE LL dlc Ic I E Poe Pe Es EE nEs Foe Bi
32. is out of range The selected clock value is smaller than the minimum value defined in the PR5 file 12415 The selection is out of range The Vdd value exceeds the range defined in the PR5 file 12416 The selection is out of range The Vdd2 value exceeds the range defined in the PR5 file 12417 The selection is out of range The selected value is out of the valid range 12418 Input data is out of range The selected clock value exceeds the range defined in the PR5 file this selection Anyhow boot block protection is number is larger than half the total block numbers defined in the 12419 Caution Boot Block swapping will not be possible with Boot swapping is not available because the selected block possible PR5 file Boot block protection can be enabled 12601 Buffer is modified Are you sure to close The HEX Editor temporary file has been changed This change is lost when the HEX Editor is closed 12602 This file is not valid The file selected by the HEX Editor is invalid 2603 End record not found created The end record is missing The HEX editor will add the HEX format end record 00000001FF to the file 12604 Save Select whether to save the data Click Ok to save the data Click Cancel to not save the data The file is modified Are you sure to quit The file has been modified Select whether to abort the operation Click Yes to abort without saving changes Click No to continue the operation 1
33. lt command name gt Running of the command name command has failed Illegal address The range of the data storage address is invalid The start address may be larger than the end address E1524 Data error Abort DATA Check A data error has been found in the program file Data checking was aborted E1525 Temporary file could not be read Abort Save File Opening of the temporary file has failed The file may be corrupted E1526 Error line lt line number gt A data count error has occurred in line ine number The program Data Count error Abort Data Count Check file format may be incorrect E1527 Cannot open temporary file Opening of the temporary file has failed The file may be corrupted E1528 File Save error Abort Save File Saving the file has failed E1529 lt line number gt Check sum error Continue A checksum error has occurred in line ine number The program file format may be incorrect Select whether to continue the operation the range 0 to 420000h E 1530 Too large address Edit range 0 0x420000 The program file address is too large Set an address value in Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 130 138 E 1531 Data Flash format error lt data address gt Invalid ID The data flash format is invalid Valid 4 bytes are followed by an Tag ID tag of 4 byte FFh or 4 byte 00h in the data flash area An error occurs if the ID tag includes defects or FFh or O
34. mode the lower 4 digits of the result from which a value is subtracted from 00h in 1 byte units are displayed lt When using a 78KOS Kx1 microcontroller or u PD78F9334 gt Method Division original Range Area set in the Operation Mode area on the Advanced tab in the Device Setup dialog box Figure 4 34 Action Log Window After Checksum Command Execution lt When using 78K0S Kx1 microcontroller or PD78F9334 gt gt sum Device Checksum 0x1842 FP5 Checksum 0x1842 Checksum compare OK gt Remark For details on the arithmetic specifications refer to Figure B 4 Division Original Calculation Specifications 8 Autoprocedure E P command aN Program commands The target area can be set in the Operation Mode area on the Standard tab in the The Autoprocedure E P command executes the Erase and Program commands in succession Exiting from the flash memory programming mode is not possible between the Erase and Device Setup dialog box The progress status of this command is displayed in the action log window When execution of this command is completed the programming GUI displays the result of command execution in the target device Command options after execution of this command depend on the settings of the Blank check before Erase Verify after Program Security after Program and Checksum after Program check boxes in the Command options area on the Advanced tab in the Devi
35. particular set the Communication interface to device area and Supply oscillator area in accordance with the specifications of the device selected Specify a flash memory range to be manipulated in the Operation Mode area the flash memory range that can be set is defined by the PR5 file according to the specifications of the device In this example it is assumed that the following settings are made Communication Interface to device area Port UART Speed 1Mbps Supply oscillator area On Target Unavailable using internal oscillator Frequency Unavailable Internal OSC Multiply rate Unavailable Internal Direct mode Operation Mode area Chip Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 98 138 lt 11 gt Click the Advanced tab Figure 5 15 Device Setup Dialog Box Advanced Tab Target Standard Advanced Supple voltage Security command option vdd V M Security flag settings Disable Chip Erase Wide W 00 00 Disable Black Erase On Target amp fad Hatin tw Disable Program FLMDO Wdd r CLE Wd o Disable Boot block cluster reprogramming RESET Vdd o Serial Out dd m Block protection Boot Block end Serial In dd FS Block start Command options FS Block end lf Blank check before Erase Show Address Verify after Program Security after Program Reset vector setting Checksum after Program Reset vector Oooo h Cancel lt 12 gt Chec
36. supply connector Figure 7 2 Power Supply Connector Pin Assignment Caution Do not connect an AC adapter other than the one included with the FP5 to the power supply connecter Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 111 138 7 2 Serial Connector The serial connector 9 pin D SUB male connector is laid out on the host interface side of the FP5 Figure 7 3 Serial Connector lt FP5 Host Interface Side gt Serial connector Figure 7 4 Serial Connector Pin Assignment CED Table 7 1 Serial Connector Pin Configuration ee ee ee Part number of serial connector 9 pin D SUB male connector 070430MBO09G200ZU Suyin Connector Corp Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 112 138 7 2 1 Serial cable The host cable is a standard shielded serial cable crossed approximately 3 meters long The connectors on both sides are 9 pin D SUB female connectors The following shows the connection Figure 7 5 Serial Cable Connection 1 2 3 4 5 6 if 8 9 OOnNOOABRWDNDM gt 7 3 USB Connector The mini B type USB connector is laid out on the host interface side of the FP5 Figure 7 6 USB Connector lt FP5 Host Interface Side gt USB connector port Part number of mini B USB connector UX60A MB 5ST made by Hirose Electric Co Ltd 7 3 1 USB cable The USB cable is approximately 2 meters long The cable is equipped with a
37. the multiplication rate of the operating clock for the target device Serial CLK Displays the serial clock rate in Hz that is used for communication between the target device and the FP5 CLK source Indicates either of the following as a source of the operating clock supplied to the target device Programmer Clock is supplied from the FP5 Target Clock is supplied from the user system PG CPU CLK Indicates the frequency of the clock supplied from the FP5 in MHz Target CPU CLK Indicates the frequency of the clock on the user system that is supplied to the target device in MHz Indicates chip area or block as the operation mode when the Blank check Erase Program Verify Checksum or Autoprocedure E P command is executed Display example Mode BEPV chip PRG Area Indicates which of the areas in the target device connected to the FP5 is to be written to This menu shows a valid display only when the operation mode is area or block Display example PRG Area Otol In chip mode the display is always as follows Display example PRG Area 0 to 127 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 107 138 6 3 3 Option Setting menu The Option Setting menu is used to check the command options and security settings currently set for the FP5 The settings downloaded to the valid programming area are displayed All the values displayed are those downlo
38. the valid programming area are displayed The settings cannot be changed using this menu Table 6 5 Utility Misc Menu Utility Misc gt Reset FP5 gt Pressing the ENTER button resets the FP5 Set LCD Contr gt Tunes the contrast in the message display After pressing the ENTER button the contrast can be tuned using the NEXT darken or CANCEL button lighten To fix the contrast click the ENTER FP5 F W Version Displays the FP5 firmware version Display example FP5 F W Version V1 00 PRM Name Displays the name of the PR5 file stored in the FP5 valid programming area Display example PRM Name 78F1166 PRM File Version Displays the version of the PR5 file stored in the FP5 valid programming area Display example PRM File Version V1 00 HEX File Name Displays the name of the program file stored in the FP5 valid programming area Display example HEX File Name Sample hex n a is displayed if the program file is invalid CRC Sum FP5 Displays the result of executing the Checksum command in the File menu in the programming GUI Display example CRC Sum FP5 623E ARITHM Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 110 138 CHAPTER 7 CONNECTORS AND CABLES 7 1 Power Supply Connector The power supply connector is laid out on the host interface side of the FP5 Figure 7 1 Power Supply Connector lt FP5 Host Interface Side gt Power
39. 2606 The file is modified Save file The file has been modified Select whether to save changes Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 133 138 A 4 Error Messages Displayed in FP5 Message Display a Error Condition Possible Workaround Invalid PRM data Invalid PRM data The parameter file may include invalid data or the file may be defective Re set the file using the parameter file downloaded from http www necel com micro ods eng index html 005 Not supported The command issued is not supported on the device and thus cannot be used 006 Command aborted Command aborted The Read command has been canceled PR5 file Error The parameter file may be damaged Power failure Abnormal VDD current An overcurrent was detected during VDD output Check the connection with the device ores sararea poveo save rezana rares Chek mo conect covoorssoeoes Check connection Connection check The FP5 cannot establish connection to the target device The cause may be a wrong connection between the device and the FP5 bad socket contacts or the oscillator not operating 013 Addr Range err Address range error The address given in the command exceeds the device s address range Inv Sig ID Invalid signature ID Check if the correct device is selected Inv Signature Invalid signature Check if the correct device is selected Inv Dev Firm ver Invalid device firmware version Check if the correct dev
40. 28 19 01 29 2007 Download file sample hex Fri Feb 24 21 13 08 2006 OOO000 00FFF File checksum Arithmetic checksum 16 bit OOO000 03F FFF B23E Target device ToF1166 UART 0 1 000 O00 bps 05 00 FPS Internal Osc T arget 1 00 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 30 138 3 4 4 Installation of FPGA update Install the latest FPGA by using the latest programming GUI Run the downloaded self extracting file fp5_fpga_vxxx exe The FPGA file fp5 fpga_vxxx rec will then be decompressed into the folder so copy it to any folder xxx indicates the FPGA version 1 Click the Programmer menu on the menu bar and select Update FPGA the Update FPGA dialog box will then be opened Figure 3 10 Update FPGA Command Device Help Setup host connection Logging Select Programming area ye Buzzer Firt Reset Ser Self Test gt Update Firmware Update FPGA Figure 3 11 Update FPGA Dialog Box Update FPGA T2211 Updating the FPGA will take several minutes ATTENTION The process of updating your FPGA must WOT be interrupted Without FPGA this FPS SUI will WOT run properly Install new FPGA in your programmer i Cancel Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 31 138 2 Click the button to continue FPGA update The Open FPGA file dialog box is opened Figure 3 12 Open FPGA file Dialo
41. 4 Open the Control Panel double click System click the Hardware tab and the Device Manager button select Flash Programmer FP5 under NECPCIF and then click the Delete icon on the toolbar 5 Press the button on the FP5 to turn power off the POWER LED will then turn off With this method device information in the registry is deleted but the copied files remain To completely delete all of this information perform the above step 4 refer to the list of files copied during installation and delete the files This method requires special attention because it directly deletes files manage by Windows C AWINDOWS System32 Drivers fousb sys USB driver entity C AWINDOWS infiOem x inf fpusb inf Caution The C WINDOWS inf folder can be seen only when Display all file and folder is selected on the Display detail setting tab in the folder option X in OemX inf indicates a numeric value starting from 0 which is assigned by the system The detailed contents of the OemX inf file must be checked The relevant file includes the following notation Installation inf for the NEC Electronics Flash Programmer Copyright C NEC Electronics Corporation 2005 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 25 138 3 4 Updating Programming GUI Firmware and FPGA The firmware and FPGA are programs embedded in the device for controlling the FP5 Updating the programming GUI firmware and FPGA enables th
42. 5 side On Target check box cleared input one of the following e 1MHz e 2MHz e 4MHz e 5MHz e GMHZ e 8MHz e 9MHz e 10MHz e 12MHz e 16MHz e 20MHz Remark For the selectable frequency refer to the user s manual for the device used On Target check box Specify which clock is supplied to the target device a clock mounted on the target system or a clock on the FP5 side If this check box is selected the clock mounted on the target system will be used If this check box is cleared the clock on the FP5 side will be used Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 75 138 Multiply rate text box Set the multiplication ratio of the clock supplied to the target device If the target device includes the PLL circuit input the multiplication ratio in accordance with the environment used If the target device does not include the PLL circuit select Internal Direct mode On the initial screen the default settings that have been loaded from the PR5 file is displayed Remark For the selectable multiply rate refer to the user s manual for the device used lt 3 gt Operation Mode area Switch the operation mode to execute commands such as flash memory programming for the entire flash memory area in area units or in block units The settings made here are valid for the Blank Check Erase Program Verify Read Checksum and Autoprocedure E P commands The display varies
43. 7dd02d 0x34867077 0x30476dc0 0x3d044b19 0x39c556ae 0x278206ab 0x23431b1c 0x2e003dc5 0x2ac12072 0x128e9dcf 0x164 8078 0x1b0ca6a1 0x1fcdbb16 0x018aeb13 0x054bf6a4 0x0808dqd07d 0x0cc9cdca 0x7897ab07 0x7c56b6b0 0x71159069 0x75dqd48dde 0x6b93dddb 0x6 52c06c 0x6211e6b5 0x66dqd0fb02 0Ox5e9f46bf 0x5a5e5b08 0x571d7dd1 0x53dc6066 0x4d9b3063 0x495a2dd4 0x44190b0d 0x40d816ba Oxaca5dc697 0xa864db20 0xa527fdf9 OxalebeO4e Oxbfalb04b Oxbb6 0adfc 0xb6238b25 0xb2e29692 Ox8aad2b2 f 0x8e6c3698 0x832f1041 0x87ee0df6 0x99a95df3 0x9d684044 0x902b669d 0x94eaT7b2a Oxe0b41de7 0xe4750050 0xe9362689 Oxedf73b3e Oxf3b06b3b 0xf 771768c 0xfa325055 Oxfef34de2 Oxc6bcf05f Oxc27dede8 Oxcf3ecb31 Oxcbf fd686 0xd5b88683 0xd1799b34 Oxdc3abded Oxd8fba05a Ox690ce0ee O0x6dcdfd59 0x608edb80 0x644fc637 0x7a089632 0x7ec98b85 0x738aad5c 0x774bb0eb Ox4 040d56 0x4bc510e1 0x46863638 0x42472b8f O0x5c007b8a 0x58c1663d 0x558240e4 0x51435d53 0x251d3b9e 0x21dc2629 0x2c9f00f0 0x285eld47 0x36194d42 0x320850E5 0x3 9b762c 0x3 b5a6b9b 0x0315d626 0x07d4cb91 Ox0a97ed48 0x0e56f0ff 0x1011a0fa 0x14d0bd4d 0x19939b94 0x1d528623 0xf12f560e Oxf5ee4bb9 Oxf8ad6d60 Oxfc6c70d7 0Oxe22b20d2 Oxebea3d65 Oxeba9lbbc Oxef68060b Oxd727bbb6 Oxd3e6a601 Oxdeabd80d8 0xda649d6f Oxc423cd6a Oxc0e2d0dd Oxcdalf604 Oxc960ebb3 Oxbd3e8d7e 0xb9ff90c9 Oxb4bcbh610 Oxb0O7daba7 Oxae3afba2 Oxaafbe615 Oxa7b8c0cc 0xa379dd7b 0x9
44. AND CABLES CHAPTER 8 NOTES ON TARGET SYSTEM DESIGN and CHAPTER 9 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS 2 2 8 Program adapter The FP5 supports off board programming through which programs are written via a program adapter FA series without mounting the target device onto the target system Program adapters corresponding to each type of the target device package are available Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 16 138 2 3 Names and Functions on Main Unit This section describes the names and functions on the FP5 main unit 2 3 1 FP5 control panel Indicators and buttons are laid out on the FP5 top Message display Status LEDs Control buttons 1 Indicators e POWER LED e Message display e Status LEDs 2 Buttons e POWER button e NEXT button e ENTER button e CANCEL button e START button Figure 2 2 FP5 Top View lt Control Panel gt POWER LED POWER button LED that displays the FP5 power status A red LED is turned on when the FP5 is ON and is turned off when the FP5 is OFF An LCD display of 16 x 2 characters that indicates the operating mode or menus It is mainly used when the FP5 operates in standalone mode LEDs that show the FP5 operating status PASS green LED turned on indicates normal completion BUSY orange LED flashes indicates processing in progress and ERROR red LED turned on indicates errors Used to t
45. Action 1 Confirm that the clock or power is supplied on the target system Cause 2 Communication may not be stable Action 2 lt 1 gt Confirm that no noise is applied to communication lt 2 gt Confirm that the FP5 and target system are properly connected lt 3 gt Confirm that unused pins are properly handled lt 4 gt Confirm that an appropriate clock and communication rate are selected Stable programming may be achieved by setting a lower value for the clock or communication rate Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 127 138 APPENDIX A MESSAGES A 1 Message Format Messages will be output in the error warning dialog boxes information dialog boxes or action log window during programming GUI operation Error messages will be displayed on the FP5 message display during standalone operation Figure A 1 Error Warning Dialog Box E 1100 X Communication within host P and FlashProerammer is broken Figure A 2 Information Dialog Box Information Jj T2413 Value is out of range Figure A 3 Action Log Window Ep Synchronisation with device failed Ho more device versions to check Please check connection Cannot connect to device gt Figure A 4 Error Message FP5 Message Display ERROR 012 Check connection Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 128 138 A 2 Error Warning Dialog Boxes for Programming GUI Operation E1100
46. CD 07 0051 29 138 3 Some commands are sent to the FP5 and the update progress status is displayed in the action log window The message Firmware Update succeeds which indicates normal completion of firmware update and Restarting FP5 which is equivalent to RESET command processing is automatically performed The new version can then be checked as Firmware Version Vx xx The update takes about 10 seconds Remark The action log window is a part of the main window of the programming GUI which shows the PV Pr Ho EE operation progress status Figure 3 9 Action Log Window When Firmware Update Is Finished Ersin up no query eparing storage 0K w loading D Seltprogranming 1 00 Checking FLHDO level Erase flash OE Blank check OK Write flash Hargin check DE Firnvare Update succeeds Il Restarting FPS F F F Fi Bo 5e gt EFFEEF PPPFF 555555 P 5 F Pe amp P P 55555 5 5 5 5555 rnvare Version Y1 00 ard HW Vil FPGA 1 rial Ho HHHEXEENHNEE Firmware Version VY1 00 Bo 5e gt ard HW Vil FPGA 1 rial Ho EZXEKEERHEHE OK 5 5 FPS GUI Firmware Prog Area Programmer W100 W100 0 Parameter and Setting file Name Versioni Name Date Mame Date Address Type Address Value Hame Fort Pulse Num Speed Ydd Freg Multiply Mode Range roF1166 pr5 W1 00 roF1166 esf Wed Mar
47. CONNECTORS AND CABLES Caution Do not use an AC adapter other than that included with the FP5 2 Serial connector Communication is established by using a serial cable RS 232C cross cable connection to connect the host machine serial port and FP5 serial connector The data transfer conditions are as follows e Data transfer speed 9 600 bps 19 200 bps 38 400 bps 57 600 bps or 115 200 bps e Data bit 8 bits e Parity none e Stop bit 1 bit e Flow control hardware The transfer speed is set to 115 200 bps by default but it can be changed For details on the serial connector specifications refer to CHAPTER 7 CONNECTORS AND CABLES 3 USB connector Communication is established by using a USB cable to connect the host machine USB port and the FP5 USB connector mini B type This connector conforms with USB 2 0 standards For details on the USB connector specifications refer to CHAPTER 7 CONNECTORS AND CABLES 4 Target connector Connect the target connector to the target system using the target cable for on board programming Connect the target connector to the program adapter using the target cable for off board programming For details on the target connector specifications refer to CHAPTER 7 CONNECTORS AND CABLES 5 GND connector To reinforce the GND connect the FP5 GND connector and the signal GND of the target system or program adapter using a GND cable For details on the GND connector specifications refer to CHAPTER 7
48. CUSTOMER NOTIFICATION ZUD CD 07 0051 1 138 April 5 2007 Yoshinari Ando Team Manager Development Tool Solution Group Multipurpose Microcomputer Systems Division 4th Systems Operations Unit NEC Electronics Corporation CP K O Preliminary User s Manual Flash Memory Programmer PG FP5 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 2 138 MEMO Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 3 138 Windows is a registered trademark or a trademark of Microsoft Corporation in the United States and or other countries PC AT is a trademark of International Business Machines Corporation e The information in this document is current as of April 2007 The information is subject to change without notice For actual design in refer to the latest publications of NEC Electronics data sheets or data books etc for the most up to date specifications of NEC Electronics products Not all products and or types are available in every country Please check with an NEC Electronics sales representative for availability and additional information e No part of this document may be copied or reproduced in any form or by any means without the prior written consent of NEC Electronics NEC Electronics assumes no responsibility for any errors that may appear in this document e NEC Electronics does not assume any liability for infringement of patents copyrights or other intellectual property r
49. D A MU Cet Dee azil iH Ft ELE LEE LL Address display area Data display area ASCII display area ID Tag area The displayed file contents can be modified by placing the pointer in the data display area in the HEX Editor main window Data input via the keyboard is accepted for all shown memory locations The ID Tag area is the area used with the target device supporting data flash Only address 400000h and later can be edited in this area For details on data flash and ID tags refer to the user s manual of the target device The HEX Editor only accepts hexadecimal data i e numbers O to 9 and letters Ato F All other data will be rejected The ASCII representation if any is shown in the ASCII display area This area is for reference only so no data can be input Use the scroll bar to move another address range into the visible area of the HEX Editor The address space that can be viewed in the HEX Editor window is up to 4 MB 64 KB data flash space The following keys can be input using the keyboard Table 4 1 Key Functions That Can Be Input in HEX Editor Window Move cursor in right direction Move cursor in down direction Tab Move cursor to next input field address 1 If any changes have been made to the file Save and Save As in the File menu in the HEX Editor main window become available for saving the modified data Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 40 138
50. Device Setup dialog box This performs the same action as selecting the Setup command in the Device menu Opens the programming area select dialog box This performs the same action as selecting the Select Programming area command in the Programmer menu Opens the HEX Editor select dialog box This performs the same action as selecting the HEX Editor command in the File menu Executes the Blank Check command This performs the same action as selecting the Blank Check command in the Device menu Executes the Erase command This performs the same action as selecting the Erase command in the Device menu Executes the Program command This performs the same action as selecting the Program command in the Device menu Executes the Verify command This performs the same action as selecting the Verify command in the Device menu Executes the Security command This performs the same action as selecting the Security command in the Device menu Executes the Autoprocedure E P command This performs the same action as selecting the Autoprocedure E P command in the Device menu Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 86 138 4 5 Action Log Window This window displays the log of programming GUI actions Figure 4 65 Action Log Window EDY Blank check Chip ERROR Hot blank Erase needed Flash Memory Programmer PG FP5 Preliminary User s Man
51. FP5 ini and these settings are loaded when the programming GUI is started the next time The INI file is created in the WINDOWS folder Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 44 138 4 3 2 Programmer menu Clicking the Programmer menu displays the following pull down menu This menu includes commands related to FP5 settings Figure 4 12 Programmer Menu Device Help 1 Setup host connection Logging 2 Select Programming area 3 Buzzer 4 Reset 5 nelf Test 6 7 Update Firmware Update FROA 8 9 1 Setup host connection command Running the Setup host connection command opens the Host Connection dialog box The channel for communication between the FP5 and the host machine can be selected and configured in this dialog box Figure 4 13 Host Connection Dialog Box Host Connection C Serial Cancel USB can be selected as the communication channel if the USB interface is supported in the PC used When selecting Serial select the COM port and baud rate from the drop down list boxes COM ports that are recognized by the host machine are displayed in the Port list Up to 256 ports can be recognized When the button is clicked software tries to establish a connection between the FP5 and the host machine using the selected communication channels Clicking the button closes the window without making any changes Flash Memory P
52. KOR 78KOS Kx1 uwPD78F9334 Figure 8 2 Circuit Example for 78KOR 78KOS Kx1 and uPD78F9334 RESET GNDJ 3 Ver SOMxD TOOLO X2 Note 2 H S FLMDO X1 Note 2 Target device Notes 1 These pins do not need to be shorted when using the FP5 Short them if necessary 2 Read these pins as TOOLO and FLMDO when using 78KOR or X1 and X2 when using 78KOS Kx1 or the uPD78F9334 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 120 138 CHAPTER 9 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS This chapter describes the target interface specifications signals connected to the FP5 and the target system by using equivalent circuits 9 1 SO TxD RESET and SCK When Vobp Vpop2 are supplied from the target system for target device programming the FP 5 internal voltage regulator is protected so that user Vpp Vpp2 will not affect the SO TxD RESET and SCK signal lines In either case these signal lines output C MOS level signals When a 78KO0S Kx1 microcontroller or the UPD78F9334 is used the SO TxD signal line functions as an open drain output Figure 9 1 SO TxD RESET and SCK Pins FP5 Vbb 74LV125 D P5 VDD 74LV125 33 Q Signal output p circuit Pull up control circuit EMZ6 8 E FP5 Vbpb Self testing circuit or signal input A circuit 74LV125 8 Target System 9 2 SI RxD and H S The SI RxD input signal voltages must not exceed the rated maximum voltage Figure 9 2 SI RxD and
53. Mame Date Address Type Address Value Hame Fort Pulse Num Speed Wedd Freq Multiply Mode Range roF1166 pr5 W700 foF 1166 est Wed Mar 28 19 01 29 2007 Download file sample hex Fri Feb 24 21 13 08 2006 OOO000 00FFF File checksum Arithmetic checksum 16 bit OOO000 03F FFF B23E Target device ToF1166 UART 0 1 000 O00 bps 05 00 FPS Internal Osc T arget 1 00 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 35 138 CHAPTER 4 PROGRAMMING GUI USAGE This chapter explains functional details on windows and dialog boxes of the programming GUI 4 1 Introduction Make sure that the programming GUI USB driver and the FP5 parameter file PR5 file for the target device are installed For the installation method refer to CHAPTER 3 SOFTWARE INSTALLATION 4 2 Startup of Programming GUI 1 System connection Connect a USB cable or serial cable to the USB port or serial port on the host machine and the other side of the cable to the USB connector or serial connector on the FP5 Plug in the AC adapter and then connect to the FP5 power supply connector Figure 4 1 System Connection I Serial cable or USB cable AC adapter Host Outlet machine FP5 2 FP5 startup After the cables are connected press the POWER button on the FP5 When the FP5 is correctly started the POWER LED is turned on and Commands gt is displa
54. Object HEX file area Select the program file in this area Figure 4 46 Object HEX file Area Object HEX file C Program Files NEG Electronics Toole PG F P5447 O0 bin sa mp le hex E Fri Feb 24 21 13 08 2006 Program file selection list Select the program file to be used If no program files are registered in the valid programming area program files stored in the bin folder in the programming GUI installation folder are displayed If the reference folder is changed by using the ad button program files stored in the changed folder are displayed Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 69 138 A button Click this button when specifying a program file stored in a folder other than the bin folder in the programming GUI installation folder The Download file dialog box will be displayed Specify the relevant file and then click the button Figure 4 47 Download file Dialog Box Download file Look in E HEX ef EE a el sample hex My Recent Documents g Desktop Places Files of type S rec Hes files rec s hex Cancel iM Erase memory before download Whether to erase the FP5 internal memory before downloading new program files can be selected by using the Erase memory before download check box This option should usually be selected lt 5 gt Information area and button This area displays a warning message or is used to clear informat
55. Oh is included E 1532 Parameter of Start Address is invalid The value input as the start address is not a valid hexadecimal number E 1533 Parameter of End Address is invalid The value input as the end address is not a valid hexadecimal number E1523 lt file name gt could not be opened Abort Save File lt file name gt cannot be opened File saving was aborted E1524 Data error Abort DATA Check A data error has been found in the program file Data checking was aborted E1525 Temporary file could not be read Abort Save File Opening of the temporary file has failed The file may be corrupted E 1526 Error line lt line number gt Data Count error Abort Data Count Check A data count error has occurred in line ine number The program file format may be incorrect Error line lt line number gt E1527 Cannot open temporary file Opening of the temporary file has failed The file may be corrupted E1528 File Save error Abort Save File Saving the file has failed E1529 lt line number gt Check sum error Continue A checksum error has occurred in line ine number The program file format may be incorrect Select whether to continue the operation E 1530 Too large address Edit range 0 0x420000 The program file address is too large Set an address value in the range 0 to 420000h E 1531 Data Flash format error lt dataaddress gt Invalid ID
56. R5 file are restored Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 77 138 c Advanced tab in Device Setup dialog box On the Advanced tab the programming voltage options added to programming commands and security settings can be configured This tab consists of the following items lt 1 gt Supply voltage area lt 2 gt Command options area lt 3 gt Security command option area lt 4 gt Security flag settings area lt 5 gt Block protection area lt 6 gt Reset vector setting area Figure 4 54 Device Setup Dialog Box Advanced Tab Setup Target Standard Advanced Supple voltage Secunty command option lt 3 gt Vdd v 05 00 Security flag settings Disable Chip Erase Vide W 100 00 Disable Block Erase On Target amp idmonitorng fe Disable Program lt 4 gt oil FLMDO dd o M Disable Read CLE dd Disable Boot block cluster reprogramming RESET Vdd Serial Out Wed r Block protection Boot Block end Serial In Mdd lt 5 gt FS Block start i Command options FS Block end 2 W Blank check before Erase Show Address lt gt Verify after Program W Security after Program Reset vector setting lt o gt Checksum after Program Reset vector h 6 z Cancel Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 78 138 lt 1 gt Supply voltage area In this area specify one Vpp or two Voo and Vopz voltage levels for tar
57. The Checksum command calculates the checksum of the selected program file and displays the result When this command is executed the Checksum dialog box appears Select the optional calculation method and the target address range and click the button The result will then be displayed in the File Checksum area in the action log window and programmer parameter window This command can be executed after the Setup command is executed If the Setup command is executed again after the Checksum command is executed the result displayed in the File Checksum area in the programmer parameter window will be cleared The Checksum dialog box display varies whether or not the downloaded PRS5 file is for a target device that supports data flash Figure 4 9 Checksum Dialog Box The downloaded PR5 file is for a target device that The downloaded PR5 file is for a target device that does not support data flash supports data flash checksum Checksum Frogramming Area Avithmetic checksum 1 E bit Fragramming Area Arithmetic checksum 16 bit fe perenes W Code lv Data f Device Area Start Address 0 Start Address 0 Start Address D End Address FFFFF End address FFFF End Address 3FFFF C User Defined C User Defined van eo Cancel lt 1 gt Programming area The valid programming area is displayed lt 2 gt Checksum calculation mode selection Select the mode for calculating checksum of the selected program file
58. The data flash format is invalid Valid 4 bytes are followed by an Tag ID tag of 4 byte FFh or 4 byte 00h in the data flash area An error occurs if the ID tag includes defects or FFh or 00h is included E1532 Parameter of Start Address is invalid The value input as the start address is not a valid hexadecimal number E 1533 Parameter of End Address is invalid The value input as the end address is not a valid hexadecimal number E 1534 Temporary file could not be read Abort Dump Hex The temporary file cannot be read Opening of the HEX Editor was aborted E1535 Can not open lt file name gt Abort Dump Hex lt file name gt cannot be opened Opening of the HEX Editor was aborted E 1536 File load error Abort Dump Hex A file load error Opening of the HEX Editor was aborted E 1537 Error line lt line number gt An incorrect checksum was detected in line ine number in the Check sum error Abort Check sum Check program file The program file format may be incorrect E 1538 Can not read temporary file Reading of the temporary file has failed The file may be corrupted E1539 Caution Out of range The specified value is out of the valid range Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 131 138 A 3 Information Dialog Boxes for Programming GUI Operation 2100 2200 2201 2202 2203 2204 2207 2208 2209 2210 2211 Please
59. aded last time by the programming GUI The settings cannot be changed using this menu Table 6 3 Option Setting Menu Option Setting gt BLN before ERS Displays the setting of the Blankcheck before Erase check box in the Command options area on the Advanced tab in the Device Setup dialog box on Selected off Not selected VRF after PRG Displays the setting of the Verify after Program check box in the Command options area on the Advanced tab in the Device Setup dialog box on Selected off Not selected SCF after PRG Displays the setting of the Security after Program check box in the Command options area on the Advanced tab in the Device Setup dialog box on Selected off Not selected SUM after PRG Displays the setting of the Checksum after Program check box in the Command options area on the Advanced tab in the Device Setup dialog box on Selected off Not selected Prog Area Displays the valid programming area from the four 4 MB each or eight 2 MB each programming areas in the FP5 Display example in the case when the valid programming area is Area 0 Prog Area On 0 Chip ERS dis Displays the setting of the Disable Chip Erase check box in the Security flag settings area on the Advanced tab in the Device Setup dialog box on Selected off Not selected Block ERS dis Displays the setting of the Disable Block Erase check box in the Security flag settings
60. ammer PG FP5 Preliminary User s Manual ZUD CD 07 0051 24 138 3 3 Uninstallation This section explains how to uninstall the programming GUI USB driver parameter file PR5 file customized setup file ESF file and setting information file INI file The uninstallation order is prescribed Table 3 2 Uninstallation Method Programming GUI Open Add or Remove Programs or Add Remove Programs on the Control Panel and uninstall this program Parameter files pr5 customized setup files esf files that contains programming GUI settings contents FP5 ini are not deleted PR5 file Delete PR5 files pr5 stored in the FP5 PR4J folder in the programming GUI installation folder USB driver Uninstall the USB driver using the device manager in the System menu on Control Panel For details refer to 3 3 1 Uninstallation of USB driver ESF file Delete ESF files esf stored in the FP5_PR4J folder in the programming GUI installation folder or other folder INI file Delete INI files FP5 ini stored in the WINDOWS folder 3 3 1 Uninstallation of USB driver Uninstall the USB driver using the following procedure 1 Start up the host machine 2 Use a USB cable to connect the FP5 to the host machine plug in the AC adapter and the AC adapter to the FP5 power supply connector 3 Press the POWER button on the FP5 the POWER LED will then turn on and Command gt is displayed in the message display
61. ancel lt 1 gt Communication interface to device area In this area select the channel and speed for communication between the FP5 and target device Figure 4 51 Communication interface to device Area Communication interface ta device Port SI0 ch0 x Pulse number speed 625k Hz s Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 72 138 Port list Select the mode of communication between the FP5 and target device The communication mode is determined by the number of Ver output from the FP5 or the FLMDON pulse count The selectable communication mode differs depending on the target device Refer to the user s manual of the target device used and select a mode With some devices the channel number may start from 1 In this case the corresponding number is shifted for example chO shown in the screen corresponds to ch1 of the device and the displayed channel number must be shifted accordingly Note FLMDO in a single power supply flash memory microcontroller or FLMD1 in a two power supply flash memory microcontroller Remark For the available communication channel refer to the user s manual of the target device based on the pulse count displayed for Pulse number Table 4 2 Channels for Communication Between FP5 and Target Device SIO ch0 SIO 3 wire clocked communication port channel 0 SIO ch1 SIO 3 wire clocked communication port channel 1 SIO ch2 SIO 3 wire clocke
62. aries 2 NEC Electronics products means any product developed or manufactured by or for NEC Electronics as defined above M8E 02 11 1 1 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 4 138 General Precautions on Handling This Product Circumstances not covered by product guarantee If the product was disassembled altered or repaired by the customer If it was dropped broken or given another strong shock Use at overvoltage use outside guaranteed temperature range storing outside guaranteed temperature range If power was turned on while the AC adapter interface cable or connection to the target system was in an unsatisfactory state If the cable of the AC adapter the interface cable the target cable or the like was bent or pulled excessively If an AC adapter other than the supplied product was used If the product got wet If the product and target system were connected while a potential difference existed between the GND of the product and the GND of the target system If a connector or cable was connected or disconnected while power was being supplied to the product If an excessive load was applied to a connector or cable If the product is used or stored in an environment where an electrostatic or electrical noise is likely to occur Safety precautions If used for a long time the product may become hot 50 to 60 C Be careful of low temperature burns and other dangers due to the product b
63. as Area 0 to Area 7 Program files can be downloaded to each programming area and which file PR5 or ESF is to be saved is selectable in programming area units That is files can be individually downloaded in each programming area and the area used can also be selected individually This command is used to select a valid programming area from the FP5 s four or eight programming areas 4 MB in case of four areas or 2 MB in case of eight areas When this command is executed the programming area select dialog box is opened and the desired programming area can be selected The number of programming areas that can be selected with this command is the value defined in the Programming Area Setting area on the Target tab of the Device Setup dialog box which is opened by the Setup command in the Device menu Figure 4 15 Programming Area Select Dialog Box Programming area Ea rea to be used F Cancel The currently selected programming area is displayed in the programming area selection dialog box To change the area select the relevant number from the list box and click the button To check the contents set to each area or to change the division factor see the Target tab of the Device Setup dialog box Clicking the button selects the programming area selected in the programming area select dialog box Clicking the button closes the dialog box without changing the programming area 4 Buzzer command The Bu
64. b3660c6 0x9ff77qd71 0x92b45ba8 0x9675461f 0x8832161a Ox8c 30bad 0x81b02d74 0x857130c3 0x5d8a9099 0x594b8d2e 0x5408abf7 0x50c9b640 0x4e8ee645 0x4a4ffbf2 0x470cdd2b 0x43cdc09c Ox7be82 7021 0x7 436096 0x7200464f 0x76c15bf8 0x68860bfd 0x6c47164a 0x61043093 0x65c52d24 0x119b4be9 0x155a565e 0x18197087 0x1cd86dqd30 0x029 3dqd35 0x065e2082 0x0b1d065b 0x0fdc1bec 0x3793a651 0x3352bbe6 0x3e119dqd3f 0x3ad08088 0x2497dqd08d 0x2056cd3a 0x2d15ebe3 0x29d4f654 0xc5a92679 0xc1683bce 0xcc2b1d17 0xc8ea00a0 0xd6ad50a5 0xd26c4d12 0xdf2f6bcb 0xdbee767c 0xe3al1cbc1 0xe760d676 0xea23f0af 0xeee2ed18 0xf0a5bd1d 0xf464a0aa 0xf9278673 0xfde69bc4 Ox89b8 d09 0x8d79e0be 0x803ac667 0x84fbdbd0 0x9abc8bd5 0x9e7d9662 0x933eb0bb 0x97ffad0c Oxafb010b1 Oxab710d06 0xa6322bdf 0xa2f33668 0xbcb4666d 0xb8757bda 0xb5365d03 0xb1 740b4 void Gen_CRC_Sum Char u08 c s32 i Ignore SPACE CR LF if c c 8 c r c n return Perform CRC sum algorithm use table for better speed i 4 CRE accum gt gt 24 u32 c amp Oxff CRC_accum CRC_accum lt lt 8 CRC32_Tab i Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 137 138 Figure B 3 Log File Example gt e pv Blank check Chip ERROR Not blank Erase needed Erase Chip OK Erase OK Write Chip 10 20 30 40 50 60 70 80 90 100 OK
65. before start Self test Note the following points before performing self testing ATTENTION ATTENTION Remove any plugs from Target and Unplug all target connectors and remote connectors Remote connector before starting If any hardware is connected it may be damaged by this testing Any hardware attached to those connectors may be damaged by this test Start Self test 12300 Value out of range The set value is out of the valid ranges The valid code flash range is 0 0x400000 The valid data flash range is 0x400000 to 0x420000 12302 Please give file range Input the file range No arguments are specified for the range 12401 Caution When Chip Erase is disabled chip cannot _ If Chip Erase is disabled the flash memory in the target device be erased and programmed any more cannot be erased or rewritten 12402 Caution When Boot block cluster reprogramming is If Boot block cluster reprogramming is disabled the flash disabled chip cannot be erased and programmed any memory in the target device cannot be erased or rewritten more 12411 The selection is out of range The selected communication speed is higher than the maximum value defined in the PR5 file 12412 The selection is out of range The selected communication speed is lower than the minimum value defined in the PR5 file 12413 Value is out of range The selected clock value is larger than the maximum value defined in the PR5 file 12414 Value
66. ce Setup dialog box For details on these check boxes refer to 4 3 3 12 c lt 2 gt Command options area Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 59 138 Figure 4 35 Action Log Window After Autoprocedure E P Command Execution gt p Blank check Chip OK OK Erase skipped Erase OK Write Chip 10 20 30 40 50 60 70 80 90 100 OK Write OK Erase Program OK gt 9 Connect command This command is not available 10 Signature read command The Signature read command reads target device product information such as the device name and flash memory information The read result is displayed in the action log window Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 60 138 11 Get Security Settings command The Get Security Settings command reads the settings for the security functions for the target device and displays the result in the Security flag settings area on the Advanced tab in the Device Setup dialog box When execution of this command is enabled execute this command before the Security command the settings for the security functions or the boot area can thus be checked For details on the security functions refer to 4 3 3 12 c lt 3 gt Security command option area Figure 4 36 Get Security Settings Command Target Standard Advanced Supple voltage Secunty command option Vdd v
67. ceeccceeeeeeeeeeeeeseeeeeeeeeeeeseaeeeeseeeeesseeeeesaaeeessneaeeeeeas 25 CHAPTER 4 PROGRAMMING GUI USAGE 0 0 0 0 cece ccccec ce eeeeeeeeeeeeseeeeeeaeeeeesaaeeeeseeeeeesaaeeeseaeeeesaeeeeeaeeeeesaees 35 ANTOU CIOs dare Scns se sah a khan deste Ae Ae a eed atest ete thas cole a 35 4 2 Startup Of Programming GUI cc ccccceccccceeeeeeeeeeeeeeeeeeeseeeeeeaeeeeeeeeeeeseeeeeeaeeeeesaeeeeeseaeeeeseeseessaaeueeesseeeessaneeesaees 35 AS Menu AN etc es See a oc wie easiest ac Saves cece adie Sade Anas ew sae teas onsale ad eedestsee de 38 BAY WO OMG AR see ss cen 3 Geos we eye a ee ene 0 an cee eeet gu aee aoe ta A a E peceeeeanteesasece acess 85 AD ACION LOGI VVINGOW sinesi e e E nated ot elles Wiahuat E acne et ad dbced E eoredstet ees 86 4 6 Programming Parameter WINKOW cccccccssececsseecescccceecensuceseueeseueesusecessuseneeessuecessesensusessueessegeessaesensesenegs 87 7s Ye C2118 om RR a nm CSE PO aT re en RO eC ee eee 88 A OE AGB f Dare eae oer Dene en Eee en er Oe ee ere cree eee eee ek ene ore eee ere re eee here 89 CHAPTER 5 EXAMPLE OF OPERATION USING PROGRAMMING GUL 0 ccc ccceeeeeceeeeeeeaeeeeeaeeeeeaees 90 CHAPTER 6 USAGE IN STANDALONE MOD cccccccceceee ce eeeeeeeeeeeeeeeeeesaeeeeesaaeeeesaaeeesaeeeeesaeeeeeaeeeeeeas 103 6 1 Before Starting Standalone Operavo ny is nenia a a E ieneaisent E EEE EE 103 6 2 Description of Buttons Message Display and Status LEDS 00nnaannnannnnnnn
68. cs products developed based on a customer designated quality assurance program for a specific application The recommended applications of an NEC Electronics product depend on its quality grade as indicated below Customers must check the quality grade of each NEC Electronics product before using it in a particular application Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots Special Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life Support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems life support systems and medical equipment for life support etc The quality grade of NEC Electronics products is Standard unless otherwise expressly specified in NEC Electronics data sheets or data books etc If customers wish to use NEC Electronics products in applications not intended by NEC Electronics they must contact an NEC Electronics sales representative in advance to determine NEC Electronics willingness to support a given application Note 1 NEC Electronics as used in this statement means NEC Electronics Corporation and also includes its majority owned subsidi
69. d Saved Program File lt HEX Editor gt address 0 1 2 3 4 5 6 7 8 9 A B C D E F ID Tag 400000 00 11 22 33 44 55 66 77 88 99 AA BBCC DD EE FF 1100 lt Saved program file gt address 400000h l 00 11 22 33 FF FF FF FF Vad 55 66 77 FF FF FF FF 400010h 00 00 00 00 fee DD EE FF 00 00 00 00 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 136 138 Figure B 2 32 bit CRC Calculation Specifications The generator polynomial used for this table is X 32 XxX 26 x 23 Xx 22 x 16 x 12 x 11 x 10 x 8 x 7 x 5 Xx 4 x 2 x 1 x 0 according to Autodin Ethernet ADCCP protocol standards Binary 0x04c11db7 const u32 CRC32_Tab 256 0x00000000 0x04c11db7 0x09823b6e 0x0d4326d9 0x130476dc 0x17c56b6b 0x1a864db2 0x1e475005 0x2608edb8 0x22c9f00f Ox2f8ad6d6 0x2b4bcb61 0x350c9b64 0x31cd86d3 0x3c8ea00a 0x384fbdbd 0x4c11db70 0x48d0c6c7 0x4593e01e 0x4152fda9 0x5f15adac 0x5bd4b01b 0x569796c2 0x52568b75 0x6a1936c8 0x6ed82b7f 0x639b0da6 0x675a1011 0x791dqd4014 0x7ddc5da3 0x709f7b7a 0x745e66cd 0x9823b6e0 0x9ce2ab57 0x91a18d8e 0x95609039 0x8b27c03c 0x8fe6dd8b 0x82a5fb52 0x8664e6e5 Oxbe2b5b58 0xbaea46ef 0xb7a96036 0xb3687d81 Oxad2 2d84 0xa9ee3033 Oxa4adl6ea 0xa06c0b5d 0xd4326dqd90 0xd0 37027 0xddb056fe 0xd9714b49 0xc7361b4c 0xc3 706fb 0xceb42022 0xca753d95 0xf23a8028 0xf6fb9d9f 0xfbb8bb46 Oxff79a6f1 0xel3ef6f4 0xe5ffeb43 0xe8bccd9a 0xec
70. d by Plug and Play 4 Connection of program adapter lt 1 gt Connect the FP5 GND connector to the program adapter using a GND cable Caution The FP5 and target system may be damaged if the voltage between the FP5 GND and the target system GND is different Use the GND cable to match the voltage before connecting the target cable lt 2 gt Connect the FP5 target connector to the program adapter using the target cable Remark Connect the target system before supplying Vpp Vpp2 power from the target system 5 Startup of programming GUI 7 19 lt 1 gt Click the Start menu All Programs point to NEC Electronics Tools Latest Version and then select PG FP5 VX XX to start the Programming GUI The valid communication modes are automatically detected in the order of the USB and then the serial interface Figure 5 1 Connection Between Programming GUI and FP5 Information Search Communication pork Trying connect to COMS with 9600 Please wait Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 92 138 lt 2 gt The communication mode can also be selected by cancelling this operation with the button and selecting the Setup host connection command in the Programmer menu Figure 5 2 Setup host connection Command Firtl Reset Ser Self Test Update Firmware Update FPGA lt 3 gt Perform settings according to the communication port connected to the FP5 F
71. d communication port channel 2 SIO 3 wire clocked communication port with handshake IIlC ch0 I C channel 0 C channel 1 IIC ch2 I7C channel 2 IIC ch3 IC channel 3 UART ch0O UART asynchronous communication port channel 0 UART ch1 UART asynchronous communication port channel 1 UART ch3 UART asynchronous communication port channel 3 Port pseudo 3 wire A Port ch1 Port pseudo 3 wire B Port ch2 Port pseudo 3 wire C CSl Internal OSC SIO 3 wire clocked communication port using internal oscillator In the case of 78KO All Flash UART Ext FP5CLK UART asynchronous communication port using FP5 clock In the case of 78KO All Flash UART Ext OSC UART asynchronous communication port using external oscillator In the case of 78KO All Flash UART Internal OSC UART asynchronous communication port using internal oscillator In the case of 78KO All Flash Pulse number VPP or the FLMDO count corresponding to the selected communication mode is displayed This item cannot be changed Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 73 138 Speed List box Select the communication rate of the selected communication channel Remark For the available communication speed refer to the user s manual of the target device lt When UART ch0O UART ch1 UART ch2 UART ch3 UART Ext FP5CLK or UART Ext OSC is selected gt e 9600Baud e 19200Baud e 31250Baud e 38400Baud e 5
72. depending on whether or not the downloaded PR5 file is for a target device that supports data flash Figure 4 53 Operation Mode Area The downloaded PR5 file is for a target device that does not support data flash Operation Mode f Chip C Block Start J End m oe The downloaded PR5 file is for a target device that supports data flash Operation Mode Chip M C Block Start Start S End End m m gt as If Chip is selected The entire flash memory area of the target device is subject to command processing such as programming If Block is selected Specify the block range subject to command processing using the Start and End drop down lists These lists show the block numbers where flash memory in the target device is configured Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 76 138 If Area is selected Specify the Area number range subject to rewrite processing by using the Start and End lists The Start End lists display the Area number where the target device is configured Show Address check box Specifies whether numbers or addresses are displayed in the Start End lists If this check box is checked addresses are displayed If it is not checked numbers are displayed Selective programming Verify Read check box This item is not available lt 4 gt Defaults button The default settings stored in the P
73. dialog box This tab consists of the following items lt 1 gt Programming Area Setting area lt 2 gt Target Setting area lt 3 gt Parameter and Setting file area lt 4 gt Object HEX file area lt 5 gt Information area and button lt 6 gt Programming area map area Figure 4 39 Device Setup Dialog Box Target Tab Setup Target Standard Advanced Programming 4rea Setting Division pattern lt 1 gt Unknown lt 2 gt Target Setting Parameter and Setting file C Program Files MEC Electronics Toolset PG FP51 00 bins FPS_FRJ lt 3 gt 79F1166 esf New F166 p1 Save ag lt 6 gt Object HEX file C Program FilesSMEC Electronics Tools PG FP544 7 00 bin lt 4 gt sample hex ye Fri Feb 24 21 13 10 2006 lt 5 gt Information Clear Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 64 138 lt 1 gt Programming Area Setting area The FP5 has a 16 MB flash memory area for saving program files This memory area can be used as four 4 MB programming areas Area 0 to Area 3 or eight independent 2 MB programming areas Area 0 to Area 7 Program files can be downloaded to each programming area and which file PR5 or ESF is to be saved is selectable in programming area units That is files can be individually downloaded in each programming area and the area used can also be selected individually In this area the factor for dividing the progra
74. e file fp5_gui_vxxx_e exe and perform installation following GUI the directions on the installer screen PR5 file Run the downloaded self extracting file pr5xxxxxxx_vxxx exe A pr5 file is decompressed into the folder so copy it to the FP5_PRJ folder where the programming GUI is installed 3 USB driver The USB driver must be installed when connecting the FP5 and the host machine via the USB interface The USB driver is stored into the driver folder in the folder where the programming GUI is installed The USB driver is installed by Plug and Play For details refer to 3 2 1 Installation of USB driver Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 20 138 The folder configuration after programming GUI installation is as follows C Program Files Folder structure for which installation is specified NEC Electronics Tools PG FP5 V1 00 1 bin lt Folder where programming GUI is stored i FP5 exe Folder where PR5 files and ESF files are stored FP5_PRJ lt nothing is stored immediately after installation doc lt Folder where documents are stored driver lt Folder where USB driver is stored fousb sys fousb98 sys fousb in V2 00 fp l 3 2 1 Installation of USB driver The USB driver must be installed after installation of the programming GUI when connecting the FP5 and the host machine via the USB interface When the FP5 is connected to the USB port on t
75. e following e Addition of newly supported functions or devices e Correction of restrictions Use of the latest versions of the programming GUI firmware and FPGA are recommended to assure the FP5 operation The latest versions are available on the following websites URLs Japanese version http www necel com micro ods jpn English version http www necel com micro ods eng Click Version up Service Caution If update of firmware and FPGA is improperly performed FP5 may no longer operate Refer to the following procedure or method for updating Remark PR5 files ESF files and program files are not changed even if firmware and FPGA are updated Be sure to follow the procedure below when updating the firmware and FPGA Step 1 Check the current version Refer to 3 4 1 Checking the current version Step 2 If not the latest version update the programming GUI Refer to 3 4 2 Installation of programming GUI Step 3 Update the firmware using the latest programming GUI Refer to 3 4 3 Installation of firmware update Step 4 Update the FPGA using the programming GUI Refer to 3 4 4 Installation of FPGA update Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 26 138 3 4 1 Checking the current version 1 2 Open the main window of the programming GUI Refer to 4 1 Introduction Check the versions of the programming GUI firmware and FPGA as shown below Programming GUI Help
76. ea Checking FLMDO level OK Version W1 00 Erase flash OF Mame TOF1166 esf Blank check OK Date Wed Mar 26 19 01 29 2007 Write tlash Margin check i Download file s Name sample hex an Update succeeds Date Fri Feb 24 21 13 08 2006 Restarting FPS Address QO0000 007FFF File checksum FFFFFFF PPPPRP coogges Type Arthmetic checksum 16 bit F F F 5 Address OO00000 03F FFF F F PF 5 Value Ba 3E F 55555 5 Target device Hame fOF 1166 Port UART Pulse Num Speed 1 000 O00 bps Firmware Version 1 00 Wedd 05 00 FPS Board HW Vi FPGA V1 Freg Internal Osc T arget Serial Ho HEXEXMNEXEXE Multiply 1 00 Mode 5 5 5555 gt Firmvare Version 1 00 Board HeW W1 FPGA V1 Serial No HEXHXXXXEE gt Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 51 138 8 Update FPGA command The Update FPGA command updates the FPGA Refer to 3 4 Updating Programming GUI Firmware and FPGA and download the relevant update file before starting update Executing of this command displays the following dialog box Figure 4 24 Update FPGA Dialog Box Update FPGA T2211 Updating the FPGA will take several minutes ATTENTION The process of updating your FPGA must WOT be interrupted Without FPGA this FPS SUT will WOT run properly Install new FPGA in your programmer Cancel To continue the FPGA update click the button Clicking the button cancels the FPGA
77. ead data is displayed in the log window each time the ENTER key is pressed When the Write Intel HEX file or Write Motorola SREC file command is executed following this command the read data can be saved in the Intel HEX format or Motorola HEX format Use of the saved file with other tool products is not supported Remark The folder in which program data was saved the last time is displayed in the program data save dialog box Caution The Read command is available only when using a single power supply flash memory microcontroller that supports the Read command Figure 4 31 Program Data Saved Dialog lt When Write Intel HEX file Command Is Executed gt PIR Look in HEX ey Eg E sample hex hay Recent Documents 3 Desktop D My Documenta 8 My Computer q Places Files of type HEX Files HE Cancel Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 57 138 Figure 4 32 Program Data Save Dialog Box lt When Write Motorola SREC file Command Is Executed gt Look in 9 HEX 4 e Ea My Recent Documents ff Desktop L My Network File name sample s Places Files of type Sec rec 3 Cancel Clicking the button saves the program data into a file and closes the dialog box Clicking the button closes the program data save dialog box without saving the program data into a file 6 Security command irre Device Setup d
78. ecoming hot Be careful of electrical shock There is a danger of electrical shock if the product is used as described above in 1 Circumstances not covered by product guarantee The AC adapter supplied with the product is exclusively for this product so do not use it with other products Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 5 138 Target Readers Purpose Organization How to Read This Manual PREFACE This manual is intended for users who use the PG FP5 hereinafter referred to as FP5 when designing and developing a system using an NEC Electronics on chip flash memory microcontroller This manual is intended to give users an understanding of the basic specifications and correct use of the FP5 This manual includes the following sections e Overview e Hardware installation e Software installation e Programming GUI usage e Example of operation using programming GUI e PG FP5 operation in standalone mode e Connectors and cables e Notes on target system designs e Target interface specifications e Troubleshooting e Error messages e Supplementary information It is assumed that the readers of this manual have general knowledge of electricity logic circuits and microcontrollers In the explanations of the operation of the applications it is also assumed that the readers have sufficient knowledge of Windows For the usage and terminology of Windows refer to each Windows manua
79. ee e cece eens esse eee eesaeeeeeeeeeeesaaeeeesaaeeeeaeaeeesaeeessaeeeesaneeeeas 123 101 Problems Dunno Starup asa ech ee Ae ee ah ee en eh ce Neh A A Ge 123 10 2 Problems During Operations e a a a asehsasd heeded eda neel 124 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 8 138 APPENDIX A MESSAGES 5 ricerca aise esas pate atic ee ge wah ad ic apd tc ee nce idee Be ee dee ioe 127 AT Message FomMmMales meise eae sence meh en tenn Stra Fo Se OR SSR St Sr a eR Ee a ee 127 A 2 Error Warning Dialog Boxes for Programming GUI Operation ccccceseeeeeceeeeeeseeeeeeeeeeeeeaeeeeseeeeeesaeeeeeaaas 128 A 3 Information Dialog Boxes for Programming GUI Operation cccccccccseeeeeeeeeeeeeeeeeeeseeeeeseeeseeseeeeeesaeeeeeeeas 131 A 4 Error Messages Displayed in FP5 Message Display ccccccccceeeeeeeeeeeeeeeeeeeseeeesseeeeseeeesaeeeseeeeseeeeesaaeeess 133 APPENDIX B SUPPLEMENTARY INFORMATION c cccccccseseeeeeeeeeeeeeeeesaeeeeeseeeeesseeeesaaeeeeseeeeesaaeeeesaaeees 135 APPENDIX C REVISION HISTORY oriana a oda Esaa tested TEA nade een dese eee 138 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 9 138 CHAPTER 1 OVERVIEW The FP5 is a tool that erases writes and verifies programs on an NEC Electronics on chip flash memory microcontroller on the target system or program adapter 1 1 Features e Supports on chip 2 power supply flash memory microcon
80. els the firmware update Clicking the button opens the Open firmware file dialog box Figure 4 22 Open firmware file Dialog Box Open firmware file Look in B fimware T c Ez 2 Zi W WILE Pe 3 My Recent Documents Desktop My Documents hy Computer My Network File name p5 fw v O00 rec Places Files of type S rec Hes files recs s hesi rec s hent Cancel Select the firmware file fp5_fw_vxxx rec and then click the button Caution Do not use FP5 firmware other than the one posted on the website otherwise a defect may occur Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 50 138 Some commands are sent to the FP5 and the update progress status is displayed in the action log window The message Firmware Update succeeds which indicates normal completion of firmware update and Restarting FP5 which is equivalent to RESET command processing is automatically performed The new version can then be checked as Firmware Version Vx xx The update takes about 10 seconds Figure 4 23 Action Log Window When Firmware Update Is Finished a F men E Mn Programmer gt VErSlon_up no query O FP5GU 1 00 p ox Firmware 7 00 reparing storage Bingtica ol How loading O ROBS Parameter and Setting file Name fOF 1166 pro FPS Selfprogramming V1 00 n
81. evice Name fF 1166 Port UART Pulse Num Speed 1 000 O00 bps Widd 05 00 FPS Freq Internal Osc T arget Multiply 1 00 Mode For Help press FI 4 Click the button in the error message dialog box and then press the POWER button on the FP5 to turn on power Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 33 138 5 Click the Programmer menu on the menu bar and select Setup host connection the Host Connection dialog box will then be opened Select the communication mode used and then click the button Figure 3 14 Setup host connection Command eve Device Help Setup host connection Logging Select Programming area Reet nelt Test Update Firmware Update FROA Figure 3 15 Host Connection Dialog Box Host Connection C Serial Cancel Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 34 138 6 Communication with the host machine is established Board H W V1 FPGA V1 is displayed in the action log window thus the version can be checked Figure 3 16 Version Confirmation After FPGA Update Is Finished Ei FP5 EB le Programmer Device Help Firmware Yersion V 1 00 Board Hel W1 FPGA V1 erla Jo rrr wo wr wr we As gt For Help press FI FPS GUI Firmware Prog Area Bali Frogrammer 1 00 1 00 0 Parameter and Setting file Mame Version Mame Date
82. figuration e Package contents e System configuration 2 1 Package Contents Please verify that you have received all the parts listed in the package contents list included with the FP5 package If any part is missing or seems to be damaged please contact an NEC Electronics sales representative or distributor 2 2 System Configuration The FP5 system configuration is as shown in the diagram below Figure 2 1 FP5 System Configuration Serial cable or USB cable AC adapter Host machine Target cable Target system or Program adapter Notes 1 The target system and program adapter are not included in the FP5 package 2 The program adapter is a product of Naito Densei Machida Mfg Co Ltd The FP5 is connected to the host system via an RS 232C serial cable or a USB cable The FP5 is connected to the target system via a target cable For details on the target cable specifications refer to CHAPTER 7 CONNECTORS AND CABLES 2 2 1 Host machine A host machine is used to communicate with the FP5 Windows 2000 or Windows XP is required for using the programming GUI The host machine must also be equipped with a serial port or a USB port Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 15 138 2 2 2 Serial cable Communication is established by using a serial cable to connect the host machine serial port and FP5 serial connector RS 232C cross cable connection For deta
83. file 3 System connection and installation of USB driver 4 Connection of program adapter 5 Startup of programming GUI 6 Setting of programming environment 7 Execution of Autoprocedure E P command 8 System shutdown Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 91 138 1 Installation of programming GUI Refer to CHAPTER 3 SOFTWARE INSTALLATION and install the programming GUI in the host machine if it has not been installed yet 2 Installation of PRS file Refer to CHAPTER 3 SOFTWARE INSTALLATION download the PR5 file for the wPD78F1166 and copy it to the FP5_PRJ folder in the programming GUI installation folder 3 System connection and installation of USB driver lt 1 gt Connect the USB connector of the FP5 to the USB port on the host machine using a USB cable lt 2 gt Plug the FP5 power supply connector into the AC outlet 100 to 240 V using the supplied AC adapter lt 3 gt Press the button on the FP5 to turn on power Do not connect the program adapter target device before turning on power Confirm that the POWER LED on the FP5 is off and that Commands gt is displayed in the message display indicating that the FP5 is ready for operation If not the cause may be a defect in the FP5 so consult an NEC Electronics sales representative or distributor lt 4 gt Refer to CHAPTER 3 SOFTWARE INSTALLATION and install the USB driver in case Found New Hardware Wizard is starte
84. g Voltage Setting Voltage Setting Utility Misc Utility Misc button button ResetFP5 gt Command execution button On the main menu level the FP5 shows the menu items that can be selected On the submenu level the first line in the message display shows the menu item and the second line shows the response from the FP5 if any A command prompt gt displayed at the end of a menu line indicates that it is selectable with the button or that the menu command can be executed If the command prompt gt is not displayed at the end of a menu line it means that the function is available only for display When power to the FP5 is turned on the POWER LED turns on and Commands gt is displayed in the message display The status LEDs indicate the status of communication with the device and the result of execution as follows on LED OF The selected command has been executed correctly reen The command that has been correctly executed is displayed in the message display The selected command is under execution Orange The detailed execution status is displayed in the message display The selected command has been terminated by an error R rea The error details are displayed in the message display Remark For details on the errors displayed in the message display refer to error message A 4 Error Messages Displayed in FP5 Message Display
85. g Box Open FPGA file Look in B fpga ee EJ 2 BZT pga_v100 rec My Recent Documents 3 Desktop My Documents My Computer bly Network File name lip5_fpga 1 00 rec i Places nr me lt Files of type S rec Hex files recs hex recs s2 hex Cancel Select the FPGA file fp5_fpga_vxxx rec and then click the button Caution Do not use an FP5 FPGA other than the one posted on the website otherwise a defect may occur Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 32 138 3 Some commands are sent to the FP5 and the update progress status is displayed in the action log window The message Result pass which indicates normal completion of firmware update and FP5 Power will be switched OFF now which is equivalent to processing when the POWER button is turned off is automatically executed The update takes about 30 seconds Figure 3 13 Action Log Window When FPGA Update Is Finished Baa Frogrammer FFS GUI 1 00 Firmware 1 00 Frog rea Farameter and Setting file Name fOF 1166 pro Version W100 Name FOF 1166 est Wed Mar 28 19 01 29 2007 Download file sample hex Fri Feb 24 21 13 08 2006 OOO000 00 FFF E 1100 Communication within host PO and FlashProgrammer i2 broken of eae Seana a Arithmetic checksum 16 bit OOO000 03F FFF B23E i Target d
86. g GUI operation The following operations can be performed with the programming GUI The settings on the host machine are saved in an INI file e ESF file creation e Downloading program files PR5 files and ESF files saved into FP5 internal flash memory e Saving log files e Editing program files by using HEX editor e Checksum calculation e Programming command execution for Autoprocedure E P whether execution is completed normally is indicated by beeps e Execution of self testing function lt Standalone operation gt The FPS can operate in standalone mode whereby commands such as Erase Program and Autoprocedure E P can be executed without using the host machine It is suitable for use in production lines during mass production or upgrading programs in the field The following can be performed in standalone operation e Execute programming command e Confirm contents of each downloaded file lt Program files gt Intel HEX format or Motorola HEX format files can be used Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 11 138 lt PR5 files gt PR5 files parameter file contain parameter information required for writing programs to the flash memory in the target device Do not change the PR5 file data because it affects assurance of written data otherwise the programming GUI will not recognize the PR5 file lt ESF files gt ESF files customized setup file contain
87. gain Write failed Write operation failed Either the device was not blank before writing or a device defect is causing this error Write retry err Write retry error Either the device was not blank before writing or a device defect is causing this error Wrt Timeset err Write time setting error The parameter file may contain invalid data Contact NEC Electronics Verify failed Verify failed The data in the target device s flash memory is not the same as in the FP5 IVrf Timeout Internal verify timed out There was a communication problem between the FP5 and target device Try the operation again Verify failed Internal verify error An error was occurred while the write data level was being checked Erase and write the device again VGT Comm err Device communication error There was a communication problem between the FP5 and target device Try the operation again SUM Comm err Device communication error There was a communication problem between the FP5 and target device Try the operation again SCF Comm err Device communication error There was a communication problem between the FP5 and target device Try the operation again 080 Vrf Timeout Verify timed out There was a communication problem between the FP5 and target device Try the operation again ad Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 135 138 APPENDIX B SUPPLEMENTARY INFORMATION Figure B 1 Relationship Between HEX Editor an
88. get System Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 123 138 CHAPTER 10 TROUBLESHOOTING This chapter explains troubleshooting Remark Using the self testing function the user can find out the reason why the FP5 does not operate normally such as a defect in the FP5 or problems in other hardware For how to use the tool refer to 4 3 2 6 Self Test command 10 1 Problems During Startup This section explains troubleshooting for problems that may occur between software installation and startup 1 The button on FP5 is pressed but the LED does not turn on Cause The cause may be a poor connection of the FP5 or AC adapter or a possible defect Action Confirm that the AC adapter is plugged in firmly If this does not resolve the problem consider repair 2 When the USB cable is connected and power to the FP5 is turned on the driver is not recognized by Plug and Play Cause The USB connector may not be inserted properly into the USB port Action Confirm that the USB connectors are fully inserted into the USB ports of the host machine and the FP5 Alternatively disconnect the USB connector and insert it again after a short time 3 The USB driver file cannot be found at a specified location Cause The programming GUI may not have been installed correctly Action Refer to CHAPTER 3 SOFTWARE INSTALLATION and reinstall the programming GUI If the file is requested by Plug and Play
89. get device programming in accordance with the target device type Basically Vop Vpp2 voltages for target device programming should be supplied from the target system Supplying from the FP5 is possible but the current flow is not large enough to operate the whole target system maximum of 200 mA Therefore supply voltage via the FP5 only when a dedicated writing adapter such as an FA adapter is used Figure 4 55 Supply voltage Area Supply voltage Vdd Ev 05 00 Vdd w 00 00 On Target E FLMIDO wdd GLE vdd RESET vdd Serial Gut wdd serial h dd Vdd V box The default Vdd level set in the PR5 file is displayed in volts V This level can be changed by input Vdd2 V box The default Vdd2 level set in the PR5 file is displayed in volts V If the target device specifications require two types of Vdd for writing to flash memory specify a lower voltage for Vdd2 e g Voo 5 0 V Vpp2 3 3 V This level can also be changed by input On Target check box Select this check box when supplying the Vpp Vpp2 voltages from the target system Caution Set the values of the Vpp Vpp2 voltages supplied from the target system for Vdd V and Vdd2 V before selecting this check box The target system may be damaged if proper values are not set The Voo pin power supply detection function varies depending on the setting of the On Target check box e When Vp is set to be supplied from FP5 On Target check b
90. hat no hardware is connected and click the button self testing will then be executed If the button is clicked self testing will not be executed Figure 4 16 Confirmation Before Starting Self Testing INFORMATION T2212 You must be careful before start Self test ATTENTION Remove any plugs From Target and Remote connector before starting Any hardware attached to those connectors may be demaged by this test Stark Self kest Cancel Self testing takes about three seconds and the result will be displayed in the action log window and a result dialog box If the message Selftest FAILED is displayed the cause may be a defect in the FP5 so consult an NEC Electronics sales representative or distributor Figure 4 17 When Self Testing Result Is PASSES lt Action Log Window gt gt selftest PERK CAUTION Remove any plugs from Target and Remote Connector before starting Any hardware attached to those connectors may be damaged by this test PERE CAUTION Target and Remote connector unplugged If yes press s to start the test s FPGA Test PASS Power Supply Test PASS Target and Remote Interface Test PASS Selftest PASSED gt Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 48 138 Figure 4 18 When Self Testing Result Is PASSES lt Result Dialog Box gt F self test FPS self test OK FPGA Test PASS Power Supply Test Pass Target and
91. he Voltage Setting menu is used to check the voltage level setting used when programming the target device currently connected to the FP5 The settings downloaded to the valid programming area are displayed The settings cannot be changed using this menu Table 6 4 Voltage Setting Menu Voltage Setting gt Vdd Displays the value of Voo supplied to the target device connected to the FP5 in volts Vdd2 Displays the value of Von2 supplied to the target device connected to the FP5 in Vdd Source Indicates the source of Voo supplied from the target device as either of the following Voo from PG Von is supplied from the FP5 Voo from device Voo is supplied from the user system Clk Level Indicates the voltage level of the clock signal as either of the following VDD VDD2 Serial Level Indicates the voltage level of the serial communication signals The high level of the serial communication signal is indicated as either of the following VDD VDD2 Indicates the value of Vere supplied to the target device connected to the FP5 in volts Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 109 138 6 3 5 Utility Misc menu The Utility Misc menu is used to reset the FP5 main unit tune the LCD contrast check the firmware version check the name and version of the PR5 file downloaded check the name of the program file downloaded and check the checksum of program files The settings downloaded to
92. he host machine for the first time the operating system automatically detects the FP5 by Plug and Play and the Welcome to the Found New Hardware Wizard will start In this section displays of Windows XP are used for explanation Displays are different when using Windows 2000 but installation can be performed in the same manner 1 Start up the host machine 2 Use a USB cable to connect the FP5 to the host machine plug in the AC adapter and the AC adapter to the FP5 power supply connector 3 Press the POWER button on the FP5 the POWER LED will then turn on and Command gt is displayed in the message display 4 The following window appears Select No not this time and click the button Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 21 138 Figure 3 1 Found New Hardware Wizard Window lt 1 gt Found Mew Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CO or on the Windows Update Web site with your permission Read our privacy policy Can Windows connect to Windows Update to search for oftware C Yes this time only 0 Yes now and every time connect a device Click Next to continue 5 The following window appears Select Install from a list of specific location Advanced and click the button Figure 3 2 Found Ne
93. he target device and writes the programs to the flash memory The target progress status of this command is displayed as a percentage in the action log window When execution of this command is completed the programming GUI displays the result of command execution in the target device Command options after execution of this command depend on the settings of the Verify after Program Security after Program and Checksum after Program check boxes in the Command options area on the Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 56 138 Advanced tab in the Device Setup dialog box For details on these check boxes refer to 4 3 3 12 c lt 2 gt Command options area 4 Verify command The Verify command transmits the memory contents program files in the FP5 valid programming area to the target device verifies the data written to the flash memory in the target device and receives the result The target area can be set in the Operation Mode area on the Standard tab in the Device Setup dialog box The progress status of this command is displayed as a percentage in the action log window When execution of this command is completed the programming GUI displays the result of command execution in the target device 5 Read command The Read command loads data on the flash memory in the target device and saves it as a file When the View command is executed following this command 4 KB r
94. ialog box will be reflected in the target device For details on the security functions refer to The Security command sets the security functions for the target device When this command is executed the settings made in the Security command option area on the Advanced tab in the 4 3 3 12 c lt 3 gt Security command option area 7 Checksum command The Checksum command reads the checksum calculated in the target device and displays it in the action log window When using a 78KO0S Kx1 microcontroller or the wPD78F9334 this command also displays the checksum of the program file and compares both Remark The checksum read by this command differs from the one displayed in the File checksum area in the programmer parameter window For details on the File checksum area refer to 4 3 1 2 Checksum command The checksum is calculated as follows lt When using 78KO 78KOS other than 78KOS Kx1 microcontrollers and PD78F9334 78KOR or V850 gt Method Subtraction 16 bit arithmetic Range Area set in the Operation Mode area on the Advanced tab in the Device Setup dialog box Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 58 138 Figure 4 33 Action Log Window After Checksum Command Execution lt When using 78K0 78KOS other than 78KOS Kx1 microcontrollers and PD78F9334 78KOR or V850 gt gt sum 0x623E OK gt Remark With the 16 bit arithmetic subtraction
95. ice Setup dialog box is clicked and files are downloaded Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 88 138 4 7 Status Bar The status bar shows the progress as a color or with a message when a PR5 file ESF file or program file is selected or when a command is executed for the target device Figure 4 67 Status Bar Table 4 4 Status Bar Displays es Immediately after the programming GUI is started A command execution is in progress or a PR5 file ESF file or program file is being downloaded Pass A command execution or downloading of a PRS file ESF file or program file is completed normally A command execution or downloading of a PRS file ESF file or program file is terminated abnormal Flash Memory Programmer PG FP5 Preliminary User s Manual 4 8 Hint Bar ZUD CD 07 0051 89 138 By pointing to a command on the menu bar or a button with the pointer the hint for the command or button is displayed on the hint bar Figure 4 68 Hint Bar ile Programmer Device Help Blank check Chip ERROR Hot Blank Erase needed Erase Chip OF Erase OF Write Chip iiz 204 305 40 SOs elz 700z alz 908 100z JK Write OF Erase Program OK k Erase and program the target device FPS GUI Firmware Prog Area Programmer WOO W100 0 Parameter and Setting file Name Yersiorni Name Date Mame Date Address Type Address Value Hame
96. ice is selected Prewrite Timeout Prewrite timed out A communication problem occurred between the FP5 and target device Try the operation again Prewrite failed Prewrite retry error The device may be damaged 040 Erase Timeout Erase timed out A communication problem occurred between the FP5 and target device Try the operation again Erase failed The device may be damaged Erase timed out The device may be damaged Erase time setting error The PR amp d file may contain invalid data Contact NEC Electronics 050 Bin Timeout Blank check timed out A communication problem occurred between the FP5 and target device Try the operation again Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 134 138 Error Condition Possible Workaround 051 Blank chk failed Blank check failed The device connected is not empty Use the erase command before programming Wrb Timeout Writeback timed out There was a communication problem between the FP5 and target device Try the operation again 061 Writeback failed Writeback failed A device defect is most probably causing this error 062 Wrb retry exceed Writeback retry timed out A device defect is most probably causing this error Wrb Timeset err Writeback time setting error The parameter file may contain invalid data Contact NEC Electronics Write timeout Write timed out There was a communication problem between the FP5 and target device Try the operation a
97. ights of third parties by or arising from the use of NEC Electronics products listed in this document or any other liability arising from the use of such products No license express implied or otherwise is granted under any patents copyrights or other intellectual property rights of NEC Electronics or others e Descriptions of circuits software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples The incorporation of these circuits software and information in the design of a customer s equipment shall be done under the full responsibility of the customer NEC Electronics assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits software and information e While NEC Electronics endeavors to enhance the quality reliability and safety of NEC Electronics products customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely To minimize risks of damage to property or injury including death to persons arising from defects in NEC Electronics products customers must incorporate sufficient safety measures in their design such as redundancy fire containment and anti failure features e NEC Electronics products are classified into the following three quality grades Standard Special and Specific The Specific quality grade applies only to NEC Electroni
98. igure 4 56 Command options Area Command options if Blank check before Erase Verify after Program W Security after Program Ghecksum after Program Run after Disconnect Blank check before Erase check box If this check box is selected the Blank Check command is automatically executed before the Erase and Autoprocedure E P commands are executed Verify after Program check box If this check box is selected the Verify command is automatically executed after the Program and Autoprocedure E P commands are executed Security after Program check box If this check box is selected the Security command is automatically executed after the Program and Autoprocedure E P commands are executed Checksum after Program check box If this check box is selected the Checksum command is automatically executed after the Program and Autoprocedure E P commands are executed Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 80 138 Run after Disconnect check box If this check box is selected the RESET signal level changes from low level to Hi Z after each command If this check box is not selected the RESET signal changes to low level after each command is finished This check box becomes available if the On Target check box in the Supply voltage area is selected If selected the written program can be automatically executed after each command is finished lt 3 g
99. igure 4 59 Disable Chip Erase Warning Dialog Box Warning Clicking the button determines the selection of the Disable Chip Erase check box Clicking the Cancel button cancels the selection of the Disable Chip Erase check box Caution If the Disable Chip Erase function is enabled erasure for the device will no longer be possible and the Disable Chip Erase function will no longer be able to be disabled Disable Block Erase check box If the Security command is executed with this check box selected the Erase command is disabled for all the selected blocks in the flash memory selected with Block in the Operation Mode area on the Standard tab in the Device Setup dialog box This setting is cleared if the Erase command is executed with Chip selected in the Operation Mode area Disable Program check box If the Security command is executed with this check box selected the Erase command for all the selected blocks in the flash memory selected with Block in the Operation Mode area on the Standard tab in the Device Setup dialog box and the Program command is disabled This setting is cleared if the Erase command is executed with Chip selected in the Operation Mode area Disable Read check box If the Security command is executed with this check box selected the Read command is disabled This setting is cleared if the Erase command is executed with Chip selected i
100. igure 5 3 Communication Parameter Setup Host Connection C Serial Cancel lt 4 gt Click the button to enable the new port settings Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 93 138 lt 5 gt When the programming GUI is correctly started the main window will be opened The following message will be displayed if the programming GUI is started for the first time or valid programming areas have been cleared so click the OK button The Device Setup dialog box will be opened Figure 5 4 Message Displayed at the First Startup of Programming GUI Information 1 I 2208 Information defined in initial file is not enoueh or it is not matched with FFS Jj Setup parameters is needed Frogrammer ever FPS GUII 1 00 Firmware Version 1 00 Firnware 1 00 Board H W W1 FPGA 1 Dinghies Serial No EXEXEXEEEE seh Parameter and Setting file Name Version Download file Name unknown datat D ate Address File checksum Address Target device Pulse Num Speed Wide Freq Multiply For Help press FI Flash Memory Programmer PG FP5 Preliminary User s Manual 6 Setting of programming environment lt 1 gt Execute the Setup command in the Device menu in the main window Figure 5 6 Setup Command Blank check craze Program Read DECHE ITY b Tens PIEN IE DAR Checksum nE Te EPER REE aor he m h Autoprocedure 1E r
101. ils on the serial cable specifications refer to CHAPTER 7 CONNECTORS AND CABLES 2 2 3 USB cable Communication is established by connecting the host machine USB port and the FP5 USB connector mini B type using a USB cable For details on the USB cable specifications refer to CHAPTER 7 CONNECTORS AND CABLES 2 2 4 AC adapter Connect the FP5 power supply connector to the AC adapter included with the FP5 For details on the AC adapter specifications refer to 1 6 Hardware Specifications Caution The AC adapter is exclusively for the FP5 so do not use it for other products 2 2 5 Target cable A 16 pin connector is equipped on the tip of the target cable which is connected to the target system or the program adapter For details on the target cable specifications refer to CHAPTER 7 CONNECTORS AND CABLES 2 2 6 GND cable To reinforce the GND use a GND cable to connect the FP5 GND connector and the signal GND of the target system or program adapter For details on the GND cable specifications refer to CHAPTER 7 CONNECTORS AND CABLES Caution The FP5 and target system may be damaged if the voltage between the FP5 GND and the target system GND is different Use the GND cable to match the voltage before connecting the target cable 2 2 7 Target system The target system must be equipped with a device interface that complies with the target cable specifications For details on the specifications refer to CHAPTER 7 CONNECTORS
102. ion on PR5 files ESF files and program files Figure 4 48 Information Area and Button Infor mation C Clear Information area A warning message will be displayed in this area if there is a mismatch between PR5 files ESF files and program files saved in the FP5 and information held in the programming GUI button Information of PR5 files ESF files and program files which is set to the current valid programming area can be deleted Caution The settings are not reflected to the FP5 internal memory unless the button is clicked in the Device Setup dialog box Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 70 138 lt 6 gt Programming area map area The programming area status can be checked in this area The FPS programming areas whose information matches information held in the programming GUI are displayed in light green In the valid programming area the names of ESF files PR5 files and program files and programming area numbers are displayed in black These items appear dimmed in invalid programming areas If no area information is held in the programming GUI Unknown is displayed The FP5 programming areas whose information does not match information held in the programming GUI are displayed in pink The information held in the programming GUI is displayed in such areas Figure 4 49 Programming Area Map Area Target Standard Advanced Programming Area Setting Division pattern
103. irmware Prog Area Programmer W100 W100 0 Parameter and Setting file Name Y ersion Name Date Mame Date Address Type Address Value Hame Fort Pulse Num Speed Vdd Freq Multiply Mode Range roF1166 pr5 V7 0 for 1166 est Wed Mar 20 19 01 29 2007 Download file sample hex Fri Feb 24 21 13 08 2006 OOO000 00FFF File checksum Arthmetic checksum 16 bit OOO000 03F FFF B23E Target device ToF1166 UART 0 1 000 O00 bps 05 00 FPS Internal Osc T arget 1 00 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 55 138 4 3 3 Device menu The following pull down menu appears by clicking the Device menu This menu includes commands mainly related to programming to the target device such as erase write and verify Figure 4 30 Device Menu W FPS File Programmer PEENE Help 1 Blank check 2 AIE cute aan 3 Zo EE eS Proeram 4 Verity Ver a 5 Ee Vers AE aep 6 Board Hell W1 TE Write Intel HES file Serial Ho amp Write Motorola SREC file T Checksum r 8 Autoprocedure E F 9 1 0 Signature read 11 Get Security Settings 1 2 Setup 1 Blank check command Ld dialog box If the flash memory has already been erased Blank check OK is displayed If the flash memory The Blank Check command performs blank check for the flash memory in the
104. is attached Action 2 lt 1 gt Turn on power to the FP5 while it is connected to the host machine via a USB port right click the driver marked with the or x and then click Delete E on the shortcut menu lt 2 gt Execute Scan for hardware changes in the Device Manager lt 3 gt Reinstall the USB driver with Plug and Play For how to install the USB driver refer to 3 2 1 Installation of USB driver Cause 3 The FP5 may not have been recognized when connected via USB hub Action 3 Try the following lt 1 gt Disconnect the USB cable and then reconnect it lt 2 gt Connect the USB connector to another port on the USB hub lt 3 gt If the above measures do not resolve the problem do not use the USB hub but directly connect the USB connector to the USB port of the host machine Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 125 138 2 The following messages are displayed in the action log window and the flash memory programming mode cannot be entered Synchronization with device failed No more device versions to check Please check connection Cannot connect to device Cause 1 The connection between the target system and FP5 may be incorrect Action 1 lt 1 gt Connect the SO TxD and SI RxD signals from the FP5 with TxD SO and RxD SI of the target device so that signal input output are consistent FP5 Target device SO TxD TxD SO SI RxD RxD SI st gantt
105. is connected This must be especially noted in a target system in which an external watchdog timer is used Connect the RESET signal of the FP5 at a point where the status of the FP5 RESET signal and that of the CPU RESET pin are the same Correct connection lt 1 gt Target device FP5 RESET RESET IC is an open drain type circuit Connect a resistor to the portion above enclosed in the dotted line aS necessary Correct connection lt 2 gt Target device FP5 RESET Correct connection lt 3 gt Target device FP5 RESET Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 117 138 Target Device Pin Recommended Design RESET Correct connection lt 4 gt Target device FP5 RESET Correct connection lt 5 gt Target device FP5 RESET I O pins When a target device pin used by the FP5 is also connected to the input of an external device and if that target device malfunctions disconnect the external device as shown in the portion below enclosed in the dotted line or make it output high impedance like dotted line Example Target device FP5 input pin External device Adverse effect If a target device pin used by the FP5 is also connected to the output of an external device like dotted line and a signal collision occurs disconnect the external device as shown in the portion below enclosed in the dotted line Example Target device FP5 output pin gt Conflict Ex
106. k the information in the Supply voltage area to make sure that they are set in accordance with the programming environment used In this example it is assumed that the following settings are made Supply voltage area Vdd V 5 00 V Follows the value set in the PR5 file Vdd2 V 0 00 V Not used follows the value set in the PR file On Target check box Cleared Power is supplied from FP5 Command options area Blank check before Erase Selected Security command option area Not used Remark Set Vdd V and Vdd2 V and select the On target check box before supplying Vpp Vpp2 power from the target system lt 13 gt Click the button in the Device Setup dialog box Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 99 138 lt 14 gt The programming GUI loads the PR5 file ESF file and program file to the FP5 When setting is completed the following window will be displayed Setting of the programming environment is then finished Figure 5 16 Downloading of PR5 File ESF File and Program File Firmware Version V1 00 Board H W 1 FPGA V1 Serial Ho HEEXHHNEHHEX gt gt downprm How loading JE rdownset How loading JE k lod fname sanple hes ftime 2006 O2 24 21 13 Preparing storage 0K Now loading Address range OXUOOU0U0 to x FFFF CROS2 O 61D5F67C JK gt FPS GUI Firmware Prog Area Programmer 1 00 1 00 0 Parameter and Setting file
107. l To understand the overall operation Read this manual according to the CONTENTS To know the cautions of target system See the CHAPTER 7 CONNECTORS AND CABLES CHAPTER 8 NOTES ON TARGET SYSTEM DESIGNS and CHAPTER 9 SPECIFICATION OF TARGET INTERFACE CIRCUITS Also see the user s manual for each target device Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 6 138 Conventions Note Footnote for item marked with Note in the text Caution Information requiring particular attention Remark Supplementary information Numeral representation Binary Xxxx or xxxxB Decimal xxxx Hexadecimal OxxxxH or xxxxH Any character or item on screen Name of commands dialog boxes or area Terminology The meanings of the terms used in this manual are as follows Program adapter Conversion adapter to write programs to target device PR6 file Text file containing programming information specific to the target device Parameter file pr5 for PG FP5 ESF file Text file containing programming environment settings specified with programming GUI Customized setup file esf for PG FP5 Program file HEX file of Intel HEX format type or Motorola HEX format type Note The program adapter FA xxxx is a product of Naito Densei Machida Mfg Co Ltd If you have any questions about the FA adapter board contact Naito Densei Machida Mfg Co Ltd Tel 81 42 750 4172 Flash Memory Prog
108. le failed invalid Re set the connection between the host machine and FP5 E1206 File name is not valid The specified file cannot be opened for writing E 1501 This file is not valid The file opened with the HEX Editor is invalid E1502 Caution Data Flash access unit is DWORD E1503 Caution Out of range E1504 Caution Start address should not larger than End address E1505 Caution End address should not smaller than start address start end address E 1506 The file cannot be read The file opened with the HEX Editor is invalid E1507 No HEX data The program file format may be incorrect factor The GUI will not operate normally because no valid PRS file has been defined Set it in the Device Setup dialog box The specified file cannot be opened Set it in the Device Setup dialog box An incorrect format or value was detected in the ESF file The ESF file defined in the INI file will be used instead Set it in the Device Setup dialog box An incorrect format or value was detected in the PR5 file The ESF file defined in the INI file will be used instead Set it in the Device Setup dialog box Downloading of the PR5 file has failed The PR5 file may be invalid Re set the connection between the host machine and FP5 Downloading of the ESF file has failed The ESF file may be The data flash area can be accessed in double word units but an access was attempted in unsupported units The addres
109. le internal flash memory areas programming areas and write it New PRS5 files ESF files and program files cannot be downloaded to the FP5 in this mode Programming is possible only in environments to which files were downloaded last time by the programming GUI 6 2 Description of Buttons Message Display and Status LEDs In standalone mode command menus are selected and executed using the control button NEXT ENTER or on the top of the FP5 main unit The selected command menu is displayed in the message display and the result of command execution is indicated by the message display and status LEDs The command menu consists of two levels of menus a main menu and submenu The button is used to display the next menu on the same level The button is used to select or execute the menu item currently displayed The button is used to cancel the current selection and return to the previous menu level The command currently running cannot be stopped except for the Read command The button executes the Autoprocedure E P command It can be executed from any command menu and the display returns to the same command menu after execution Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 104 138 Figure 6 1 Menu Status Transition by Button Input Main menu Submenu ENTER button Commands Type Setting X _ CANCEL button Type Setting Option Setting Option Settin
110. menu About Firmware FPGA Programmer menu gt Reset command Programmer menu gt Reset command Note Display example of Reset command gt ver Firmware Version V1 00 Firmware version Board H W V1 FPGAV1 FPGA version Serial No XXXXXXXXXX gt 3 The latest versions are available on the following websites URLs Japanese version http www necel com micro ods jpn English version http www necel com micro ods eng Click Version up Service lt Programming GUI gt Click FlashProgrammer in the Each Development Tool column and then click FP5_ GUI lt Firmware gt Click FlashProgrammer in the Each Development Tool column and then click FP5_ Firmware lt FPGA gt Click FlashProgrammer in the Each Development Tool column and then click FP5 FPGA 3 4 2 Installation of programming GUI Run the downloaded executable file fo5 gui_vxxx_e exe Perform installation following the directions on the installer screen Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 27 138 3 4 3 Installation of firmware update Install the latest firmware by using the latest programming GUI Run the downloaded self extracting file fo5_fw_vxxx exe Firmware file fo5 fw_vxxx rec will then be decompressed into the folder so copy it to any folder xxx indicates the firmware version 1 Click the Programmer
111. mming area can be selected from 4 4 MB per area or 8 2 per area If the division factor is changed data on the programming area map is cleared In addition the valid programming area can be selected If the valid programming area is changed the focused area in the Programming area map area is also changed By default the division factor is set to 4 and programming area 0 is selected Figure 4 40 Programming Area Setting Area Programming rea setting Division pattern Division pattern radio buttons 4 division 4 MB DIV The division factor is set to 4 4 MB per area 8 division 2 MB DIV The division factor is set to 8 2 MB per area Programming Area Setting list If 4 division 4 MB DIV is selected the valid programming area is selected from areas 0 to 3 If 8 division 2 MB DIV is selected the valid programming area is selected from areas 0 to 7 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 65 138 lt 2 gt Target Setting area In this area ESF files can be created and selected and PR5 files and program files can be selected A warning message will be displayed in the Information area if there is a mismatch between PR5 files ESF files and program files saved in the FP5 and information held in the programming GUI Information of PR5 files ESF files and program files which is set to the current valid programming area can be deleted Figure 4 41 Target Setting
112. n the Operation Mode area Disable Boot block cluster reprogramming check box If the Security command is executed with this check box selected the boot block set in the Boot Block end drop down list is regarded as the last block in the Block protection area and then the boot area is set and rewriting to the area is prohibited If this check box is selected the following dialog box appears Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 82 138 Figure 4 60 Disable Boot block cluster reprogramming Warning Dialog Box Warning A T2402 Caution When Boot block cluster reprogramming is disabled chip cannot be erased and programmed any more Cancel Clicking the button determines the selection of the Disable Boot block cluster reprogramming check box Clicking the button cancels the selection of the Disable Boot block cluster reprogramming check box Caution If the Disable Boot block cluster reprogramming function is enabled rewriting of the boot area and execution of the Erase command with Chip selected in the Operation Mode area will no longer be possible for the device and the Disable Chip Erase function will no longer be able to be disabled lt 5 gt Block protection area In this area block settings when the Disable Boot block cluster reprogramming check box is selected and block settings for the flash shield window function can be performed Figu
113. nnnnnnrnnirnnrrsnrrsnrrnrrrsnrrenreenrrnenne 103 6 3 Standalone Operation Men rse oh ete a a E 105 CHAPTER 7 CONNECTORS AND CABLES cccccccecccccceeeee ce eeeeeeeeeeeeaeeeeesseeeesaeeeeeseeeeesaeeesaaeeeesaeeeetsaeeeesaees 110 Tal POWET OUD DIY OMMOCION eiris a E us dian nace a E 110 Toenail CONNEC On tinsel ice dic onctaeeetade a deceiaet E cee t tag ncaa d ctesacto a det cacotecen satel 111 To USB COMMC CO Mig tacit eres se steed eteeasa e a und mined ceucucec eueae eka E 112 LA Farge CONNCCION sencnt aioe te Se ec ee ea 113 Mh Rezo 21 es 2 0 gt Sauna eens een eect a iene ae a Roe te eee a a ee NN Oe eee eee ee Lee eee ee 114 COGNO CONNECCION sna eae da ets ace Sade eats os bec eee A ata ed pace ta Sead debe Soa dared case h tess see 115 CHAPTER 8 NOTES ON TARGET SYSTEM DESIGN 0 0 cccccccecceeceeeeeeeeeeeeeeeeeesaeeeesseeseeseeeeesaaeeeesaneeesaaes 116 CHAPTER 9 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS oc eecceeseeeeesseeeeesaeeeeesaeeeeeas 120 OT SOREXD RESET aNd SCK sae Fe eee eae ose ces ho ase eee sees ee 120 g2 SUR DAG P Ooo tess ce catatas ah a a r a as et oG a A 120 SE OB GR nearer eee ar rs re PO eee See ee a 121 SA LMI O TA EID ar a ati acta tees cae tacks a at Se dane aotind Bond tcettenca sab eecece es pesdae 121 95 VDD ANG VOD aran a E A r NE r NARE 122 OO NV EPI onene a Gan baeaugan sec oamiuadnanGenens meannc aes 122 CHAPTER 10 TROUBLESHOOTING 0 iccccccecece cece e e
114. o4 7D pro 78F 1166 p05 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 96 138 lt 6 gt Type the name of the newly created ESF file and click the button Figure 5 11 Saving ESF File File name its ib Bg save as type FPS setup files esf ha Cancel lt 7 gt Select the program file Click the button in the Object HEX file area Figure 5 12 Object HEX file Area Object HEX tile C Program Files NeEG Electronics Toole PG F P5447 O0 bin lt 8 gt Select the program file and click the Open button In this example sample hex is selected Figure 5 13 Selection of Program File Download file Look in E bin q ee E M Or EG rr Sample Nex My Recent Documents E Desktop hy Computer My Network File name lsamplehes Places Files of type S rec Hes files rec s hex Cancel iW Erase memory before download Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 97 138 lt 9 gt Click the Standard tab Figure 5 14 Device Setup Dialog Box Standard Tab Target Standard Advanced Communication interface to device Supply oscillator Port Frequency tel Pulse number 0 On Target Hz M Speed 1Mbps Multiply rate Intemal Dir Operation Mode Chip C Block Start ec r Defaults lt 10 gt Set the items in accordance with the programming environment used In
115. on Signal Name 15 Pin HD SUB Male Connector 16 Pin 2 54 mm Pitch Multipurpose gt Connector ss amo gt gt oo T ww ooo o o a ee Nowe Od wss o o G Notes 1 Reserved pins Leave these pins open 2 Left open in the target cable Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 115 138 The following are the recommended connectors to be connected to 16 pin 2 54 mm pitch multipurpose female connectors e HIF3FC 16PA 2 54DS made by Hirose Electric Co Ltd right angle type e HIF3FC 16PA 2 54DSA made by Hirose Electric Co Ltd straight type e 7616 5002PL Sumitomo 3M Limited right angle type e 7616 6002PL Sumitomo 3M Limited straight type When using a self made cable because the supplied cable cannot be used due to the target system specifications the cable characteristics should be equivalent or higher than those of the supplied cable Note that communication may be performed at high speed depending on the communication settings Consequently communication errors may occur and causing abnormal operation 7 6 GND Connector The banana jack GND connector is laid out on the target connector side of the FP5 Figure 7 13 GND Connector lt FP5 Target Connector Side gt e GND connector Part number of GND connector banana jack PB4 HIRSCHMANN 7 6 1 GND cable The host cable is a standard shielded GND cable approximately 1 meter long The GND cable is equipped with
116. ove the target system before supplying Vpp Vop2 from the target system lt 2 gt f no more target devices are to be written to execute the Quit command in the File menu to terminate the programming GUI All the settings made so far are saved so they can be restored when the programming GUI is restarted The PR5 files ESF files and program files are saved to the FP5 internal flash memory lt 3 gt Press and hold the button on the FP5 for about 1 second to turn off the POWER LED lt 4 gt Remove the AC adapter and USB cable from the FP5 Caution If an error occurred during the above steps refer to CHAPTER 10 TROUBLESHOOTING and APPENDIX A MESSAGE In addition refer to 4 3 2 6 Self Test command and perform self testing If this des not resolve the problem see the FAQ http www necel com en faq index html or access http www necel com en contact contact_e html for inquiry Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 103 138 CHAPTER 6 USAGE IN STANDALONE MODE The FP5 has a standalone mode in which the FP5 by itself can execute the Erase Program and Autoprocedure E P commands without a host machine This mode is useful for using the FP5 on the production line during mass production and for upgrading in the field 6 1 Before Starting Standalone Operation In standalone mode the FP5 can select any programming area based on PR5 files ESF files and program files stored in the multip
117. ox not selected If the target system Vpop exceeds 0 2 V before Vpp is supplied the message Target power detected Check Setup will be displayed in the action log window e When Vpn is set to be supplied from the target system On Target check box selected If Voo is outside the range of 5 of the Vpp set value immediately before communication starts the message No VDD applied or Voltage is out of range will be displayed in the action log window Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 79 138 Vdd monitoring check box When supplying Vop from the target system On Target check box selected whether to enable the Vpop pin power supply detection function can be selected with this check box Select to enable or clear to disable the function Caution When the Voo pin power supply detection function is disabled the product can be used even if the Voo pins in the FP5 and the target system are not connected In such a case make sure that Vpp power generated in the target system always matches the output signal power supply generated in the FP5 FLMDO or Vpp V CLK RESET Serial Out and Serial In boxes The default levels of these pins set in the PR5 file are displayed in volts V Vdd or Vdd2 power supply is used for the signal levels lt 2 gt Command options area In this area set options to be added to the Erase Program and Autoprocedure E P commands F
118. port FP5 e Simplified control software for production line FPterm a product of Naito Densei Machida Mfg Co Ltd sold separately e Gang supported software for production line FW GFP a product of Naito Densei Machida Mfg Co Ltd sold separately Note Under development Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 13 138 1 6 Hardware Specifications Table 1 1 Hardware Specifications Hardware Specifications FP5 main unit Operating power supply Supplied via AC adapter Operating environment Temperature 0 to 40 C ccondition Humidity 10 to 80 RH no condensation Storage environment Temperature 15 to 60 C ccondition Humidity 10 to 80 RH no condensation 140 x 90 x 30 mm not including projections Weight Approximately 230 g Internal flash memory Program file save area 16 MB Other PR5 file save area ESF file savd area firmware area and FPGA area Operation mode Programming GUI operation standalone operation remote operation terminal operation AC adapter Specifications AC input range 100 to 240 V 50 60 Hz DC output 15 V Current consumption 1 A max Host machine Target host machine PC98 NX series IBM PC AT compatible interface Target OS Windows 2000 Windows XP USB connector Type A USB 2 0 compatible with 1 1 USB cable Approximately 2 m 9 pin D SUB male connector for RS 232C 9600 19200 38400 57600 115200 bps Serial
119. rammer PG FP5 Preliminary User s Manual ZUD CD 07 0051 7 138 CONTENTS CHAPTER 1 OVERVIEW 2iccet eh ot ee eee ee 9 OFWs AEN es te ea ee ace eee pe cia eee oe Sea aie case enc ayant cass cane yee ocieseme cat E aoe ae cee Seng ean ae eeseaee ane 9 2 Ning OCIA 5 seasit ah shat at eink eg igs ee ard deta cael tea ep edie ied petted tae alate Ae eee tl a ete a dee abode 9 1 3 Supported DEVICES aeiiae a cn osa cule a i ans sh Miata dele a aetncwiaal ea a tieacdaeases 9 TARPS System OV OE VIS WW ass a teeta arte aa 10 TD OME FAlNG EM VINO MINER Usctex esate a cesesta ote ae tote hcidatee a dejected a a eee ed eens et 11 1 6 Flardwale SpeCiiGallonS 3 34 nt ah eos eh a tal ee Oe NN isn ah oid 13 CHAPTER 2 HARDWARE CONFIGURATION 00 0 cc ccccccccccceeeeeeseeeeeeseeeeeseeeeeesaaeeeeseaeeeesaeeeeseaeeeesaaeeeeseeeeesaees 14 DW AC KAGE Conen GS ei aa a a a ota en eee a 14 ZZ SV SIEM COMMOUPALOIN cecceseaieese ce ce eed aaa cc ae ee inc ee Sees ae tee 14 2 3 Names and Functions On Main UNit cccccccceccceccceeeceeeecececeeeceueecaeeceeceueceeessueeceeeceeeseueeseeeseaeesaeesseeseeeegas 16 CHAPTER 3 SOFTWARE INSTALLATION cccccccsccececseeeeeeeeeeeseeeeeeseeeeeeseeeeseeeeeeseeeeeeaaeeeessaeeessaeeeeesaeeeesaees 19 SF ODLAIMING SONNA O teas ccd rea a a si Pens dasoaceda a vets E E AA 19 22N eee e E a e E a A Peer eee 19 Ds MINUS VAM UL ON aen E E E E a i 24 3 4 Updating Programming GUI Firmware and FPGA cccccc
120. re 4 61 Block protection Area Block protection Boot Block end FS Block start 0 Fis Block end 127 Show Address Boot Block end drop down list Select a block number from this list if the Disable Boot block cluster reprogramming check box is selected This list shows the block numbers where the flash memory in the target device is configured Block 0 is selected by default FS Block start and FS Block end drop down lists Select the block subject to the flash shield window function using these lists Only the specified range can be written through flash memory self programming This setting does not affect programming using the programmer This function can prevent areas out of the specified range from being written to by mistake during flash self programming These lists show the block numbers where the flash memory in the target device is configured The entire flash area is selected by default Show Address check box Specify the display format in the Boot Block end FS Block start and FS Block end drop down lists If this check box is selected the block address is displayed If this check box is cleared the block number is displayed Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 83 138 lt 6 gt Reset vector setting area The reset vector handling function can be set in this area Figure 4 62 Reset vector setting Area Reset vector setting Reset vector
121. rget device Action 5 lt 1 gt Check the settings in the Supply voltage area on the Advanced tab in the Device Setup dialog box lt 2 gt Check that power is supplied from the target system If power is supplied from the FP5 a power shortage may occur because its maximum power supply is 200 mA In such a case supply power from the target system and then change the setting Cause 6 UART communication may not be synchronized Action 6 When UART is used communication may not be synchronized due to a baud rate error of the target device In this case change the CPU clock or baud rate or change the communication channel to another communication mode Cause 7 If using a 78KOS Kx1 microcontroller or the wPD78F9334 it is possible that the wrong connection procedure was implemented Action 7 With devices that using program files in which use the RESET pin as the input only port P34 is set by the option byte flash memory programming mode cannot be entered if power is supplied to the target system before the target cable is connected to the target system Connect the target cable to the target system and then supply power to the target system as prescribed in the connection procedure 3 The following message is displayed in the action log window and normal communication is not performed in flash memory programming mode ERROR Communication failure or timeout Cause 1 The clock or power supply may not be stable
122. rogrammer PG FP5 Preliminary User s Manual ZUD CD 07 0051 45 138 2 Logging command The Logging command saves information displayed in the action log window in the log file When this command is executed the log file save dialog box appears Move to an arbitrary folder select the log file in the File name drop down list and click the button the log file will then be saved The Logging command on the menu bar will be checked The check mark will be cleared by clicking the Logging command again and saving of the log file will be stopped Enabling disabling the Logging command is added to the time stamp Fora log file example refer to Figure B 3 Log File Example Remark The log file that was saved the last time is displayed in the log file save dialog box Figure 4 14 Log File Save Dialog Box Save irr B Los T e Eg 4 My Recent Documents Desktop D Pu My Computer Tea My Network File name og txt ha Places Save as type TAT files txt Cancel Clicking the button saves the specified log file Clicking the button closes the dialog box without saving the log file Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 46 138 3 Select Programming area command The FP5 has a 16 MB flash memory area for saving program files This memory area can be used as four 4 MB programming areas Area 0 to Area 3 or eight independent 2 MB programming are
123. s range for saving data is out of the code flash or data flash address range Check the start end address The start address is larger than the end address Check the start end address The end address is smaller than the start address Check the Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 129 138 E1508 The file cannot be written Saving of the program file has failed Check if this file is occupied by another program E1509 Temporary file could not be created Abort The temporary file cannot be created Creation was aborted Confirm that sufficient memory capacity is available in Windows E1514 Check sum error Continue It was detected that the checksum of the program file opened by the HEX editor was invalid Click OK to continue checksum verification Click Cancel to abort checksum verification E1515 Cannot open lt file name gt Abort The program file specified by the HEX editor cannot be opened E1516 Error line lt line number gt An illegal data exists in line ine number in the program file Data error Abort DATA Check E1517 Shortage of memory Confirm that sufficient memory capacity is available in Windows E1518 Invalid file name The file name is invalid E1519 HEX format error An illegal program file format was detected E 1520 Too large address The address is too large The maximum address that can be used by the HEX Editor is 420000h E1521 Can not run
124. setup host connection again Please open Setup form menu It will help you down load parameter amp setting files Parameter setting files are not matched Parameter setting files are not find Are you sure you want to update the Firmware Are you sure you want to update the FPGA Do you really want change parameter area format All data will lost after this action Information defined in initial file is not enough or it is not matched with FlashProgrammer Setup parameters is needed Information defined in initial file is not complete matched with FlashProgrammer Do you want to go Setup dialog Updating the firmware will take several minutes ATTENTION The process of updating your firmware must NOT be interrupted Without firmware this FP5 GUI will NOT run properly Install new firmware in your programmer Updating the FPGA will take several minutes ATTENTION The process of updating your FPGA must NOT be interrupted Without FPGA this FP5 GUI will NOT run properly Install new FPGA in your programmer After FP5 reset communication with FP5 was attempted but failed Try Programmer Setup host connection in the menu Open Setup in the menu and then download the PR5 or ESF file Information does not match the one defined in the PR5 ESF file The cause may be the following 1 The PR5 or ESF file which is defined in the INI file is different from the one stored in the FP5
125. shProgrammer i2 broken i File checksum Arithmetic checksum 16 bit OOO000 03F FFF B23E Target device Name fF 1166 Port UART Pulse Num Speed 1 000 O00 bps Widd 05 00 FPS Freq Internal Osc T arget Multiply 1 00 Mode i For Help press FI Click the button in the error message dialog box and then press the POWER button on the FP5 to turn on power Execution of the Setup host connection command opens the Host Connection dialog box Select the communication mode used and then click the button Flash Memory Programmer PG FP5 Preliminary User s Manual Figure 4 27 Setup host connection Command eee Device Help I Setup host connection Logging Select Programming area ve v Buzzer Firtl Reset Bos Ser Self Test gt Update Firmware Update FPGA Figure 4 28 Host Connection Dialog Box Host Connection t Serial Cancel Board H W V1 FPGA V1 is displayed in the action log window thus the version The main window is opened can be checked ZUD CD 07 0051 93 138 Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 94 138 Figure 4 29 Version Confirmation After FPGA Update Is Finished File Programmer Device Help Firmware Yersion 1 00 Board H W Vil FPGA V1 erla Hao ror w Wow ow wo wr wr gt For Help press FI 9 FP5 Manager command This command is not available FPS GUI F
126. specify the following path for the programming GUI VX XX is the version of the programming GUI C Program Files NEC Electronics Tools PG FP5 VX_Xx driver 4 The Add New Hardware Wizard screen appears when FP5 is connected with the host machine via a USB port Cause If the USB connector is not inserted into the USB port used during USB driver installation but into another USB port the FP5 may be recognized as a new hardware item Action Refer to CHAPTER 3 SOFTWARE INSTALLATION and install the USB driver again Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 124 138 10 2 Problems During Operation This section explains troubleshooting for problems that may occur during operation Remark For causes and actions for the messages displayed in the error dialog box information dialog box or action log window refer to APPENDIX A MESSAGES 1 Error Message E 1100 communication within host PC and FlashProgrammer is broken is displayed in the action log window Cause 1 The USB cable or serial cable may not be connected properly the USB driver may not have been installed correctly or power to the FP5 has been turned off Action 1 Refer to 10 1 Problems During Startup and take appropriate action Cause 2 When NECPCIF is expanded in the Device Manager while the FP5 is connected via a USB port Flash 19 l 7 t ee a Programmer FP5 is not displayed Alternatively a or x
127. t Security command option area Setting of the security functions flash shield window and reset vector handling can performed in this area When the Get Security Settings command is enabled settings in this area can be confirmed by running the Get Security Settings command before running the Security command Caution For setting of the security functions flash shield window and reset vector handling refer to the user s manual of the target device Figure 4 57 Security command option Area Security command option Security flag settings Disable Chip Erase Disable Block Erase Disable Program Disable Boot block cluster reprogramming Block protection Boot Block end Fis Block start 0 Fis Block end 127 Show Address Reset vector setting Reset vector h lt 4 gt Security flag settings area Specify whether to enable the security settings in this area Figure 4 58 Security flag settings Area Security flag settings Disable Chip Erase Disable Block Erase Disable Program Disable Boot block cluster reprogramming Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 81 138 Disable Chip Erase check box If the Security command is executed with this check box selected the Erase command will be disabled for the entire area of the flash memory in the target device When this check box is selected the following dialog box appears F
128. target device The target area can be set in the Operation Mode area on the Standard tab in the Device Setup has not yet been erased ERROR is displayed If this error is displayed erase the entire area of the flash memory before starting programming 2 Erase command w is executed with Chip selected security command options are initialized at the same time While erasing the i The Erase command erases the flash memory in the target device The target area can be set in the Operation Mode area on the Standard tab in the Device Setup dialog box If this command flash memory is in progress the progress status is displayed in the action log window When execution of this command is completed the result of command execution in the target device is displayed Whether to perform the Blank Check command before executing this command depends on the Blank check before Erase check box setting in the Command options area on the Advanced tab in the Device Setup dialog box If this command is executed for the target device that has already been erased with the Blank check before Erase check box selected OK Erase skipped is displayed and erasure is not performed 3 Program command A area can be set in the Operation Mode area on the Standard tab in the Device Setup dialog box The The Program command transmits the memory contents program files in the FP5 valid programming area to t
129. ternal device Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 118 138 Target Device Pin Recommended Design Vpp Keep the wiring between the FP5 connector and the target device Vpr pin as thick and as short as possible Insert neither capacitors nor resistors into the Vpr line unless otherwise stated Incorrect circuit Target device Vpp zE Target device VPP FLMDO Insert neither capacitors nor resistors into the FLMDO line unless otherwise stated Target device FP5 FLMLO FLMD1 Connect the FP5 or GND using pull down resistance on board Others For the recommended connection of unused pins refer to the user s manual of the target device Some target devices have pins that must be connected differently For these pins also refer to the user s manual of the target device Example of pins connected differently MODE CKSEL REGOUT REGIN etc Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 119 138 The following are examples of interface circuits Refer to the recommended design for the connection of pins in the target device lt 1 gt SIO H S 3 wire clocked communication port with handshake Figure 8 1 SIO H S Interface Circuit Example FLMDO Note 1 FLMD1 Note 1 Target device JUMPER rt Pin used in internal single power supply flash memory microcontroller Notes 1 2 Pin used in internal two power supply flash memory microcontroller lt 2 gt 78
130. the programming environment settings specific to the user environment and PR5 file names If the file contains invalid contents the programming GUI will not recognize the ESF file lt FP5 internal flash memory gt The FP5 has a 16 MB flash memory area for saving program files This memory area can be used as four 4 MB programming areas Area 0 to Area 3 or eight independent 2 MB programming areas Area 0 to Area 7 Program files can be downloaded to each programming area and which file PR5 or ESF is to be saved is selectable in programming area units That is files can be individually downloaded in each programming area and the area used can also be selected individually Program files PR5 files and ESF files are retained even if the FP5 power is turned off lt Notification function gt When Autoprocedure E P is executed whether execution is completed normally is indicated by beeps lt Checksum calculation gt Checksum calculation for the download program files is possible 1 5 Operating Environment This section explains the following items with respect to the operating environment e Hardware environment e Software environment 1 5 1 Hardware environment 1 Host machines e PC98 NX series IBM PC AT compatible e Equipped with USB 2 0 ports compatible with 1 1 e Equipped with RS 232C serial ports 2 Hardware option tools that support FP5 e Target board QB xxxx TB a product of NEC Electronics sold separatel
131. trollers and single power supply on chip flash memory microcontrollers e Supports flash memory programming through the programming GUI using the host machine programming GUI operation and operation in standalone standalone operation e Supports on board programming through which programs are written with the target device mounted on the target system and off board programming through which programs are written via a program adapter without the target device mounted on the target system e Program files can be saved in the 16 MB flash memory in the FP5 divided by 4 in 4 MB units or divided by 8 in 2 MB units e Device specific parameters required for programming can be saved in the FP5 internal flash memory by using the parameter file PRS file together with programming settings ESF file e Multiple program files PR5 files and ESF files can be saved e Supports CSI CSI HS UART C and PORT as target device interfaces e Can supply Von and clocks to the target device e Supports USB interface and serial interface RS 232C as a host interface e Supports self testing function e Can update firmware and FPGA e Compact and lightweight 1 2 Writing Quality Thoroughly confirm verify and evaluate the following points before using the FP5 in order to improve the writing quality e Design circuits as described in the user s manual for the target device and the FP5 e Use the device and the FP5 as described in the user s manual for
132. ual ZUD CD 07 0051 87 138 4 6 Programming Parameter Window This window displays the programming parameter settings Figure 4 66 Programming Parameter Window Programmer FPS Ul 1 00 Firmware W100 Prog Area Parameter and Setting file Name FoF 1166 pr5 Version 1 00 Name roF1166b ezf Date Wed Apr 04 23 53 02 2007 Download file Name sample hes Date Fri Feb 24 21 13 08 2006 Address Q00000 007FFF File checksum Type Arithmetic checksum 16 bit Address OO0000 03F FFF Value b23E Target device Name FoF 1166 Port UART Pulse Num Speed 1 000 O00 bps Wid 05 00 4 FPS Freq Internal Osc T arget Multiply 1 00 Mode Chip Range Programmer area Displays information such as the programming GUI version FP5 firmware version and valid programming area number Parameter and Setting file area Displays information such as the PR5 file name and its version and the ESF file name and date set in the valid setting programming area Download file area Displays information such as the file name date and start and end addresses of the program file set in the valid setting programming area File checksum area Displays the checksum result for execution of the Checksum command in the File menu Target device area Displays information of the settings on the Standard tab in the Device Setup dialog box This area is updated after the button in the Dev
133. update Clicking the button opens the Open FPGA file dialog box Figure 4 25 Open FPGA file Dialog Box Open FPGA file Look ir D fpg m e Ea My Recent Documents L Desktop My Documents hy Computer T My Network File name lip5_fpga 1 O0 rec Places m Files of type S rec Hex files recs heni recs sheet w Cancel Select the FPGA file fp5_fpga_vxxx rec and then click the button Caution Do not use FP5 FPGA other than the one posted on the website otherwise a defect may occur Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 52 138 Some commands are sent to the FP5 and the update progress status is displayed in the action log window The message Result pass which indicates normal completion of firmware update and FP5 Power will be switched OFF now which is equivalent to processing when the POWER button is turned off is automatically executed The update takes about 30 seconds Figure 4 26 Action Log Window When FPGA Update Is Finished fol Frogrammer FPSGUI 1 00 Firmware 1 00 Frog rea Farameter and Setting file Name fOF 1166 pro Versiory W100 Name ToF1166 esf Date Wed Mar 28 79 07 29 2007 Download file sample hex Fr Feb 24 21 13 08 2006 ss QOQU00 00FFF E 1100 amp 9 Communication within host PO and Fla
134. urn on off the power to the FP5 Press this button longer for about 1 minute when turning off Proceeds to the next menu item at the same level in sequence Selects the item shown in the message display Cancels the current selection and returns to the previous menu item The command currently running cannot be stopped except for the Read command Executes the Autoprocedure E P command Remark The NEXT ENTER CANCEL and START buttons are mainly used in standalone mode Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 17 138 2 3 2 FP5 connectors The power supply connector serial connector and USB connector are laid out on the host interface side The target connector GND connector and remote connector are laid out on the target connector side Figure 2 3 FP5 Top View lt Connector gt USB connector Serial connector POWER connector Target connector GNDconnector Remote connector Figure 2 4 FP5 Host Interface Side 00000 r i POWER Serial port USB port connector Figure 2 5 FP5 Target Connector Side Seer e 00000000 00000 0000000 Target connector GND Remote connector connector Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 18 138 1 Power supply connector Connect the power supply connector to the AC adapter included with the FP5 For details on the power supply connector specifications refer to CHAPTER 7
135. w Hardware Wizard Window lt 2 gt Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for Flash Programmer FPS 9 If pour hardware came with an installation CD or floppy disk insert it now What do you want the wizard to do Install the software automatically Recommended feudnstall from a list or al Click Next to continue 6 The following window appears Select Search for the best driver in these locations Include this location in the search specify the folder where the USB driver is stored and then click the button Remark When the Programming GUI is installed the USB driver is installed into the driver folder in the Programming GUI installation folder C Program Files NEC Electronics Tools PG FP5 version driver should usually be specified The version indicates the version of the programming GUI Specify the driver folder for the latest programming GUI Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 22 138 Figure 3 3 Found New Hardware Wizard Window lt 3 gt Found New Hardware Wizard Please choose your search and installation options Lat S Search for the best driver in these locations Use the check boxes below to limit or expand the default search which includes local paths and removable media The best diver found will be installed L Search removable media floppy CD ROM
136. will open Perform settings in this dialog box For the setting method refer to 4 3 3 12 Setup command Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 37 138 Figure 4 4 Main Window F FPS File Programmer Device Help Seles Programmer YEr FFS GU 1 00 Firmware ME ee v1 00 Firmware Y1 00 lt 2 gt Toolbar e Iae Frog rea Parameter and Setting file Name ToF1166 pr5 Version W700 Name OF 1166 est Date Wed Mar 26 19 01 29 2007 Download file lt 3 gt Action log window Name sample hex Date Fri Feb 4 21 13 08 2006 Address QO0000 007FFF File checksum Type Arthmetic checksum 16 bit Address OOO000 03F FFF Value B23E Target device Name FOF 1166 Port UART Pulte Mum Speed 1 000 O00 bps Wedd 05 00 FPS Freq Internal Osc T arget Multiply 1 00 Mode Chip Range lt 6 gt Hint bar For Help press FI lt 5 gt Status bar The main window consists of the following areas Displayed Items a heathy a as a Programming parametarwirdow Programming parameter setings as Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 38 138 4 3 Menu Bar The menu bar displays the commands that are available for the programming GUI Some commands may be unavailable when the programming GUI is started for the first time or depending on the parameter file PR5 file selected Caution During command
137. y e Program adapter FA xxxx a product of Naito Densei Machida Mfg Co Ltd sold separately e IC clip type target cable FA CLIP a product of Naito Densei Machida Mfg Co Ltd sold separately e Switch jig FL SW FP5 a product of Naito Densei Machida Mfg Co Ltd sold separately e Buffer board FL BUF a product of Naito Densei Machida Mfg Co Ltd sold separately e Long target cable name undetermined a product of Naito Densei Machida Mfg Co Ltd sold separately Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 12 138 1 5 2 Software environment 1 OS either of the following e Windows 2000 e Windows XP Caution Installation of the latest Service Pack for the OS used is recommended 2 FP5 parameter file PRS file e Parameter file for the target device used pr5 Reference Download the parameter file from the following NEC Electronics website URLs Japanese version http www necel com micro ods jpn English version http www necel com micro ods eng Click Version up Service Select the microcontroller to be used in the Each Device Series column and select the device name in the Device Name column the FP5 parameter file can then be found 3 Customized setup file ESF file e File esf in which programming environment settings set with the programming GUI is saved 4 Program files e Intel HEX format e Motorola HEX format 5 Software option tools that sup
138. y example Signature D78F1166 Prog Area Used to select the valid programming area from the four 4 MB each or eight 2 MB each programming areas in the FP5 The valid programming area can be changed by pressing the button Display example if button is pressed Commands Prog Area now 1 Changes the valid programming area from Area 0 to Area 1 The currently selected programming area can be checked in the Programmer area in the programming parameter window of the programming GUI The factor for dividing the programming area is the value set in the Programming Area Setting area in the Device Setup dialog box Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 106 138 6 3 2 Type Setting menu The Type Setting menu is used to check information target device programming environment settings contained in the ESF file downloaded to the FP5 The settings downloaded to the valid programming area are displayed All the values displayed are those downloaded last time by the programming GUI The settings cannot be changed using this menu Table 6 2 Type Setting Menu Main Menu Submenu Description Type Setting gt Device Port Displays any of the following to indicate which mode is selected for communication between the target device and the FP5 SIO 0 SIO 1 SIO 2 SIO H S IIC 0 IIC 1 IIC 2 IIC 3 UART 0 UART 1 UART 2 UART 3 PORT 0 PORT 1 PORT 2 Multiply Rate Displays
139. yed in the message display If not the cause may be a defect in the FP5 so consult an NEC Electronics sales representative or distributor Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 36 138 3 Startup of programming GUI Click the Start menu All Programs point to NEC Electronics Tools Latest Version and then select PG FP5 VX XX to start the Programming GUI The valid communication mode is automatically detected in the order of the USB and then the serial interface Figure 4 2 Port Scanning at Startup of Programming GUI Information Search Communication pork Trying connect to COMS with 9600 Please woaik The communication mode can also be selected by cancelling this operation by clicking the button and selecting the Setup host connection command in the Programmer menu When communication is established and the programming GUI is correctly started the main window will be opened The following message will be displayed if the programming GUI is started for the first time or valid programming areas have been cleared so click the button Figure 4 3 Message Displayed at the First Startup of Programming GUI Information 1 I 2208 Information defined in initial file ig not enoueh or it is not matched with FFS Setup parameters is needed The Device Setup dialog box which is usually opened by executing the Setup command in the Device menu
140. zzer command is used to enable or disable the setting to output the buzzer sound from the FP5 main unit When this command is executed the Buzzer command on the menu bar is checked and becomes valid When this command is executed again the check mark is cleared and the command becomes invalid The FP5 makes a double beep sound when the Autoprocedure E P command is completed normally or makes a buzzer sound when the command results in an error 5 Reset command When the Reset command is executed a software reset can be applied to the FP5 After reset the current versions of the firmware and FPGA and the FP5 serial number will be displayed in the action log window Flash Memory Programmer PG FP5 Preliminary User s Manual ZUD CD 07 0051 47 138 6 Self Test command The Self Test command executes the FP5 self testing program The following four items are subject to self testing The self testing program does not affect the PR5 files ESF files and program files saved in the FP5 lt 1 gt FPGA test lt 2 gt Power generation block test lt 3 gt Target interface I O test lt 4 gt Remote interface I O test Since execution of the Self Test command involves I O testing a message that prompts the user to disconnect hardware connected the target connector or remote connector is displayed Remove hardware including target system and program adapter connected to the target connector or remote connector ifany Make sure t

Download Pdf Manuals

image

Related Search

Related Contents

How to configure the S811+ reduced voltage soft starter to  Univex FVS336G Network Router User Manual  Manual de Instalação - Documentação técnica  Method and device for downloading settings for an application  Samsung 242MP User Manual      User`s manual  Texas Instruments DAC3482 User's Manual  scarica - Protex  

Copyright © All rights reserved.
Failed to retrieve file