Home

FL-PR5

image

Contents

1. area in the Device Setup dialog box Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 W 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 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
2. r Object HEX file C Program Files FL PR5 CO Information SR Clear Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 m Programming Area Setting 8 division 2 MB DIV fo Division pattern button to create a new ESF file for the uPD78F1166 lt 4 gt Click the New Figure 5 9 Creation of New ESF File Save in E FP5_PRJ D e ES 3 EK D i My Recent Documents E C My Documents o My Computer My Network Fle name 7EF1166 esf aces Save as type FPS setup files D es 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 T 70F3732 pr5 78F0547D pr5 79F1166 pr5 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 96 138 lt 6 gt Type the name of the newly created ESF file and click the Save button Figure 5 11 Saving ESF File File name ease D Save as type FP5 setup files Ces M 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 fi
3. Vdd monitoring check box When supplying Voo from the target system On Target check box selected whether to enable the Voo 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 Voo 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 PR6 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 Figure 4 56 Command options Area Command options Iw Blank check before Erase Verify after Program Iw Security after Program Checksum after Program M 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 ex
4. About Firmware FPGA Programmer menu gt Reset command Programmer menu Reset command Note Display example of Reset command gt ver Firmware Version V1 00 lt _ Firmware version Board H W V1 FPGA Vi FPGA version Serial No XXXXXXXXXX gt 3 The latest versions are available on the following websites Website http www ndk m co jp asmis 3 4 2 Installation of programming GUI Run the downloaded self extracting file fp5quixxx exe An executable file setup exe is decompressed into the folder so run it And perform installation following the directions on the installer screen Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 fp5_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 menu on the menu bar and select Update Firmware the Update Firmware dialog box will then be opened Figure 3 6 Update Firmware Command Device Help Setup host connection Logging Select Programming area gt vel v Buzzer Firl Reset Ser Self Test gt Update Firmware Update FPGA Figure 3 7 Update Firmware Dialog Box Updat
5. 2 Installation of PRS file Refer to CHAPTER 3 SOFTWARE INSTALLATION download the PR5 file for the PD78F1166 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 POWER 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 started 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 sys
6. Figure 4 13 Host Connection Dialog Box Host Connection C Serial Port Baud 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 OK button is clicked software tries to establish a connection between the FP5 and the host machine using the selected communication channels Clicking the Cancel button closes the window without making any changes Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 Save 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 For a 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
7. 032 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 041 Erase failure Erase failed The device may be damaged 042 Ers time exceed Erase timed out The device may be damaged 043 Ers Timeset err Erase time setting error The PR5 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 FL PR5 User s Manual Provisional SBA1 070002 00 134 138 No Message Error Condition Possible Workaround 051 Blank chk failed Blank check failed The device connected is not empty Use the erase command before programming 060 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 063 Wrb Timeset err Writeback time setting error The parameter file may contain invalid data Contact NEC Electronics 070 Write timeout Write timed out There was a communication problem between the FP5 and target device Try the operation again 071 Write
8. FL PR5 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 Infor mation Search Communication port Trying connect to COM3 with 9600 Please wait The communication mode can also be selected by cancelling this operation by clicking the Cancel 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 OK button Figure 4 3 Message Displayed at the First Startup of Programming GUI Infor mation 1 12208 Information defined in initial file is not enough or it is not matched with FPS Setup parameters is needed The Device Setup dialog box which is usually opened by executing the Setup command in the Device menu will open Perform settings in this dialog box For the setting method refer to 4 3 3 12 Setup command Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 37 138 F FrPs Figure 4 4 Main Window File Programmer Device Help gt 6 gt Hint bar i lt 3 gt Action log window lt
9. device in MHz Mode 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 0 to1 In chip mode the display is always as follows Display example PRG Area 0 to 127 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 downloaded last time by the programming GUI The settings cannot be changed using this menu Table 6 3 Main Menu Option Setting gt Submenu BLN before ERS Option Setting Menu Description 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
10. 0x43cdc09c 0x65c52d24 OxO0fdclbec Ox29d4 654 Oxdbee767c Oxfde69bc4 0x97ffad0c 0xb5365d03 Oxb1l 740b4 136 138 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 137 138 Figure B 3 Log File Example gt epv 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 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_calc int is unsigned short bist bist_temp bist 0 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 bist gt gt 1 rom_data i bist_temp return unsigned char bist bist_temp lt lt 12 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 138 138 APPENDIX C REVISION HISTORY Description Newly created Document Number Issued on SBA1 070002 00 April 6 2007
11. Autoprocedure E P Command Toolbar N File Programmer PSG Blank check Erase Program Verify gt ver Firmvare Vers Serial No J Security gt Checksum ee a ETZ OK gt z H H doenset Signature read Now loading aoe ES Get Security Settings gt gt lod fname Setup 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 wPD78F 1166 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 Vop Vop2 power from the target system Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 Autoprocedure E P Command Execution Result Programmer FPSGUI 1 00 Firmware Version 1 00 Firmware 1 00 Board H W Vi FPGA V1 Serial No XXXXXXXXXX ProgArea H gt Parameter and Setting He gt downprm Name 78F1166 pr5 Version 1 00 Name 78F1166 est Date Wed Mar 28 23 50 39 2007 Download file gt Name sample hex gt lod fname sam
12. FLMDO Co Oo S Not usechigie Notes 1 Reserved pins Leave these pins open 2 Left open in the target cable Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 115 138 The following are the recommended connectors male 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 5 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 GND connector Part number of GND connector banana jack PB4 HIRSCHMANN 7 5 1 GND cable The host cable is a standard shielded GND cable approximately 1 meter long The GND cable is equipped with a banana jack and a spade terminal Caution The FP5 and target system may be damaged if the voltage between the FP5 GND and th
13. My Computer ei My Network File name Sample hex Places et Files of type HEX Files HEX E Cancel Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 57 138 Figure 4 32 Program Data Save Dialog Box lt When Write Motorola SREC file Command Is Executed gt Look in HEX e ES My Recent Documents Places My Network Pie name sample s nd Files of type Sec 1ec s X Cancel Clicking the Open button saves the program data into a file and closes the dialog box Clicking the Cancel button closes the program data save dialog box without saving the program data into a file 6 Security command isk Device Setup dialog 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 78KOS Kx1 microcontroller or the uPD78F9334 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 checksu
14. Next gt button Figure 3 2 Found New 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 D If your hardware came with an installation CD ZE or floppy disk insert it now What do you want the wizard to do nstall the software automatically Recommended J Click Next to continue co Deeg 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 Next gt 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 FL PR5 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 FL PR5 User s Manual Provisional SBA1 070002 00 22 138 Figure 3 3 Found New Hardware Wizard Window lt 3 gt Found New Hardware Wizard Please choose your search and installation options male Y 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 driver found will be installed C Sear
15. OK button The Device Setup dialog box will be opened Figure 5 4 Message Displayed at the First Startup of Programming GUI Infor mation i 12208 Information defined in initial file is not enough or it is not matched with FPS Setup parameters is needed Figure 5 5 Main Window File Programmer Device Help f Programmer FPSGUI Vi Firmware 1 00 Drog Ares D Parameter and Setting file Name Version Download file Name unknown data File checksum Port Pulse Num Speed Vdd Freq Multiply For Help press F1 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 94 138 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 Toolbar Ya gt ver ach Firmware Vers Board BH Mi Serial No SZ 5 shecksum Security Autoprocedure E P Sonnect S ignature read Security Settings 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 pattern Unk 4 division 4 MB DI C 8 division D MB DIV 0 x TS r Target Setting m Parameter and Setting file C Program Files FL PR5 FP5_PRJ 78F1166 esf v New 78F1166 pr Save As
16. SBA1 070002 00 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 multiple internal flash memory areas programming areas and write it New PR5 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 ICANCEL or START 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 NEXT button is used to display the next menu on the same level The ENTER button is used to select or execute the menu item currently displayed The CANCEL button is used to cancel the curren
17. Target Multiply 1 00 Mode For Help press F1 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 Serial cable or USB cable l S D 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 displayed in the message display If not the cause may be a defect in the FP5 so consult an our sales representative or distributor Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 36 138 3 Startup of programming GUI Click the Start menu All Programs point to FL PR5 and then select
18. a product of NEC Electronics ESF file Text file containing programming environment settings specified with programming GUI Customized setup file esf for 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 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 5 138 1 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 electros
19. checksum Programming Area e Device Area Start Address 0 End ddress EFFE C User Defined Cancel The downloaded PR5 file is for a target device that supports data flash Checksum Programming Area Arithmetic checksum 16 bit e Device Area Iw Code Iw Data Start Address 0 End Address FFFFF Start Address 0 End address FFFF C User Defined aa m 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 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 00h 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 FL PR5 User s Manual Provisional SBA1 070002 00 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
20. cross cable Target Target connector Connector 15 pin HD SUB female connector interface Protected function Internal overvoltage input protection circuit 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 DC 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 Voo 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 FL PR5 User s Manual Provisional SBA1 070002 00 14 138 CHAPTER 2 HARDWARE CONFIGURATION This chapter explains the following items for hardware configurat
21. 7 CONNECTORS 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 1 Indicators e POWER LED Status LEDs Control buttons e Message display e Status LEDs 2 Buttons POWER button NEXT button ENTER button START CANCEL button button Figure 2 2 FP5 Top View lt Control Panel gt POWER 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 pro
22. 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 SI RxD A 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 user s 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 PR amp 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
23. FP5 3 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 12202 Parameter setting files are not find 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 foldeAFP5_PRu 12203 Are you sure you want to update the Firmware Select whether to update the firmware Click OK to update the firmware Click Cancel to cancel the operation 12204 Are you sure you want to update the FPGA Select whether to update the FPGA Click Ok to update the FPGA Click Cancel to cancel the operation 12207 Do you really want change parameter area format All Select whether to change the factor for dividing the programming data will lost after this action area After this operation all data will be lost 12208 Information defined in initial file is not enough or itis The settings in the ESF file are insufficient or do not match the not matched with FlashProgrammer Setup settings made in the FP5 Device setup is required parameters is needed 12209 Information defined in initial file is not complete The contents of the ESF file do not match those stored in the matched with FlashProgrammer Do you want to go FP5 Select whether to open the Device Setup dialog box Setup dialog 12210 Updating the firmware will take several minutes The firmware update will take several minutes ATTENTION ATTENTION The process
24. 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 Area Target Setting Parameter and Setting file C Program Files FL PR5 F P5_PRJ 78F1166 esf v Hen I Save As Obiect HEX file C Program Files FL PR5 sample hex BI Fri Feb 24 21 13 08 2006 Information IT 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 Settine file C Program Files FL PR5 FP5_PRJ 78F1166 est sl _ New Save As 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
25. 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 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
26. Signal Signal output circuit EMZ6 8 E Self testing circuit or signal input circuit FP5 _ 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 H S Pins FP5_Vpp 33 NQ 74LV125 Self testing o s circuit Signal input circuit EMZ6 8 E 74LV125 FP5 Target System Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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_Vpp or FP5_Vpp2 NFL21SP506 330 74LV125 Signal Add CMOS buffers if necessary Signal output Circuit EMZ6 8 E FP5 P Target System 9 4 FLMDO and FLMD1 Figure 9 4 FLMDO and FLMD1 Pins FP5_VDD 74LV125 Signal output circuit Self testing circuit EMZ6 8 E 74LV125 FP5 Target System Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 122 138 9 5 VDD and VDD2 When supplying Voo and Vppz from the target system the FP
27. Version 1 00 Name 78F1166 est Date Wed Apr 04 23 53 02 2007 Download file Name sample hex Date Fri Feb 24 21 13 08 2006 Address 000000 007FFF File checksum Type Arithmetic checksum 16 bit Address 000000 03FFFF Value 623E Target device Name 78F1166 Port UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 Y FP5 Freq Internal Osc T arget Multiply 1 00 Mode 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 OK button in the Device Setup dialog box is clicked and files are downloaded Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 comman
28. failed Write operation failed Either the device was not blank before writing or a device defect is causing this error 072 Write retry err Write retry error Either the device was not blank before writing or a device defect is causing this error 073 Wrt Timeset err Write time setting error The parameter file may contain invalid data Contact NEC Electronics 080 Vrf Timeout Verify timed out There was a communication problem between the FP5 and target device Try the operation again 081 Verify failed Verify failed The data in the target device s flash memory is not the same as in the FP5 090 IVrf Timeout Internal verify timed out There was a communication problem between the FP5 and target device Try the operation again 091 IVerify failed Internal verify error An error was occurred while the write data level was being checked Erase and write the device again 092 VGT Comm err Device communication error There was a communication problem between the FP5 and target device Try the operation again 093 SUM Comm err Device communication error There was a communication problem between the FP5 and target device Try the operation again 094 SCF Comm err Device communication error There was a communication problem between the FP5 and target device Try the operation again Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 135 138 APPENDIX B SUPPLEMENTARY INFORMATION Figure B 1 Rela
29. file User Defined Any range can be specified by inputting the addresses to the Start Address and End Address text boxes Clicking the OK 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 PRS File Is for Target Device That Does Not Support Data Flash gt Ecks ari Programmer Checkstin Code 000000 03FFFF 623H pen om gt Firmware 1 00 Prog rea 0 Parameter and Setting file Name 79F1166 pr5 Version 1 00 Name 78F1166 est Date Wed Mar 28 19 01 29 2007 Download file Name sample hex Date Fri Feb 24 21 13 08 2006 Address Q00000 007FFF File checksum Type Arithmetic checksum 16 bit Address O00000 03FFFF Value 623E Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 43 138 Figure 4 11 Checksum Result lt If Downloaded PRS File Is for Target Device That Supports Data Flash gt DER gt fcks ari O 7ffff Programmer Checksum Code O00000 O07FFFF 6238 FP5GUI 1 00 Checksum Data 400000 40FFFF Firmware VI DU Checksum Total 623E Drog Ares 0 Parameter and Setting file Name 7OF338
30. 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 OK button Figure 3 14 Setup host connection Command Device Help Setup host connection Logging Select Programming area v Buzzer Reset Self Test Update Firmware Update FPGA Figure 3 15 Host Connection Dialog Box Host Connection C Serial Port Baud Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 34 138 6 Communication with the host machine is established Board HAN 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 WFPs E Eile Programmer Device Help EA UZISH A a gt ver FPSGUI 1 00 Firmyare Version MI OU Firmware 1 00 Board HAN V1 FPGA VI ProgArea 0 eria No tetetetetetetetatat L gt Parameter and Setting file Name 78F1166 pr5 Version MII Name 78F1166 esf Date Wed Mar 28 19 01 29 2007 Download He Name sample hex Date Fri Feb 24 21 13 08 2006 Address 000000 007FFF File checksum Type Arithmetic checksum 16 bit Address 000000 03FFFF Value 623E m Target device Name 78F1166 Port UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 FP5 Freq Internal Osc
31. of updating your firmware must NOT be Firmware update cannot be aborted The FP5 may not operate interrupted Without firmware this FP5 GUI will NOT normally if proper firmware is not installed run properly Select whether to update the firmware Install new firmware in your programmer 12211 Updating the FPGA will take several minutes The FPGA update 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 ATTENTION The FP5 may not operate normally if a proper FPGA is not installed Select whether to update the FPGA Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 132 138 Message 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 damaged by this test Start Self test Description Note the following points before performing self testing ATTENTION Unplug all target connectors and remote connectors If any hardware is connected it may be damaged by this testing 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 Please give file range Input the file range No arguments are specified for the range C
32. on the power supply connector specifications refer to CHAPTER 7 CONNECTORS AND CABLES Caution Do not use an AC adapier 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 itcan 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 deta
33. 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 PR5 file for PG FP5 a product of NEC Electronics together with programming settings ESF file e Multiple program files PR5 files and ESF files can be saved e Supports CSI CSI HS UART UC 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 e Compatible with PG FP5 a product of NEC Electronics 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 each product e The power supplied to the target device is stable 1 3 Sup
34. s Manual Provisional SBA1 070002 00 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 UO 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 if any Make sure that no hardware is connected and click the OK button self testing will then be executed If the Cancel button is clicked self testing will not be executed Figure 4 16 Confirmation Before Starting Self Testing INFORMATION 1 2212 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 Start Self test 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 s
35. save dialog box Figure 4 14 Log File Save Dialog Box Savein O LOG wi e EI rz FE L My Recent Documents Desktop My Network Pie name log tet y Places Save as type TXT files txt v Cancel Clicking the Save button saves the specified log file Clicking the Cancel button closes the dialog box without saving the log file Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 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 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
36. the INI file Select whether to reset the division factor E1108 No invalid Parameter file defined GUI can not work The GUI will not operate normally because no valid PRS file has properly been defined Set it in the Device Setup dialog box E 1201 Invalid file The specified file cannot be opened Set it in the Device Setup dialog box E1202 lt Setting file name gt is not valid Using most recent An incorrect format or value was detected in the ESF file The ESF settings file defined in the INI file will be used instead Set it in the Device Setup dialog box E1203 lt Parameter file name gt is not valid Using most recent An incorrect format or value was detected in the PR5 file The ESF settings file defined in the INI file will be used instead Set it in the Device Setup dialog box E1204 Download of parameter file failed Downloading of the PR5 file has failed The PR5 file may be invalid Re set the connection between the host machine and FP5 E1205 Download of setting file failed Downloading of the ESF file has failed The ESF file may be 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 E 1502 Caution Data Flash access unit is DWORD The data flash area can be accessed in double word units but an access was attempted in unsupported units E1503 Caution Out
37. the device for controlling the FP5 Updating the programming GUI firmware and FPGA enables the 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 website Website http www ndk m co jp asmis 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 menu
38. 0 31 00 81 00 81 0 1 00 81 00 FF FF FF FF FF FF FF FF FF F FF FF FF FF FF SR FF FF FF FF FF FF FF FF FF FF FF FF Sn FF FF FF FF FF FF FF F FF FF FF FF SU FF FF FF FF FF FF FF F FF FF FF FF SS 00 7B 1E 10 00 FC 99 13 9F 41 13 cic F Il A2 00 13 Al 04 13 Al 00 FB Al OO Td i MIA g3 t 97 86 C6 EA FF FE AD 29 00 13 29 a8 Ih A d 01 13 2F 00 13 22 FF 28 10 00 00 M dW Cot Boe 71 7A 28 31 05 E2 02 00 FB FA F9 az 1 je ee F F F F H 1 0 0 PIECE CER AE RK FF FF FF FF FF Se B 6 3 A 3 F 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 0 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 T
39. 0 pr5 Version 1 00 Name 7OF3380 est Date Wed Mar 28 20 14 08 2007 Download file Name sample hex Date Fri Feb 24 21 13 08 2006 Code flash Q00000 007FFF Data flash ans File checksum Type Arithmetic checksum 16 bit Code flash 623E 000000 07FFFF Data flash 0000 400000 40FFFF Total 623E 3 Quit command The Quit command terminates the programming GUI The programming GUI can also be terminated by clicking the x 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 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 Setup host connection Logging 2 Select Programming area 3 Buzzer 4 Reset Self Test O Update Firmware Update FPGA o N SI e ei roe NO NSO SU WS 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
40. 0002 00 84 138 4 3 4 Help menu Clicking the Help menu displays the following pull down menu Figure 4 63 Help Menu ao Help Topics La 1 I About FP5 lt 2 1 Help Topics command The command is not available 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 FP5 FPS Version 1 00 Copyright C 2005 2007 NEC Electronics Corporation All rights reserved Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 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 selec
41. 002 00 53 138 Figure 4 27 Setup host connection Command Programmer Device Help Setup host connection Logging Select Programming area gt veJ v Buzzer Firl Reset Doan Seri Self Test gt Update Firmware Update FPGA Figure 4 28 Host Connection Dialog Box Host Connection e USB C Serial Cancel The main window is opened Board H W V1 FPGA V1 is displayed in the action log window thus the version can be checked Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 54 138 Figure 4 29 Version Confirmation After FPGA Update Is Finished File Programmer Device Help Programmer FPSGU 1 00 Firmware 1 00 Drog Ares 0 oard HAN No f Parameter and Setting file Name 78F1166 pr5 Version 1 00 Name 78F1166 est Wed Mar 28 19 01 29 2007 Download file sample hex Fri Feb 24 21 13 08 2006 Address Q00000 007FFF File checksum Type Arithmetic checksum 16 bit z 000000 03FFFF 623E Target device 78F1166 UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 FP5 Freq Internal Osc Target Multiply 1 00 Mode For Help press F1 9 FP5 Manager command This command is not available Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 55 138 4 3 3 Device menu The following pull down menu appears by clicking the Dev
42. 1 070002 00 70 138 lt 6 gt Programming area map area The programming area status can be checked in this area The FP5 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 4rea Setting Division pattern Target Setting Parameter and Setting file C Program Files FL PR5 FP5_PRJ 78F1166 esf si New ee op Save As Object HE file C Program Files FL PR5 sample hex v Si Fri Feb 24 21 13 10 2006 Information Wear gt ing Not match FPS Area 2 Clear Cancel Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 cha
43. 13 0x6b93dddb 0x4d9b3063 Oxbfalb04b 0x99a95dFf3 Oxf3b06b3b 0xd5b88683 0x7a089632 Ox5c007b8a 0x36194d42 0x1011a0fa 0xe22b20d2 0xc423cd6a Oxae3afba2 0x8832161a Ox4e8ee645 0x68860bfd 0x029f3d35 0x2497d08d Oxd6ad50a5 OxfO0a5bdld Ox9abc8bd5 Oxbcbh4666d O0xb8757bda K 3 use table for better speed 0x17c56b6b 0x31cd86d3 Ox5bd4b01b Ox7ddc5da3 Ox8fe6dd8b Oxa9ee3033 Oxc3 706fb Oxe5ffeb43 0x23431blc Ox054bf6a4 Ox6 52c06c 0x495a2dd4 Oxbb60adfc 0x9d684044 Oxf 771768c 0xd1799b34 Ox7ec98b85 0x58c1663d 0x32d850f5 0x14d0bd4d Oxe6ea3d65 Oxc0e2d0dd Oxaafbe615 Ox8cf30bad 0x4a4ffbf2 0x6c47164a 0x065e2082 0x2056cd3a 0xd26c4d12 Oxf464a0aa 0x9e7d9662 Fo Z Oxla864db2 Ox3c8ea00a 0x569796c2 Ox709f7b7a Ox82a5fb52 Oxa4adl6ea Oxceb42022 Oxe8bccd9a O0x2e003dc5 0x0808d07d 0x6211le6b5 0x44190b0d 0xb6238b25 0x902b669d Oxfa325055 Oxdc3abded Ox738aad5c 0x558240e4 Ox3f9b762c 0x19939b94 Oxeba9lbbc Oxcdalf604 Oxa7b8cOcc 0x81b02d74 0x470cdd2b 0x61043093 0x0b1d065b Ox2d15ebe3 Oxdf2f 6bcb 0xf 9278673 0x933eb0bb 0x1e475005 0x384fbdbd 0x52568b75 0x745e66cd 0x8664e6e5 Oxa06c0b5d O0xca753d95 Oxec7dd02d Ox2acl12072 Ox0cc9cdca 0x66d0fb02 0x40d816ba Oxb2e29692 0x94eaT7b2a Oxfef34de2 Oxd8fba05a 0x774bb0eb 0x51435d53 Ox3b5a6b9b 0x1d528623 Oxef68060b Oxc960ebb3 Oxa379dd7b 0x857130c3
44. 4 gt Programmer parameter window Programmer FP5GUI 1 00 Firmware 1 00 Frog rea 0 Parameter and Setting file Name 78F1166 pr5 Version 1 00 Name 78F1166 esf Date Wed Mar 28 19 01 29 2007 Download file Name sample hex Date Fri Feb 24 21 13 08 2006 Address Q00000 007FFF File checksum Type Arithmetic checksum 16 bit Address QO0000 03FFFF Value 623E Target device Name 78F1166 Port UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 V FP5 Freq Internal Osc Target Multiply 1 00 Mode For Help press F1 lt 5 gt Status bar The main window consists of the following areas Name Displayed Items Refer to lt 1 gt Menu bar Menu items executable by the programming GUI 4 3 lt 2 gt Toolbar Frequently used commands as buttons 4 4 lt 3 gt Action log window A programming GUI action log 4 5 lt 4 gt Programming parameter window Programming parameter settings 4 6 lt 5 gt Status bar Command progress shown as a color or with a message 4 7 lt 6 gt Hint bar Hints for commands and toolbar 4 8 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 execution do not
45. 5 internal power supply and the external voltage regulator is protected by a transistor Figure 9 5 Vpp and Von Pins FP5_Vpp or FP5_Vpp2 d P Vop or Vop2 Voltage detector 1kQ FPS Target System 9 6 VPP Figure 9 6 Vpp Pin FP5_ VPP Transisto Voltage detector FP5 Target System Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 POWER 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 th
46. 6b0 Ox5a5e5b08 Oxa864db20 O0x8e6c3698 0xe4750050 Oxc27dede8 Ox6dcdfd59 Ox4bc510el 0x21dc2629 0x07d4cb91 Oxf5ee4bb9 Oxd3e6a601 Oxb9ff 90cC9 Ox9ff77d71 0x594b8d2e 0x7 436096 0x155a565e Ox3352bbe6 Oxcl683bce Oxe760d676 O0x8d79e0be Oxab710d06 h 4 gt N r u08 SPACE St 1 Perform CRC sum algorithm CRC_accum gt gt 24 CRC_accum lt lt 8 Ge SS An U32 CRC32_Tab 0x09823b6e 0x2f8ad6d6 0x4593e01e 0x639b0da6 0x91a18d8e 0xb7a96036 Oxddb056fe Oxfbb8bb46 0x3d044b19 OxlbOca6al 0x71159069 0x571d7dd1 Oxa527fdf9 0x832f1041 0xe9362689 Oxcf3ecb31 0x608edb80 0x46863638 Ox2c9f00f0 Ox0a97ed48 Oxf8ad6d60 Oxdea580d8 Oxb4bcb610 0x92b45ba8 Ox5408abf7 0x7200464f 0x18197087 0x3e119d3f Oxcc2bldl17 Oxea23f0af Ox803ac667 Oxa6322bdf CR LF e Ji e c amp 0x0d4326d9 0x2b4bcb61 0x4152fda9 0x675a1011 0x95609039 0xb3687d81 0xd9714b49 Oxff79a6f1 0x39c556ae 0x1fcdbb16 0x75d48dde 0x53dc6066 Oxale6e04e Ox87ee0df6 Oxedf73b3e Oxcbffd686 0x644fc637 0x42472b8E 0x285e1d47 Ox0e56f0fF Oxfc6c70d7 Oxda649d6f OxbO07daba7 0x9675461f 0x50c9b640 0x76c15bf8 Oxlcd86d30 0x3ad08088 Oxc8ea00a0 Oxeee2ed18 0x84fbdbd0 Oxa2f 33668 eat Saat Oxf il 0x130476dc 0x350c9b64 Ox5fl5adac 0x791d4014 Ox8b27c03c Oxad2 2d84 Oxc7361b4c Oxel3ef6f4 0x278206ab 0x018aeb
47. AILED FPGA Test PASS Power Supply Test PASS Target and Remote Interface Test FAIL Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 1 2210 Updating the firmware will take several minutes ATTENTION The process of updating your Firmware must NOT be interrupted Without firmware this FPS GUI will NOT run properly Install new Firmware in your programmer To continue the firmware update click the OK button Clicking the Cancel button cancels the firmware update Clicking the OK button opens the Open firmware file dialog box Figure 4 22 Open firmware file Dialog Box Open firmware file Look in 1 O firmware D e DIr ES E fp5_fw_v100 rec My Recent Documents Desktop My Network File name fp5_fw_v100 rec y Places Files of type S rec Hex files rec s hex rec sheslt e Cancel Select the firmware file fo5_fw_vxxx rec and then click the Open button Caution Do not use FP5 firmware other than the one posted on the website otherwise a defect may occur Flash M
48. 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 FL PR5 User s Manual Provisional SBA1 070002 00 108 138 Main Menu Submenu Description 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 Blk 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 The 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 Main Menu Submenu Description Voltage Setting gt Vdd Displays the value of Von supplied to the target device connected to the FP5 in volt
49. CHAPTER 6 USAGE IN STANDALONE MODE A 103 6 1 Before Starting Standalone Operation 103 6 2 Description of Buttons Message Display and Status LEDe 103 6 3 Standalone Operation Mens teeta innn RENE Snead 105 CHAPTER 7 CONNECTORS AND CARBLES AAA 110 71 Power Supply Connector reien a diese deed die niin 110 TeSa GONNGClOR EE a Sale 111 73 HEET ege ereicht ONE 112 754 Target CONNECTOR cscstehwtexteteGi on Sais deci ena tek Way ceed teased ee evel ie ee eee eel 113 ZS END Connector AEN EE ee a 115 CHAPTER 8 NOTES ON TARGET SYSTEM DESIGN AAA 116 CHAPTER 9 SPECIFICATIONS OF TARGET INTERFACE CIRCUITeG AAA 120 9 1 SO TXD RESET and SGK A EEA AEE TE 120 9 2 SIRXD ANG EE 120 Reeg os Sega de ca eas soc gie de a Saltese cee det Ss Saeed aa SR es sacar Teh cognates ates escn setae gat teeta ts 121 9 4 FEMDOandiFE MBA ee he as pc dad 121 9 5 VDD and VDD EE 122 9 6 VPP Svie iid fei notes Gee AL ee SR ed ee eee 122 CHAPTER 10 TROUBLESHOOTING eege ite evasive nei teed N a a a aN 123 10 1 Problems During Startup EE 123 10 2 Problems During Operati Mionici nee Sie ee de ieee eed eas 124 APPENDIX A MESSAGES 0 4 2 cc ait tht eA Ao ih Ae ah dees 127 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 7 138 AA IMe SSage en e EE 127 A 2 Error Warning Dialog Boxes for Programming GUI Operation ccceecceseseeeeeeeseeeeeeeeeseeeeeeeeeseaeeeseeeseaeeraees 128 A 3 Information Dialog Boxes for Programming GU
50. CUSTOMER NOTIFICATION o FL PR5 SBA1 070002 00 1 138 April 6 2007 Yoshikazu Saotome Manager Sales Sect First Sales Dept System Equipment Div Naito Densei Machida Mfg Co Ltd User s Manual Provisional Naito Densei Machida Mfg Co Ltd Date Published April 6 2007 1st edition URL http www ndk m co jp asmis Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 2 138 MEMO Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 3 138 Target Readers Purpose Organization How to Read This Manual PREFACE This manual is intended for users who use the FL PR5 hereinafter referred to as FP5 when designing and developing a system using an NEC Electronics on chip flash memory micro controller 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 FL PR5 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 micro controllers In the explanations of the operation of the ap
51. ER button executes the Autoprocedure E P command Program Pressing the ENTER button executes the Program command Erase Pressing the ENTER button executes the Erase command Verify Pressing the ENTER button executes the Verify command Security Pressing the ENTER button executes the Security command Checksum 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 Pressing the ENTER button executes the Blank check command Signature Pressing the ENTER button executes the Signature read command The device name is displayed in the message display Display 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 ENTER button Display example if ENTER 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
52. I Operation 131 AA Error Messages Displayed in FP5 Message Display 133 APPENDIX B SUPPLEMENTARY INFORMATION 135 APPENDIX C REVISION HISTORY pinarsems era anche eit ee ee dite eds 138 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 8 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 The information in this document is subject to change without notice No part of this document may be copied or reproduced in any form or by any means without prior written consent of Naito Densei Machida Naito Densei Machida assumes no responsibility for any errors that may appear in this document Naito Densei Machida does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or 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 Naito Densei Machida or others Descriptions of circuits software and other related information in this document are provided for illustrative purpose 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 N
53. 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 PG FP5 parameter file PR5 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 micro controller 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 support FP5 e Simplified control software for production line FPterm a product of Naito Den
54. Manual Provisional SBA1 070002 00 113 138 7 4 Target Connector The target connector 15 pin HD SUB female connector is laid out on the target connector side of the FP5 Figure 7 8 Target Connector lt FP5 Target Connector Side gt Target connector Figure 7 9 Target Connector 15 Pin HD SUB Female Connector Pin Assignment 11 Table 7 2 Target Connector Pin Configuration Target Connector Signal Name 1 SO TxD 2 SI RxD 3 SCK 4 RESET 5 VDD2 6 FLMD1 7 H S 8 VDD 9 VDD 10 RFU 1 11 VPP 12 FLMDO 13 VDE 14 CLK 15 GND Part number of target connector 15 pin HD SUB female connector 070431FB015S200ZU Suyin Connector Corp Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 114 138 7 4 1 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 s 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 Figure 7 12 16 Pin 2 54 mm Pitch Multipurpose Female Connector Outline View from Socket Side 11345 7 9 11 13 15 214 6 8 10 12 14 16 Table 7 3 Target Connector Pin Configuration 16 Pin 2 54 mm Pitch Multipurpose Female Connector C EE frre i
55. Operation Mode area on the Standard tab in the 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 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 read 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 Look in O HEX we D I eg ES A E sample hex Pe My Recent Documents Desktop My Documents E
56. PR5 User s Manual Provisional SBA1 070002 00 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 C Table 7 1 Serial Connector Pin Configuration Serial Connector Signal Name 1 NC RxD TxD Part number of serial connector 9 pin D SUB male connector 070430MB009G200ZU Suyin Connector Corp Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 T 8 9 OO d OO P G bh A 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 USB mini B type connector and USB type A connector Figure 7 7 GND Cable External View is e a USB mini B type USB type A Flash Memory Programmer FL PR5 User s
57. PR5 file for the target device used After selecting the PR5 file input the new ESF file name and then click the Save button Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 68 138 Save As 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 Save button Figure 4 45 Save as Dialog Box Savein FP5_PAJ e 4 IS 70F 1166 set My Recent Documents WW etwork Pie name 78F1166 esf v aces Save as type FP5 setup files esf X Cancel lt 4 gt Object HEX file area Select the program file in this area Figure 4 46 Object HEX file Area Object HEX file C Program Files FL PR5 sample hex e Seil 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 button program files stored in the changed folder are displayed Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 69 138 button Click this button when specifying a program file stored in a folder other than the bin folder in the p
58. Serial Out Vdd Serial In Vdd 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 Vop2 3 3 V This level can also be changed by input On Target check box Select this check box when supplying the Vpp Vope voltages from the target system Caution Set the values of the Vob Von2 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 Vop pin power supply detection function varies depending on the setting of the On Target check box e When Von is set to be supplied from FP5 On Target check box not selected If the target system Von exceeds 0 2 V before Von is supplied the message Target power detected Check Setup will be displayed in the action log window e When Von is set to be supplied from the target system On Target check box selected If Voo is outside the range of 5 of the Voo 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 FL PR5 User s Manual Provisional SBA1 070002 00 79 138
59. abled 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 in 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 Me
60. aito Densei Machida assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits software and information While Naito Densei Machida endeavors to enhance the quality reliability and safety of Naito Densei Machida 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 Naito Densei Machida products customers must incorporate sufficient safety measures in their design such as redundancy fire containment and anti failure features Note 1 Naito Densei Machida as used in this statement means Naito Densei Machida Mfg Co Ltd and also includes its majority owned subsidiaries 2 Naito Densei Machida products means any product developed or manufactured by or for Naito Densei Machida as defined above Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 9 138 CHAPTER 1 OVERVIEW The FP5 is a tool that erases writes and verifies programs on an NEC Electronics on chip flash memory micro controller on the target system or program adapter 1 1 Features e Supports on chip 2 power supply flash memory micro controllers and single power supply on chip flash memory micro controllers e Supports flash memory programming through the programming GUI using the host machine programming GUI
61. an FP5 FPGA other than the one posted on the website otherwise a defect may occur Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 Programmer FPGGUL MIDD Firmware 1 00 ProgArea 0 Parameter and Setting file Name 78F1166 pr5 Version 1 00 Name 78F1166 est Date Wed Mar 28 19 01 29 2007 Download file sample hex Fri Feb 24 21 13 08 2006 000000 007FFF E 1100 Communication within host PC and FlashProgrammer is broken File checksum Arithmetic checksum 16 bit 000000 03FFFF 623E Target device Name 78F1166 Port UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 FP5 Freq Internal Osc Target Multiply 1 00 Mode For Help press F1 4 Click the OK button in the error message dialog box and then press the POWER button on the FP5 to turn on power Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 33 138 5 Click the Programmer
62. 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 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 FL PR5 User s Manual Provisional SBA1 070002 00 127 138 APPENDIX A MESSAGES ATI 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 OH Communication within host PG and FlashProgrammer is broken Figure A 2 Information Dialog Box Infor mation BL 12413 Value is out of range Figure A 3 Action Log Window gt ep Synchronisation with device failed No more device versions to check P
63. aution When Chip Erase is disabled chip cannot be erased and programmed any more If Chip Erase is disabled the flash memory in the target device cannot be erased or rewritten Caution When Boot block cluster reprogramming is disabled chip cannot be erased and programmed any more If Boot block cluster reprogramming is disabled the flash memory in the target device cannot be erased or rewritten The selection is out of range The selected communication speed is higher than the maximum value defined in the PRS file The selection is out of range The selected communication speed is lower than the minimum value defined in the PR5 file Value is out of range The selected clock value is larger than the maximum value defined in the PR5 file Value is out of range The selected clock value is smaller than the minimum value defined in the PR5 file The selection is out of range The Vdd value exceeds the range defined in the PR amp file The selection is out of range The Vdd2 value exceeds the range defined in the PR8 file The selection is out of range The selected value is out of the valid range Input data is out of range The selected clock value exceeds the range defined in the PR5 file Caution Boot Block swapping will not be possible with this selection Anyhow boot block protection is possible Boot swapping is not available because the selected blo
64. ayed in the action log window Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 Supply voltage r Security command option Vdd M 05 00 Security flag settings I Disable Chip Erase Vdd2 v 00 00 rc Disable Block Erase F F Disable Program FLMDO WW o A CLK Pa Disable Boot block cluster reprogramming reset M oo Serial Out Vdd Block protection Boot Black end Serial In vad FS Block start Command options FS Block end Iw Blank check before Erase F Show Address F Verify after Program F Security after Program Reset vector setting F Checksum after Program Reset vector komm h r On Target Cancel Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 61 138 12 Setup command SG When the Setup command is executed the Device Setup dialo
65. ch removable media floppy CD ROM Include this location in the search C Program Files FL PRS5 driver KA Dont search will choose the driver to install Choose this 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 geg erem Weg 7 If the following window appears specify the same folder as specified in 6 for Copy files from and then click the OK button Figure 3 4 Files Needed Files Needed The file fpusb sys on FP5 USB Driver Disk is needed Cancel Type the path where the file is located and then click OK Copy files from C Program Files FL PRS driver 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 Finish button to complete the installation Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 wy Flash Programmer FPS Click Finish to close
66. ck number is larger than half the total block numbers defined in the PR8 file Boot block protection can be enabled 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 This file is not valid The file selected by the HEX Editor is invalid End record not found created The end record is missing The HEX editor will add the HEX format end record 00000001FF to the file 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 The file is modified Save file The file has been modified Select whether to save changes Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 133 138 AA Error Messages Displayed in FP5 Message Display No Message Error Condition Possible Workaround 001 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
67. 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 Device 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 FL PR5 User s Manual Provisional SBA1 070002 00 59 138 Figure 4 35 Action Log Window After Autoprocedure E P Command Execution gt ep 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 displ
68. cted 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 000000 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 FL PR5 User s Manual Provisional SBA1 07
69. ctly 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 Programmer FP5 is not displayed Alternatively a or x 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 FL PR5 User s Manual Provisional SBA1 070002 00 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
70. d 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 micro controller or FLMD1 in a two power supply flash memory micro controller 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 Item on Screen Description SIO ch0 SIO 3 wire clocked communication port channel 0 SlO ch1 SIO 3 wire clocked communication port channel 1 S lO ch2 SIO 3 wire clocked communication port channel 2 SIO H S SIO 3 wire clocked communication port with handshake IIG chO CC channel 0 lIC ch1 DC channel 1 IIC ch2 DC channel 2 IIC ch3 CC channel 3 UART chO UART asynchronous communication port channel 0 UART ch1 UART asynchronous communication port channel 1 UART ch2 UART asynchronous communication port channel 2 UART ch3 UART asynchronous communication port channel 3 Port chO 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 th
71. d is executed for the target device Figure 4 67 Status Bar Table 4 4 Status Bar Displays Immediately after the programming GUI is started A command execution is in progress or a PRS file ESF file or program file is being downloaded A command execution or downloading of a PR5 file ESF file or program file is completed normally A command execution or downloading of a PR5 file ESF file or program file is terminated abnormal Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 89 138 4 8 Hint Bar 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 gt ep Programmer Blank check Chip ERROR FPS GUI 1 00 Not blank Erase needed Firmware 1 00 Prog Area 0 Parameter and Setting file Name 78F1166 pr5 Version 1 00 Name 78F1166 est Date Download file Name sample hex Date Fri Feb 24 21 13 08 2006 Address Q00000 007FFF Heat Program OK File checksum Arithmetic checksum 16 bit 000000 03FFFF 623E Target device Name 78F1166 Port UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 FP5 Freq Internal Osc Target Multiply 1 00 Mode Erase and program the target device Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 90 138 CHAPTER 5 EXAMPLE OF OPERATION USING PROGRAMMING GUI This chapte
72. e 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 specify the following path for the programming GUI VX XX is the version of the programming GUI C Program Files FL PR5 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 corre
73. e Firmware 12210 Updating the firmware will take several minutes ATTENTION The process of updating your Firmware must NOT be interrupted Without firmware this FPS GUI will NOT run properly Install new Firmware in your programmer H Cancel Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 28 138 2 Click the OK button to continue firmware update The Open firmware file dialog box is opened Figure 3 8 Open firmware file Dialog Box Open firmware file Lookin Bima zl EIER B fp5_fw_v100 rec if 4 My Recent Documents a Desktop My Documents My Computer Places My Network File name fp5_fw_v100 rec S Files of type S rec Hex files rec s hex rec s heslt v Select the firmware file fp5_fw_vxxx rec and then click the Open button Caution Do not use FP5 firmware other than the one posted on the website otherwise a defect may occur Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 Versio
74. e 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 Ver or the FLMDO count corresponding to the selected communication mode is displayed This item cannot be changed Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 cho 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 57600Baud e 76800Baud e 115200Baud e 128000Baud e 153600Baud e 250000Baud e 500000Baud e 1000000Baud lt When SIO ch0 SIO ch1 SIO 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 cht 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 FL PR5 Us
75. e 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 HEN format error An illegal program file format was detected E1520 Too large address The address is too large The maximum address that can be used by the HEX Editor is 420000h E 1521 Can not run lt command name gt Running of the command name command has failed E1522 llegal address The range of the data storage address is invalid The start address may be larger than the end address E 1523 lt file name gt could not be opened Abort Save File lt file name gt cannot be opened File saving was aborted E 1524 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
76. e target system GND is different Use the GND cable to match the voltage before connecting the target cable Figure 7 14 GND Cable Outline 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 Common item Recommended Design 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 VIH VIL 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 IOH IOL 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 is connected This must be especially noted in a target system in which an external watchdog timer i
77. ection For details 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
78. ecuted 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 gt 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 Securit
79. emory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 WFPs Eile Programmer Device Help S EA YIS A gt version_up no_query j FP5GUI 1 00 Firmware 1 00 Preparing storage OK Prog rea 0 Now loading Parameter and Setting He FPS Selfprogramming V1 00 Name S 78F1166 pr5 Checking FLMDO level OK Version 1 00 Erase flash OK Name 78F1166 est Blank check OK Date Wed Mar 28 19 01 29 2007 Write flash sas SE 2 Hargin check Download file eri V Name sample hex Firmvare Update succeeds Date Fri Feb 24 21 13 08 2006 Address Q00000 007FFF Restarting FPS File checksum FFFFFFF PPPPP 555555 Arithmetic checksum 16 bit F P 5 000000 03FFFF F P Py 5 623E F P E 55555 FFFFF EPPEP 5 P 5 Target device e d i Name 78F1166 5555 Port UART Pulse Num 0 Speed 1 000 000 bps Firmvare Version V1 00 Vdd 05 00 FP5 Board H W V1 FPGA V1 Freq Internal Osc Target Serial No XXXXXEXXEX Mul
80. er s Manual Provisional SBA1 070002 00 74 138 IIC Address area If UC 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 TC 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 Vv Multiply rate Internal Direct mode 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 FP5 side On Target check box cleared input one of the following e 1MHz e 2MHz e 4MHz e 5MHz e 6MHz 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
81. ettings 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 FP5 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 the programming environment settings specific to the user environment and PR5 file names If the f
82. 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 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 O HEX X 2 E sample hex My Recent Documents Ki My Computer My Network Fle name S Places Files of type HEX Files D HES X 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 FL PR5 User s Manual Provisional SBA1 070002 00 39 138 Figure 4 7 HEX Editor Main Window ff Editor G HEX sample hex DAR File Goto address 0 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF a 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 31 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 0
83. format may be incorrect E 1527 Cannot open temporary file Opening of the temporary file has failed The file may be corrupted E 1528 File Save error Abort Save File Saving the file has failed E 1529 lt line number gt Check sum error Continue A checksum error has occurred in line line 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 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 130 138 Data Flash format error lt data address gt Invalid ID Tag Description The data flash format is invalid Valid 4 bytes are followed by an 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 Parameter of Start Address is invalid The value input as the start address is not a valid hexadecimal number Parameter of End Address is invalid The value input as the end address is not a valid hexadecimal number lt file name gt could not be opened Abort Save File lt file name gt cannot be opened File saving was aborted Data error Abort DATA Check A data error has been found in the program file Data checking was aborted Temporary file could not be read Abort Save File Opening of the tem
84. g box The original start address and end address are displayed by default radio button for the format in which to save the data the saved file with other tool products is not supported Select the file Select the same format as that of the loaded file Use of Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 41 138 lt 1 gt lt 2 gt lt 3 gt 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 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 OK 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 PR5 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 does not support data flash
85. g box is opened In this dialog JD box select a program file perform settings in accordance with the user environment for flash memory programming set command options and perform security settings Each time the programming GUI is started the programming GUI loads the PR5 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 4rea Setting Division pattern a Unk iV C 8 division 2 MB DIVI o ics Target Setting Parameter and Setting file O Program Files FL PR5 FP5_PRJ 79F1166 est v New E 1166 pr Saveds Object HE file C Program Files FL PR5 sample hex v Fri Feb 24 21 13 10 2006 Information IT Clear Cancel Remark e PR5 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 PR amp 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 pr
86. gress and ERROR red LED turned on indicates errors Used to turn 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 POWER Target connector GND connector Remote connector Figure 2 4 FP5 Host Interface Side CJ Cee e POWER Serial port USB port connector Figure 2 5 FP5 Target Connector Side e Lie Target connector GND Remote connector connector Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 18 138 1 Power supply connector Connect the power supply connector to the AC adapter included with the FP5 For details
87. he following keys can be input using the keyboard Table 4 1 Key Functions That Can Be Input in HEX Editor Window Function Data input data display area Move cursor in right direction Move cursor in left direction Move cursor in up direction Move cursor in down direction Tab Move cursor to next input field address 1 If any change has 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 FL PR5 User s Manual Provisional SBA1 070002 00 40 138 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 HEX EI er ES EI sample hex Save as type HEX Files HEX X Cancel Intel HEX C Motorola SREC Start address End address The downloaded PR amp file is for a target device that supports data flash Save in O HEX DI DI rr ES EI sample hex Save as type HEX Files C HES v Cancel Intel HEX C Motorola SREC Iw Code flash area Data flash area Start address PF End address 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 dialo
88. ice menu This menu includes commands mainly related to programming to the target device such as erase write and verify Figure 4 30 Device Menu File Programmer Be 1 Blank check 2 Erase Zb EN N 3 n Program KS 4 Verify 5 View 6 Pon Write Intel HEX file 7 SE Write Motorola SREC file ss r 8 Autoprocedure E P 9 et 10 Signature read 1 1 Get Security Settines 12 Setup 1 Blank check command F 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 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 i ong is executed with Chip selected security command options are initialized at the same time While erasing the 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 dis
89. ice Setup Dialog Box Advanced Tab Target Standard Advanced Supply voltage r Security command option lt 3 gt Vdd Mi 05 00 Security flag settings I Disable Chip Erase Vdd v 00 00 Disable Block Erase On Target E Vdd manttonna fe I Disable Program lt 4 gt lt 1 gt FLMDO vad Disable Read CLK Vdd Disable Boot block cluster reprogramming RESET vad Serial Dut vad r Block protection Boot Block end Serial In Vdd lt 5 gt FS Block start Command options FS Block end Iw Blank check before Erase Show Address 1 Verify after Program I Security after Program Reset vector setting I Checksum after Program Reset vector Res OU h lt 6 gt M Aunstte lt 2 gt Cancel Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 78 138 lt 1 gt Supply voltage area In this area specify one Von or two Voo and Vop2 voltage levels for target device programming in accordance with the target device type Basically Vpp 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 MI Wm vdd2 MJ Dm S On Tareet E FLMDO Vdd OLK Vdd RESET Mdd
90. ile 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 separately e Program adapter FA xxxx a product of Naito Densei Machida Mfg Co Ltd sold separately e
91. ils on the GND connector 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 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 PG FP5 parameter file PR5 file from the following website lt Programming GUI including USB driver gt URL http www ndk m cp jp asmis gt Click FL PR5 lt PR5 file gt 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 micro controller to be used in the Each Device Series column and select the device name in the Device Name column the parameter file for PG FP5 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 Item Method 1 Programming Run
92. in the programming GUI installation folder are displayed If the reference folder is changed by using the New or Save As button ESF files stored in the changed folder are displayed Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 66 138 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 the relevant file and then click the Open A dialog box for specifying the ESF file will be displayed Specify button Figure 4 43 ESF File Select Dialog Box Look in FP5_PRJ DI e rh PS BESSER My Recent Documents Desktop My Documents My Network File name Places Files of type 78F1166 esf D FP5 setup files esf X Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 Savein FP5_PRJ X IS 78F1166 esf My Recent Documents My Network File name 79F1166 esf bd Places Save as type FP5 setup files D est X Cancel Parameter file 78F1166 pr5 The PR5 file stored in the FP5_PRJ folder in the programming GUI installation folder is displayed in the Parameter file list Select the
93. ion 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 l AC adapter pS Et Host machine FP5 Target cable i GND cable co bea 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 conn
94. is opened by the Setup command in the Device menu Figure 4 15 Programming Area Select Dialog Box Programming area Areato be used O ze 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 OK 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 OK button selects the programming area selected in the programming area select dialog box Clicking the Cancel button closes the dialog box without changing the programming area 4 Buzzer command The Buzzer 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 FL PR5 User
95. isplay The status LEDs indicate the status of communication with the device and the result of execution as follows Status LED 6 Green Status The selected command has been executed correctly The command that has been correctly executed is displayed in the message display 0 Orange The selected command is under execution The detailed execution status is displayed in the message display Di The selected command has been terminated by an error The error details are displayed in the message display Remark For details on the errors displayed in the message display refer to error message AA Error Messages Displayed in FP5 Message Display Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 E P V Pressing the ENT
96. l Fri Feb 24 21 13 10 2006 lt 5 gt Information Unknown lt 6 gt Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 programming 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 Area Setting Division pattern C 8division MB DI o e 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
97. le C Program Files FL PR5 J 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 IS bin D pe Pi My Recent Documents Desktop My Documents My Computer My Network File name sample hex 7 Places Files of type S rec Hex files rec s hex Cancel Iw Erase memory before download Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 Ney sl Frequency finteinal osi Pulse number 0 Speed 1Mbps DN Multiply rate C d ion ei Operation Mode e Chip Block Start o r Defaults lt 10 gt Set the items in accordance with the programming environment used In 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 PPR 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 Por
98. lease check connection Cannot connect to device i Figure A 4 Error Message FP5 Message Display ERROR 012 Check connection Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 128 138 A3 Error Warning Dialog Boxes for Programming GUI Operation No Message Description E1100 Communication within host PC and FlashProgrammer is An error occurred in communication between the host machine and broken the FP5 Check the cable connection and FP5 power supply E1101 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 E1105 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 Incorrect version information or an old version was detected requirement Update the FP5 firmware E1107 Parameter area format is not match with initial file Do The factor for dividing the programming area does not match the you want reset parameter area format one defined in
99. m 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 78K0 78KOS other than 78KOS Kx1 microcontrollers and u 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 FL PR5 User s Manual Provisional SBA1 070002 00 58 138 Figure 4 33 Action Log Window After Checksum Command Execution lt When using 78KO 78KOS other than 78KOS Kx1 microcontrollers and u PD78F9334 78KOR or V850 gt gt sum 0x623E OK gt Remark With the 16 bit arithmetic subtraction 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 uwPD78F9334 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 78KOS Kx1 microcontroller or u 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 N Program
100. mand 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 PR5 file are restored Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 Dev
101. mmand gt is displayed in the message display 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 POWER 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 WINDOW S System32 Drivers fpusb sys USB driver entity CAWINDOW S inf OemX 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 FL PR5 User s Manual Provisional SBA1 070002 00 25 138 3 4 Updating Programming GUI Firmware and FPGA The firmware and FPGA are programs embedded in
102. mory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 82 138 Figure 4 60 Disable Boot block cluster reprogramming Warning Dialog Box Warning A 12402 Caution When Boot block cluster reprogramming is disabled chip cannot be erased and programmed any more Cancel Clicking the OK button determines the selection of the Disable Boot block cluster reprogramming check box Clicking the Cancel 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 Figure 4 61 Block protection Area Block protection Boot Block end FS Block start 0 e FS 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 sele
103. n 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 operation progress status Figure 3 9 Action Log Window When Firmware Update Is Finished WFPs Eile Programmer Device Help A TA UIS A gt version_up no_query f FP5GUI MIO i Firmware Vi D Preparing storage OK Drog Ares 0 Now loading Parameter and Setting file Name 78F1166 pr5 FPS Selfprogramming 1 00 sg Checking FLMDO level OK Version 1 00 Erase flash OK Name 78F1166 est Blank check OK Date Wed Mar 28 19 01 29 2007 Write flash J gg Margin check S Download file eri OK Name sample hex Date Fri Feb 24 21 13 08 2006 iResterting FPS Address 000000 007FFF File checksum FFFFFFF PPPPP 555555 Arithmetic checksum 16 bit P 5 000000 03FFFF F P Po S 623E P 55555 5 F P FFFFF PPPPP P 5 Target device SN 5 Name 78F1166 5555 Port UART Pulse Num 0 Speed 1 000 000 bps Firmware Version 1 00 Ydd 05 00 FP5 Board HN V1 FPGA V1 Freq Internal Osc Target Serial No XXXXXEXXEX Multiply 1 00 Mode P P P 3 iFirmvare Version 1 00 Board HAN V1 FPGA VI Serial No XXXXXEXXEE gt Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 30 138 3 4 4 Installation of FPGA update Install the latest FPGA by using the latest programming GUI Run the dow
104. nloaded 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 ais Device Help Setup host connection Logging Select Programming area ue v Buzzer Fir Reset Ser Self Test gt Update Firmware Update FPGA Figure 3 11 Update FPGA Dialog Box Update FPGA 12211 Updating the FPGA will take several minutes ATTENTION The process of updating your FPGA must NOT be interrupted Without FPGA this FPS GUI will NOT run properly Install new FPGA in your programmer Cancel Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 31 138 2 Click the OK button to continue FPGA update The Open FPGA file dialog box is opened Figure 3 12 Open FPGA file Dialog Box Open FPGA file Look in fpo D e EI cr ES 3 BESSE Il My Recent Documents E Desktop r My Documents zi My Computer Places My Network File name fp5_fpga_v100 rec S Files of type S rec Hex files rec s hes l rec s hexlt e Cancel Select the FPGA file fp5_fpga_vxxx rec and then click the Open button Caution Do not use
105. nnels 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 Target Standard Advanced Communication interface to device Supply oscillator Port Frequency 5000000 lt 1 gt Pulse number 11 On Target Hz Iv lt 2 gt Speed 5000kHz x Multiply rate Intemal Direct mode es on PU mode 4 00 Operation Mode e Chip C Block Start lt 3 gt C Are Endf a Defaults lt 4 gt 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 to device Port S10 ch0 ba Pulse number 0 Speed 625kHz hs pm Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 use
106. nual Provisional SBA1 070002 00 118 138 Target Device Pin Recommended Design Ver Keep the wiring between the FP5 connector and the target device Ver pin as thick and as short as possible Insert neither capacitors nor resistors into the Ver line unless otherwise stated Incorrect circuit Target device Vee Target device Me FLMDO Insert neither capacitors nor resistors into the FLMDO line unless otherwise stated Target device FP5 FLMLO FLMDO I 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 users manual of the target device Example of pins connected differently MODE CKSEL REGOUT REGIN etc Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 Connector 8 FLMDo Note 1 FLMD1 Note 1 HS RESET Vpp Note 2 SR SR Von m m Vss WT TT Target de
107. o consult an NEC Electronics sales representative or distributor Figure 4 17 When Self Testing Result Is PASSES lt Action Log Window gt gt selftest kkkkk CAUTION kkkkk Remove any plugs from Target and Remote Connector before starting Any hardware attached to those connectors may be damaged by this test kkkkk CAUTION kkkkk 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 FL PR5 User s Manual Provisional SBA1 070002 00 48 138 Figure 4 18 When Self Testing Result Is PASSES lt Result Dialog Box gt z Self test FPS Self test OK FPGA Test PASS Power Supply Test PASS Target and Remote Ihterface Test PASS Figure 4 19 Example for When Self Testing Result Is FAILED lt Action Log Window gt gt selftest kkkkk CAUTION kkkkk Remove any plugs from Target and Remote Connector before starting Any hardware attached to those connectors may be damaged by this test kkkkk CAUTION kkkkk 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 F
108. of range The address range for saving data is out of the code flash or data flash address range Check the start end address E1504 Caution Start address should not larger than End The start address is larger than the end address Check the address start end address E 1505 Caution End address should not smaller than start The end address is smaller than the start address Check the address start end address E1506 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 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 129 138 No Message Description E 1508 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 E 1510 Can not open lt file name gt Abort lt file name gt cannot be opened E 1511 Pie load error Abort An error occurred during file reading or writing E1512 Memory cannot be allocated Confirm that sufficient memory capacity is available in Windows E1513 Memory reallocation error Confirm that sufficient memory capacity is available in Windows E1514 Check sum error Continue It was detected that th
109. ogrammer FL PR5 User s Manual Provisional SBA1 070002 00 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 Programmer FPGGUL MIDD Firmware 1 00 ProgArea 0 Parameter and Setting file Name 78F1166 pr5 Version 1 00 Name 78F1166 est Date Wed Mar 28 19 01 29 2007 Download file sample hex Fri Feb 24 21 13 08 2006 000000 007FFF E 1100 Communication within host PC and FlashProgrammer is broken EE Arithmetic checksum 16 bit 000000 03FFFF 623E Target device Name 78F1166 Port UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 FP5 Freq Internal Osc Target Multiply 1 00 Mode Chip For Help press F1 Click the OK 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 OK button Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070
110. ogramming GUI will not recognize the ESF file Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 62 138 When the OK button button common to Target Standard and Advanced tabs is clicked program areas are cleared and PR5 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 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 Cancel 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 Programmer Device Help ISS i Programmer gt FPSGUI 1 00 Firmware 1 00 a oading ProgArea 0 Parameter and Setting file Now loadin Name 78F1166 pr5 q g OK Ver
111. 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 FL PR5 User s Manual Provisional SBA1 070002 00 126 138 Cause 5 Power may not be supplied correctly to the target 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
112. ost 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 Next gt button Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 21 138 Figure 3 1 Found New Hardware Wizard Window lt 1 gt Found New 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 CD or on the Windows Update Web site with your permission Read our privacy policy Can Windows connect to Windows Update to search for software O Yes this time only O 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
113. played 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 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 the 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 receives the result The target area can be set in the
114. ple hex ftime 2006 02 24 21 13 Date Fri Feb 24 21 13 08 2006 Preparing storage OK Adress 000000 007FFF Now loading Address range 0x000000 to 0x007FFF CRC32 Ox61D5F67C g OK File checksum gt ep Blank check Chip ERROR Target device 78F1166 Pott UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 FP5 Freq Internal Osc Target Multiply 1 00 Mode rem Erpse Program OK For Help press F1 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 102 138 8 System shutdown lt 1 gt Remove the program adapter from the target cable Remark Turn off power and remove the target system before supplying Vpp Vppe2 from the target system lt 2 gt H 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 POWER 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 Flash Memory Programmer FL PR5 User s Manual Provisional
115. plications it is also assumed that the readers have sufficient knowledge of Windows For the usage and terminology of Windows refer to each Windows manual 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 FL PR5 User s Manual Provisional SBA1 070002 00 4 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 0xxxxH 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 Term Meaning FP5 Abbreviation of the flash memory programmer FL PR5 Programming GUI Windows application to operate FP5 using programming GUI Target device NEC Electronics on chip flash memory micro controller Target system User designed board on which target device is mounted Note Program adapter Conversion adapter to write programs to target device PR8 file Text file containing programming information specific to the target device Parameter file pr5 for PG FP5
116. porary file has failed The file may be corrupted Error line lt line number gt Data Count error Abort Data Count Check Error line lt line number gt A data count error has occurred in line line number The program file format may be incorrect Cannot open temporary file Opening of the temporary file has failed The file may be corrupted File Save error Abort Save File Saving the file has failed lt line number gt Check sum error Continue A checksum error has occurred in line line number The program file format may be incorrect Select whether to continue the operation Too large address Edit range 0 0x420000 The program file address is too large Set an address value in the range 0 to 420000h Data Flash format error lt dataaddress gt Invalid ID Tag The data flash format is invalid Valid 4 bytes are followed by an 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 Parameter of Start Address is invalid The value input as the start address is not a valid hexadecimal number Parameter of End Address is invalid The value input as the end address is not a valid hexadecimal number Temporary file could not be read Abort Dump Hex The temporary file cannot be read Opening of the HEX Editor was aborted Can not open lt file name gt Abort D
117. ported Devices The FP5 supports on chip 2 power supply flash memory micro controllers and on chip single power supply flash memory micro controllers FP5 parameter files PR5 files corresponding to the supported devices are posted on the following website of NEC Electronics 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 micro controller 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 FL PR5 User s Manual Provisional SBA1 070002 00 10 138 1 4 FP5 System Overview The FP5 system overview is shown in the following diagrams Figure 1 1 FP5 Connection Image Figure 1 2 FP5 Function Overview Serial cable HEX editor changes the memory contents Checksum calculation Self testing function Programming environment setting Saved in FP5 internal flash memory Downloading program files GND cable ob Bes Target system or program adapter Target cable E INI file 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 Programming GUI operation lt Programming GUI operation gt The following operations can be performed with the programming GUI The s
118. r explains a series of basic FP5 operations using the programming GUI taking a case where the uPD78F1166 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 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 1 2 3 4 Installation of programming GUI Installation of PR5 file System connection and installation of USB driver Connection of program adapter 6 7 8 Setting of programming environment 1 2 3 4 5 Startup of programming GUI 6 7 Execution of Autoprocedure E P command 8 System shutdown Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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
119. rogramming GUI installation folder The Download file dialog box will be displayed Specify the relevant file and then click the Open button Figure 4 47 Download file Dialog Box Download file Look in HEX gt amp e Fey A IS sample hex My Recent Documents Desktop Places My Network File name y Files of type Ss Hex files C we a hex E Cancel Iw 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 Clear button This area displays a warning message or is used to clear information on PR5 files ESF files and program files Figure 4 48 Information Area and Clear Button Information rl 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 Clear 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 OK button is clicked in the Device Setup dialog box Flash Memory Programmer FL PR5 User s Manual Provisional SBA
120. s Vdd2 Displays the value of Vopz supplied to the target device connected to the FP5 in volts 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 Ver supplied to the target device connected to the FP5 in volts Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 PR6 file downloaded check the name of the program file downloaded and check the checksum of program files The settings downloaded to the valid programming area are displayed The settings cannot be changed using this menu Main Menu Utility Misc gt Table 6 5 Utility Misc Menu Description Pressing the ENTER button resets the FP5 Submenu Reset FP5 gt Set LCD Contr gt Tunes the contrast in the message display After pressing the ENTER but
121. s 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 zb 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 FL PR5 User s Manual Provisional SBA1 070002 00 117 138 Target Device Pin Recommended Design Correct connection lt 4 gt Target device FP5 RESET Correct connection lt 5 gt Target device FP5 RESET cont UO 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 FPS input pin 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 Flash Memory Programmer FL PR5 User s Ma
122. sei Machida Mfg Co Ltd sold separate gie e Gang supported software for production line FW GFP a product of Naito Densei Machida Mfg Co Ltd sold separate lge Note Under development Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 13 138 1 6 Hardware Specifications Table 1 1 Hardware Specifications Hardware Items 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 Package size 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 save 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 15V 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 Serial connector 9 pin D SUB male connector for RS 232C 9600 19200 38400 57600 115200 bps Serial cable Approximately 3 m
123. sion 1 00 Name 78F1166 esf gt lod fname sample hex ftime 2006 02 24 21 13 Date Wed Mar 28 19 01 29 2007 Preparing storage OK Download file Hov Loading Name sample hex I Address range 0x000000 to Ox007FFF CRC32 Ox61D5F67C Date Fri Feb 24 21 13 08 2006 IOR Address 000000 007FFF File checksum Type Address Value Target device Name 78F1166 Port UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 FP5 Freq Intermal Osc Target Multiply 1 00 Mode Chip Range Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 63 138 a Target tab in Device Setup dialog box Settings related to programming areas PR5 files ESF files and program files can be performed on the Target tab in the Device Setup 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 Clear button lt 6 gt Programming area map area Figure 4 39 Device Setup Dialog Box Target Tab Target Standard Advanced Programming Area Setting Division pattern lt 1 gt lt 2 gt Target Setting r Parameter and Setting file C Program Files FL PR5 FP5_PRJ lt 3 gt 78F1166 est ll New f D Save As Object HES file C Program Files FL PR5 lt 4 gt sample hex v E
124. t 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 FL PR5 User s Manual Provisional SBA1 070002 00 98 138 lt 11 gt Click the Advanced tab Figure 5 15 Device Setup Dialog Box Advanced Tab Target Standard Advanced gt Supply voltage r Security command option Vdd N l 05 00 Security flag settings I Disable Chip Erase Vdd2 V 00 00 Disable Block Erase On Target i Disable Program FLMDO vad rp CLK Vdd Disable Boot block cluster reprogramming RESET Vad Serial Dut Vad m Block protection Boot Block end Serial In vad FS Block start Command options FS Block end Iw Blank check before Erase I Show Address 1 Verify after Program I Security after Program Reset vector setting Checksum after Program Reset vector T Au lt 12 gt Check 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 PRS file On Target check box Cleared Power is supplied from FP5 Command options area Blank check before Erase Selected Securi
125. t selection and return to the previous menu level The command currently running cannot be stopped except for the Read command The START 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 FL PR5 User s Manual Provisional SBA1 070002 00 104 138 Figure 6 1 Menu Status Transition by Button Input Main menu Submenu ENTER button Commands Type Setting a Type Setting button Option Setting Option Setting Voltage Setting Voltage Setting Utility Misc NEXT button Utility Misc ENTER button ResetFP5 gt Command execution NEXT 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 ENTER 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 d
126. tatic 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 becoming 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 FL PR5 User s Manual Provisional SBA1 070002 00 6 138 CONTENTS CHAPTERS OVERVIEW Aen erg ohescesbiea Eur ere EELER Oe 9 Weel ET 9 UE WiN Be EE 9 VS Supported MR 9 1 4 FPS System OVernview sida e ee ae ed 10 15 Operating BS lei 11 1 6 Hardware Specifications EE 13 CHAPTER 2 HARDWARE CONFIGURATION AAA 14 2d Ee le ET 14 2 2 System Configuration EE 14 2 3 Names and Functions on Main Un 16 CHAPTER 3 SOFTWARE INSTALLATION AAA 19 3 4 Obtaining eu ETC 19 Bie Ee RE 19 E H ui EE 24 3 4 Updating Programming GUI Firmware and FEPOGA 25 CHAPTER A PROGRAMMING GUI USAGE A 35 af Tute e Le 35 4 2 Startup of Programming GU TEE 35 AS Me nu TEE 38 ae 85 4 5 Action Log Window naines hadi eed ete SR eae ie ed cs ee Ri ee eee 86 4 6 Programming Parameter WindOW ccccseceeesecneeeeseeee tense eeeeseneeeeeseeeesesueeeeenense ae a e aa aia a 87 KETTEN 88 e ale 89 CHAPTER 5 EXAMPLE OF OPERATION USING PROGRAMMING GU 90
127. tem before supplying Vop Vpp2 power from the target system 5 Startup of programming GUI lt 1 gt Click the Start menu All Programs point to FL PR5 and then select FL PR5 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 Infor mation Search Communication port Trying connect to COM3 with 9600 Please wait Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 92 138 lt 2 gt The communication mode can also be selected by cancelling this operation with the Cancel button and selecting the Setup host connection command in the Programmer menu Figure 5 2 Setup host connection Command Reset Self Test Update Firmware Update FPGA lt 3 gt Perform settings according to the communication port connected to the FP5 Figure 5 3 Communication Parameter Setup Host Connection C Serial lt 4 gt Click the OK button to enable the new port settings Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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
128. the downloaded self extracting file fp5guixxx exe An executable file setup exe is GUI decompressed into the folder so run it And perform installation following the directions on the installer screen 2 PR8 file Run the downloaded self extracting file pr5xxxxxxx_vxxx exe A pr5 file is decompressed into the folder so copy it to the FP5_PR4J 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 FL PR5 User s Manual Provisional SBA1 070002 00 20 138 The folder configuration after programming GUI installation is as follows CH Program Files Folder structure for which installation is specified FL PR5 a Folder where programming GUI is stored fp5 exe i FP5_PRJ Folder where PR5 files and ESF files are stored a nothing is stored immediately after installation DRIVER a Folder where USB driver is stored fpusb sys fpusb98 sys fpusb inf 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 the h
129. the wizard Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 Item 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 PRS files pr5 stored in the FP5_PRJ 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 PRU 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 Co
130. thus cannot be used 006 Command aborted Command aborted The Read command has been canceled 008 Parameter Error PR5 file Error The parameter file may be damaged 009 Power failure Abnormal VDD current An overcurrent was detected during VDD output Check the connection with the device 011 Read Sig failed Device signature reading failed Check if the correct device is selected 012 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 020 Inv Sig ID Invalid signature ID Check if the correct device is selected 021 Inv Sig Code Invalid signature code Check if the correct device is selected 022 Inv Sig func Invalid signature function Check if the correct device is selected 023 Inv Sig addr Invalid signature address Check if the correct device is selected 024 Inv device name __ Invalid device name Check if the correct device is selected 025 Inv Signature Invalid signature Check if the correct device is selected 026 Inv Dev Firm ver Invalid device firmware version Check if the correct device is selected 030 Prewrite Timeout Prewrite timed out A communication problem occurred between the FP5 and target device Try the operation again
131. ting 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 FL PR5 User s Manual Provisional SBA1 070002 00 86 138 4 5 Action Log Window This window displays the log of programming GUI actions Figure 4 65 Action Log Window gt epy Blank check Chip ERROR Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 87 138 4 6 Programming Parameter Window This window displays the programming parameter settings Programmer area Figure 4 66 Programming Parameter Window Programmer FP5SGUI 1 00 Firmware 1 00 Prog Area 0 Parameter and Setting file Name 78F1166 pr5
132. tionship Between HEX Editor and Saved Program File lt HEX Editor gt address 0 1 2 3 4 5 6 7 8 9 A B C D E F JID Tag 400000 00 11 22 33 44 55 66 77 88 99 AA BBCC DD EE FF J1100 lt Saved program file gt address j Data Flash 400000h 1400 11 22 33 400010h 188 99 AA BB Data Flash 144556677 4 FF FF FF FF ICC DD EE FF log 00 00 00 ID Tag FE FF ERPF 00 00 00 00 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 Figure B 2 32 bit CRC Calculation Specifications L a const u32 CRC32_Tab void Gen_CRC_Sum_Char The generator polynomial used for this table is X 32 x 26 x 23 x 22 x 16 x 12 x 11 x 10 x 8 x 7 x 5 x 4 x 2 x 1 x 0 according to Autodin Ethernet ADCCP protocol standards Binary 0x00000000 0x2608edb8 0x4c11db70 0x6a1936c8 0x9823b6e0 Oxbe2b5b58 0xd4326d90 Oxf23a8028 0x34867077 Ox128e9dcf 0x7897ab07 Ox5e9f46bf Oxaca5c697 Ox8aad2b2f Oxe0b41de7 Oxc6bcf05f 0x690ce0ee 0x4 040d56 0x251d3b9e 0x0315d626 Oxf12 560e Oxd727bbb6 Oxbd3e8d7e 0x9b3660c6 0x5d8a9099 Ox7b827d21 0x119b4be9 0x3793a651 Oxc5a92679 Oxe3alcbcl Ox89b8fd09 Oxafb010bl1 s32 i Ignore if c return i CRC_accum 0x04c11db7 256 0x04c11db7 0x22c9f00f 0x48d0c6c7 0x6ed82b7f 0x9ce2ab5 Oxbaea46ef Oxd0 3702 Oxf6fb9d9f 0x30476dc0 0x164 8078 Ox7c56b
133. tiply 1 00 Mode P P P gt Firmware Version 1 00 Board H W V1 FPGA V1 Serial No XXXXXEXXEX gt Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 12211 Updating the FPGA will take several minutes ATTENTION The process of updating your FPGA must NOT be interrupted Without FPGA this FPS GUT will NOT run properly Install new FPGA in your programmer To continue the FPGA update click the OK button Clicking the Cancel button cancels the FPGA update Clicking the OK button opens the Open FPGA file dialog box Figure 4 25 Open FPGA file Dialog Box Open FPGA file Look in fpga 2 B fp5_fpga_v100 rec My Recent Documents CG Desktop My Documents My Computer Places My Network File name fp5_fpga_v100 rec S Files of type S rec Hex files rec s hex rec s bel e Select the FPGA file fp5_fpga_vxxx rec and then click the Open button Caution Do not use FP5 FPGA other than the one posted on the website otherwise a defect may occur Flash Memory Pr
134. ton the contrast can be tuned using the NEXT darken or CANCEL button lighten To fix the contrast click the ENTER button 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 ma 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 FL PR5 User s Manual Provisional SBA1 070002 00 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 supply connector Figure 7 2 Power Supply Connector Pin Assignment E Q Ed Caution Do not connect an AC adapter other than the one included with the FP5 to the power supply connecter Flash Memory Programmer FL
135. ty command option area Not used Remark Set Vdd V and Vdd2 V and select the On target check box before supplying Vpp Vop2 power from the target system lt 13 gt Click the OK button in the Device Setup dialog box Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 Programmer FPGGUL MIDD Firmware 1 00 Serial No XXXXXXXXEX pein 2 gt A Parameter and Setting file BORD EER Name 78F1166 pr5 Version 1 00 Name 78F1166 est Date Wed Mar 28 23 50 39 2007 Download file gt Name sample hex gt lod fname sample hex ftime 2006 02 24 21 13 Date Fri Feb 24 21 13 08 2006 Preparing storage OK EES O00000 007FFF Now loading 2 ee Address range 0x000000 to Ox007FFF CRC32 Ox61DSF67C OK File checksum gt Target device Name 78F1166 Port UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 V FP5 Freq Internal Osc Target Multiply 1 00 Mode Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 100 138 7 Execution of Autoprocedure E P command Execute the Autoprocedure E P command in the Device menu Figure 5 17
136. ump Hex lt file name gt cannot be opened Opening of the HEX Editor was aborted File load error Abort Dump Hex A file load error Opening of the HEX Editor was aborted Error line lt line number gt Check sum error Abort Check sum Check An incorrect checksum was detected in line ine number in the program file The program file format may be incorrect Can not read temporary file Reading of the temporary file has failed The file may be corrupted Caution Out of range The specified value is out of the valid range Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 131 138 A3 Information Dialog Boxes for Programming GUI Operation No Message Description 12100 Please setup host connection again After FP5 reset communication with FP5 was attempted but failed Try Programmer Setup host connection in the menu 12200 Please open Setup form menu It will help you down Open Setup in the menu and then download the PR5 or ESF load parameter amp setting files file 12201 Parameter setting files are not matched 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 2 Information on the PR5 or ESF file is missing in the INI file but a valid PR5 or ESF file is stored in the
137. vice JUMPER SP Notes 1 Pin used in internal single power supply flash memory microcontroller 2 Pin used in internal two power supply flash memory microcontroller lt 2 gt 78KOR 78KOS Kx1 uPD78F9334 Figure 8 2 Circuit Example for 78KOR 78KOS Kx1 and u PD78F9334 TOOLO X2 Note 2 FLMDO X1 Not 2 77 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 78K0S Kx1 or the uPD78F9334 Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 VopiVopnz are supplied from the target system for target device programming the FP5 internal voltage regulator is protected so that user Vop Vppz will not affect the SO TxD RESET and SCK signal lines In either case these signal lines output C MOS level signals When a 78KOS Kx1 microcontroller or the uUPD78F9334 is used the SO TxD signal line functions as an open drain output Figure 9 1 SO TxD RESET and SCK Pins FP5_Vpp Pull up control circuit 74LV125 Bes
138. will be used Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 PR8 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 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 Chip Block Start c em o r moo Fees The downloaded PR5 file is for a target device that supports data flash Operation Mode Chip IV V C Block Start Start a End End If Chip is selected The entire flash memory area of the target device is subject to com
139. y flag settines Disable Chip Erase Disable Block Erase Disable Program r F Disable Boot block cluster reprogramming Block protection Boot Block end FS Block start 0 FS Block end 12 e 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 e Disable Boot block cluster reprogramming Flash Memory Programmer FL PR5 User s Manual Provisional SBA1 070002 00 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 Figure 4 59 Disable Chip Erase Warning Dialog Box Warning A 12401 Caution When Chip Erase is disabled chip cannot be erased and programmed any more Cancel Clicking the OK 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 dis

Download Pdf Manuals

image

Related Search

FL PR5 fl product approval search fl prepaid fl presets fl proof of coverage fl provider portal fl property tax fl projects fl producer edition fl prepaid login fl prison inmate search fl premium fl product approval fl prepaid college plan fl premium sistema online

Related Contents

MODE D`EMPLOI Comment utiliser le kit du débutant  Manual Purigel - Ulfer Purificadores de Água  (Under MR Head) - CESU Authentication Screen  F5D5130-euro-espanol-manual  Télécharger  Model 190-ACZ Parts List - Hytrol Conveyor Company, Inc.  PDF AQUÍ - Enerpot  Manual de instalación y mantenimiento Bloque de válvulas  Garantía, política de devolución y RMA Infiniton  sistema de venta y reservación de servicios y productos en  

Copyright © All rights reserved.
Failed to retrieve file