background image

User’s Manual  U15260EJ3V1UM

4

EEPROM is a trademark of NEC Electronics Corporation

PC/AT is a trademark of International Business Machines Corporation.

Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the

United States and/or other countries.

Pentium is a trademark of Intel Corporation.

The information in this document is current as of February, 2003. The information is subject to 
change without notice.  For actual design-in, refer to the latest publications of NEC Electronics data 
sheets or data books, etc., for the most up-to-date specifications of NEC Electronics products.  Not 
all products and/or types are available in every country.  Please check with an NEC Electronics sales 
representative for availability and additional information.

No part of this document may be copied or reproduced in any form or by any means without the prior       
written consent of NEC Electronics.  NEC Electronics assumes no responsibility for any errors that may 
appear in this document.
NEC  Electronics

 

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 NEC Electronics products listed in this document 
or any other liability arising from the use of such products.  No license, express, implied or otherwise, is 
granted under any patents, copyrights or other intellectual property rights of NEC Electronics or others.
Descriptions of circuits, software and other related information in this document are provided for illustrative 
purposes in semiconductor product operation and application examples. The incorporation of these 
circuits,  software and information in the design of a customer's equipment shall be done under the full 
responsibility of the customer. NEC Electronics assumes no responsibility for any losses incurred by 
customers or third parties arising from the use of these circuits, software and information.
While NEC Electronics  endeavors to enhance the quality, reliability and safety of NEC Electronics  products, 
customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely.  To 
minimize risks of damage to property or injury (including death) to persons arising from defects in NEC 
Electronics products, customers must incorporate sufficient safety measures in their design, such as 
redundancy, fire-containment and anti-failure features.
NEC Electronics products are classified into the following three quality grades: "Standard", "Special" and 
"Specific".  
The "Specific" quality grade applies only to NEC Electronics products developed based on a customer-
designated "quality assurance program" for a specific application.  The recommended applications of an NEC 
Electronics product depend on its quality grade, as indicated below.  Customers must check the quality grade of 
each NEC Electronics product before using it in a particular application.
 "Standard": Computers, office equipment, communications equipment, test and measurement equipment, audio

and visual equipment, home electronic appliances, machine tools, personal electronic equipment
and industrial robots.

"Special":

Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster
systems, anti-crime systems, safety equipment and medical equipment (not specifically designed
for life support).

"Specific": Aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life

support systems and medical equipment for life support, etc.

The quality grade of NEC Electronics  products is "Standard" unless otherwise expressly specified in NEC 
Electronics data sheets or data books, etc.  If customers wish to use NEC Electronics products in applications 
not intended by NEC Electronics, they must contact an NEC Electronics sales representative in advance to 
determine NEC Electronics' willingness to support a given application.

(Note)
(1) "NEC  Electronics" as used in this statement means NEC Electronics  Corporation and also includes its 

majority-owned subsidiaries.

(2) "NEC Electronics products" means any product developed or manufactured by or for NEC Electronics

(as defined above).

M8E  02. 11-1

Summary of Contents for PG-FP4

Page 1: ...Document No U15260EJ3V1UM00 3rd edition Date Published March 2003 N CP K Printed in Japan 2001 User s Manual PG FP4 Flash Memory Programmer ...

Page 2: ...User s Manual U15260EJ3V1UM 2 MEMO ...

Page 3: ... to take appropriate countermeasures under their own responsibility EEDT ST 001 11 CAUTION This equipment should be handled like a CMOS semiconductor device The user must take all precautions to avoid build up of static electricity while working with this equipment All test and measurement tool including the workbench must be grounded The user operator must be grounded using the wrist strap The co...

Page 4: ...s endeavors to enhance the quality reliability and safety of NEC Electronics products customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely To minimize risks of damage to property or injury including death to persons arising from defects in NEC Electronics products customers must incorporate sufficient safety measures in their design such as redundan...

Page 5: ...1 6841 1138 Fax 021 6841 1137 NEC Electronics Taiwan Ltd Taipei Taiwan Tel 02 2719 2377 Fax 02 2719 5951 NEC Electronics Singapore Pte Ltd Novena Square Singapore Tel 6253 8311 Fax 6250 3583 J02 11 NEC Electronics Europe GmbH Duesseldorf Germany Tel 0211 65 03 01 Fax 0211 65 03 327 Sucursal en España Madrid Spain Tel 091 504 27 87 Fax 091 504 28 60 Vélizy Villacoublay France Tel 01 30 67 58 00 Fax...

Page 6: ...rea button to Table 4 1 Toolbar Buttons pp 52 to 54 4 4 2 Programmer menu Addition of icon to 3 Select Programming area menu Addition of 5 Update Firmware menu pp 55 to 71 4 4 3 Device menu Change of Figure 4 19 Device menu 2 to 7 Addition and change of description 9 b to c Addition and change of description p 70 Change of Figure 4 32 About Window pp 72 to 81 CHAPTER 5 SAMPLE PROGRAMMING SESSION U...

Page 7: ... VDD VDD2 Addition of 9 7 VPP pp 108 to 115 CHAPTER 10 ERROR MESSAGES 10 2 GUI Software Fatal Error Messages Addition of F129 F410 F411 F412 and F413 10 3 GUI Software Error Messages Addition of E201 E307 E316 E317 E805 E901 E903 E907 and E908 10 4 GUI Software Information Messages Addition of I202 I805 I905 I906 I907 I911 I912 I913 I914 I915 I916 I917 and I918 p 116 Addition of APPENDIX A REVISIO...

Page 8: ... cables Notes on target system Target system interface circuits Error messages How to Read This Manual To understand the overall functions and usage of the PG FP4 read this manual in the order of the CONTENTS Be sure to read CHAPTER 4 PG FP4 OPERATION USING GUI SOFTWARE because this chapter presents important information for using the PG FP4 It is assumed that the readers of this manual have gener...

Page 9: ...e NEC Electronics on chip flash memory microcontroller Target system User designed board on which NEC Electronics on chip flash memory microcontroller is mounted FA adapter Adapter board to write programs to NEC Electronics on chip flash memory microcontrollerNote Note The FA adapter board is a product of Naito Densei Machida Mfg Co Ltd If you have any questions about the FA adapter board contact ...

Page 10: ... INSTALLATION 24 3 1 Graphical User Interface 24 3 1 1 GUI software installation 24 3 1 2 USB driver installation 33 3 1 3 GUI software uninstallation 38 3 2 Firmware and GUI Software Update Installation 39 3 2 1 Firmware update installation 40 CHAPTER 4 PG FP4 OPERATION USING GUI SOFTWARE 41 4 1 Introduction 41 4 2 Starting up the GUI Software 42 4 3 Toolbar 44 4 4 Menus 44 4 4 1 File menu 44 4 4...

Page 11: ... Connector 95 7 6 USB Port 96 CHAPTER 8 NOTES ON TARGET SYSTEMS 97 CHAPTER 9 TARGET SYSTEM INTERFACE CIRCUITS 101 9 1 SO TxD RESET 101 9 2 SCK 102 9 3 SI RxD HS 103 9 4 CLK 103 9 5 FLMD0 FLMD1 104 9 6 VDD VDD2 104 9 7 VPP 105 CHAPTER 10 ERROR MESSAGES 106 10 1 Error Messages of PG FP4 in Standalone Mode 106 10 2 GUI Software Fatal Error Messages 108 10 3 GUI Software Error Messages 111 10 4 GUI So...

Page 12: ...dow 30 3 11 Installation Progress Window 31 3 12 Setup Is Complete Window 31 3 13 Program Folder After Installation 32 3 14 When Connection of PG FP4 to USB Port Is Detected 33 3 15 Welcome to the Found New Hardware Wizard Window 34 3 16 Install New Hardware Wizard Window 34 3 17 Locate Driver Files Window 35 3 18 Window for Specifying Driver Files to Be Copied 1 35 3 19 Locate File Window 36 3 20...

Page 13: ...etup Window Communication Interface to Device 61 4 24 Setup Window Supply Oscillator 63 4 25 Setup Window Operation Mode 64 4 26 Device Setup Window Advanced 65 4 27 Setup Window Supply Voltage 66 4 28 Setup Window Command Options 67 4 29 Setup Window Security Flag Settings 68 4 30 Setup Window Program Download Upload 69 4 31 Help Menu 70 4 32 About Window 70 5 1 Connection Between GUI Software an...

Page 14: ...tor 92 7 7 Pin Configuration of HD Sub 15 Target Interface Connector 92 7 8 Target Cable Outline 93 7 9 Pin Configuration of HD SUB 15 93 7 10 Target Connector Outline View from Solder Side 93 7 11 HD Sub 25 Parallel Host Connector 95 7 12 Pin Configuration of HD Sub 25 Parallel Host Connector 95 7 13 USB Port Connector 96 8 1 UART Interface Circuit Example 100 8 2 SIO Interface Circuit Example 10...

Page 15: ...4 2 Key Functions That Can Be Input in HEX Editor Window 47 7 1 Pin Configuration of HD Sub 9 Serial Host Connector 91 7 2 Pin Configuration of HD Sub 15 Target Interface Connector 92 7 3 Pin Configuration of Target Connector 93 7 4 Pin Configuration of HD Sub 25 Parallel Host Connector 95 ...

Page 16: ... 232C to host systems parallel interface for optional fast program download and a USB interface are available CSI CSI HS UART I 2 C and PORT interfaces are supported for data transfer to the target device Programming voltage VPP can be selected from between 0 and 12 V The PG FP4 can supply 0 to 6 V on the VDD line 200 mA max 1 2 PG FP4 Configuration in Graphical User Interface GUI Mode The configu...

Page 17: ...nvironment is saved to a customized setup file SET file These files are downloaded to the PG FP4 and stored in the internal EEPROM so that the downloaded data can be used even in the standalone mode The GUI software is executed using the parameters that have been set last Changed settings are saved to an INI file Communication between the GUI software and the PG FP4 is recorded in an ASCII file Th...

Page 18: ...M 100 MHz or more RAM 32 MB or more Host interface Serial interface RS 232C capable of handling communication at 9 600 minimum baud up to 115 200 baud A parallel port may be used in addition to the serial interface to enable fast data download to the PG FP4 Alternatively a USB port Rev 1 1 is available File formats Program files can be used in Motorola S file format or Intel HEX file format 2 2 Pa...

Page 19: ...n RS 232C serial interface cable or a USB interface cable By using the serial interface in combination with the optional parallel interface the user program can be quickly downloaded to the PG FP4 The PG FP4 is connected to the user system by the target cable For the detailed specifications of the target cable refer to CHAPTER 7 CONNECTORS AND CABLES 2 3 1 Host computer A PC is used to communicate...

Page 20: ...y A 16 2 character LCD display indicates the operating mode It is mainly used for the PG FP4 s standalone mode Status LED The LED shows the PG FP4 operating status indicated by the colors green for OK red for Error or orange for Operating 1 PG FP4 connectors The serial host connector the target interface connector and the power connector are located on the right side of the PG FP4 Figure 2 3 PG FP...

Page 21: ...D CABLES Caution Do not use any other AC adapter Connect only the provided AC adapter to the power supply jack 2 3 5 RS 232C host connection The RS 232C host interface enables communication to the PG FP4 Windows 95 Windows 98 Windows NT 4 0 Windows Me Windows 2000 or Windows XP may be used to operate the PG FP4 which is connected to the serial port The RS 232C data transfer conditions are 9 600 ba...

Page 22: ...chida Mfg Co Ltd For detailed specifications of the target cable refer to CHAPTER 7 CONNECTORS AND CABLES 2 3 9 I 2 C adapter The SI and SO pins of the PG FP4 must be shorted on the target board when the I 2 C communication mode is used Figure 2 5 Connection Diagram VPP VDD RESET SCL0 SDA0 GND VDD SCK RESET SI SO VPP GND Target board Target device PG FP4 When using an I 2 C adapter the SI and SO p...

Page 23: ...pply flash memory microcontroller 1 Connect the FA adapter and the type B target connector of the target cable 10 pins 2 Connect the type A target connector 16 pins and the I 2 C adapter CN2 of the target cable Usage when writing single power supply flash memory microcontroller 1 Connect the FA adapter and the type A target connector of the target cable 16 pins 2 Connect the type B target connecto...

Page 24: ...P4 package To install the GUI software execute the following steps First insert the CD ROM into your CD ROM drive A setup screen opens as follows Figure 3 1 Initial Status of Setup Screen Install PG FP4 GUI Runs SETUP EXE from the SETUP directory Show the README file Opens Notepad to show the README file Japanese and English are selectable Refer to Figure 3 2 Show the User s Manual Opens Acrobat R...

Page 25: ...P4 GUI is clicked the setup program will be executed During initialization of the setup program a progress bar like that shown in Figure 3 3 appears to indicate the progress Figure 3 3 Setup Preparation The welcome screen appears a short while after initialization Figure 3 4 Welcome Window Click Next to continue the installation ...

Page 26: ...CHAPTER 3 SOFTWARE INSTALLATION User s Manual U15260EJ3V1UM 26 Next a window for selecting a setup type will be opened Figure 3 5 Setup Type Selection Window Select English or Japanese and click Next ...

Page 27: ...User s Manual U15260EJ3V1UM 27 The software License Agreement window appears Figure 3 6 Software License Agreement Window Click Accepted to continue the installation If you click Not accepted the installation procedure will terminate ...

Page 28: ...Figure 3 7 Installation Start Window You can exit the installation by clicking the Cancel button Click the Browse button to change the installation destination path Click the Next button to proceed to the Setup Program Folder selection When the Browse button is clicked the Choose Folder window appears ...

Page 29: ...return to the Installation start window refer to Figure 3 7 When the folder window is closed click the Next button in the installation start window The setup procedure opens the Select Program Folder window By default the program group NEC Tools32 will be created for the PG FP4 program folder You may change the folder name by selecting one of the existing folders or by typing a new folder name in ...

Page 30: ...anual U15260EJ3V1UM 30 Figure 3 9 Select Program Folder Window Select the correct folder and click the Next button to show a summary of the selected folder Figure 3 10 Start Copying Files Window Click the Next button to start the copy process ...

Page 31: ...Figure 3 12 Setup Is Complete Window The program has been installed successfully and an entry has been made in the program menu to start the GUI software Select the view README TXT checkbox to start Notepad to show you the README TXT file Since this file is copied into your PG FP4 directory anyway you may review it anytime Click the Finish button to exit installation The installation process is no...

Page 32: ...TALLATION User s Manual U15260EJ3V1UM 32 Figure 3 13 Program Folder After Installation Opens the README file for the PG FP4 Starts the PG FP4 GUI software Starts the PG FP4 online help Uninstalls the PG FP4 from the computer ...

Page 33: ...rameter file for target device C NECTools32 PG FP4 set empty Storage place for customized setup files Caution The parameter file for the target device must be downloaded separately from the NEC Electronics Website at http www necl com micro ods eng index html 3 1 2 USB driver installation When the PG FP4 is connected via the USB interface for the first time Windows 98 Windows Me Windows 2000 and W...

Page 34: ... clicking the Cancel button Click the Next button to install a USB driver Next the Install New Hardware Wizard window will be opened Figure 3 16 Install New Hardware Wizard Window Select Search for a suitable driver for my device recommended under What do you want the wizard to do and click the Next button The Locate Driver Files window will be displayed ...

Page 35: ...fy a location and click the Next button The window for specifying the USB driver files to be copied will be opened Figure 3 18 Window for Specifying Driver Files to Be Copied 1 Specify the directory where the driver exists and click OK You can specify the directory from the Locate File window after clicking Browse ...

Page 36: ...rs directory created under the PG FP4 install directory and click Open The specified location is shown in the window used to specify the copy source of the USB driver file Figure 3 20 Window for Specifying Driver Files to Be Copied 2 When you click OK the driver file will be searched The driver file search window is displayed ...

Page 37: ...dow Click Next to start installation When the installation is complete the following window will be displayed Figure 3 22 Completing the Found New Hardware Wizard Window Now that the USB driver has been installed the PG FP4 is ready to communicate using the USB port To complete the installation click Finish ...

Page 38: ...s installed during setup will be removed from your hard disk except the parameter files PRM and customized setup files SET 2 Uninstallation using Add Remove Programs Start Add Remove Programs in the Windows Control Panel Select PG FP4 in Change or Remove Programs then click Change Remove to start uninstallation Figure 3 23 Add Remove Programs Window All files installed during setup will be removed...

Page 39: ...ng the new GUI software The GUI software will perform a crosscheck of software versions between the installed GUI software and the firmware in the PG FP4 If the GUI software is not the latest the following a warning message will appear Figure 3 24 Warning About Old GUI Software Version If the firmware is not the latest the following warning message will be displayed Figure 3 25 Warning About Old F...

Page 40: ...he firmware update error message refer to Figure 3 25 From the File open dialog box that appears select the firmware update program file FP4_VUP_xxxx REC Several commands will be sent to the PG FP4 and a progress indicator will inform you of the download progress As soon as the firmware update is complete a message will appear Figure 3 26 Firmware Update Complete Message 2 Firmware update from men...

Page 41: ...tware package It has to be downloaded from the NEC Electronics Website at http www necel com micro ods eng index html The PRM file downloaded from the NEC Electronics Website must be copied into the sub directory PG FP4 install path PRM which was created during GUI software setup see CHAPTER 3 SOFTWARE INSTALLATION If no PRM file has been installed before the GUI software will report a fatal error...

Page 42: ...rtcut if it has been created The PG FP4 starts communicating using the most recently used communication parameters stored in its internal EEPROM The default communication speed is 9 600 bps The GUI software establishes a connection with the PG FP4 using the GUI section parameters in the FP4 INI file HostConnectionSpeed HostConnectionPort and HostDownloadPort When no FP4 INI file exists this is the...

Page 43: ...onsists of the following items Menu bar displayed on top Displays executable menus of the PG FP4 Toolbar displayed below the menu Displays frequently used commands as icons Communication log window displayed below the toolbar Displays all commands transmitted to the PG FP4 and messages returned from the PG FP4 Programmer parameter window displayed on the right side of the communication log window ...

Page 44: ...ogram Verify Autoprocedure EPV button Device Blank check button Note Programmer Select Programming area button Note Enabled only for single power supply flash memory microcontrollers 4 4 Menus Depending on the actual device status or device type some menu items may be enabled or disabled For example the Device Blank check button is enabled only for single power supply flash memory microcontrollers...

Page 45: ...Editor menu allows you to edit a program file in Intel HEX file format or Motorola S Record format A HEX Editor window opens and the file to be edited can be specified in a file open dialog box Figure 4 5 HEX Editor File Open Window HEX Files or SREC Files may be selected from the Files of type list box ...

Page 46: ...e keyboard is accepted for all shown memory locations The HEX Editor accepts data only in hexadecimal format i e figures 0 9 and letters A F Any other data will be rejected The ASCII representation if any is shown at the right side of the main window This area is for reference only Data input is not possible in the ASCII window Use the scroll bar to move another address range into the visible area...

Page 47: ...f any changes have been made to the edited file the HEX Editor File Save and File Save As menu items will be enabled to save the modified data Figure 4 7 HEX Editor Save As Dialog Box Besides the file name and directory location Save As allows selection of a different start address and a different end address for the new file The original start address and end address are offered as the default se...

Page 48: ... calculated and the result is displayed in the programmer parameter window and communication log window Open button Downloads the selected user program to the flash memory of the PG FP4 Checksum data of the downloaded data is saved in the FileDownCrcSum key in the Programmer section in the FP4 INI file This saved checksum data is used for comparison with the PG FP4 memory contents before executing...

Page 49: ...ile Selection Window for Program Upload In the appearing window you can Select a program file for upload Select the upload file format Intel HEX or Motorola S Record format Select the memory start and end addresses to upload The most recently used directory from which a file has been uploaded will be shown in the Upload menu Open button Starts uploading Cancel button Closes the window without uplo...

Page 50: ...elected programming memory area is displayed in the Programming Area for reference Select the Device Area to calculate the checksum of the flash memory area of the target device The target memory area accords with the information of the currently downloaded parameter file Select User Defined to calculate the checksum of any memory area In this case specify the Start Address and Length The checksum...

Page 51: ...upported on your PC If Serial is selected the port and baud rate may be selected from the drop down list boxes Use parallel Download can be selected in addition to the serial port If parallel download is selected data download to the PG FP4 is performed via the selected parallel interface Caution The parallel interface cable is not part of the PG FP4 package Check that the LPTx port is not used be...

Page 52: ...t Programming area menu This menu item allows selection of one out of two different programming areas of the PG FP4 1 MB each This menu is valid when Enable two Program Areas on the Advanced tab of Device Setup menu is checked Figure 4 14 Programming Area Selection The PG FP4 internal memory area is split into two independent memory areas of 1 MB each of which may hold two different application pr...

Page 53: ...is started the following confirmation message is displayed first Figure 4 15 Firmware Update Window To continue the firmware update click Yes When No is clicked the firmware update is canceled When Yes is clicked Select a File to download will be displayed Figure 4 16 Select a File to Download Window Select the firmware update program file FP4_VUP_xxx REC and then click Open Some commands will be ...

Page 54: ...RATION USING GUI SOFTWARE User s Manual U15260EJ3V1UM 54 Figure 4 17 Progress Status Display Window When the firmware update is complete the following message will be displayed Figure 4 18 Firmware Update Complete Message ...

Page 55: ...lash memory microcontrollers 2 Erase menu The Erase command initiates the erase procedure for the target device connected to the PG FP4 While erasing the contents in the flash memory is in progress the progress is displayed in the communication log window indicating the operation of the programmer When a two power supply flash memory microcontroller is used check the target device with the Blank C...

Page 56: ...nts against the data written to the flash memory of the target device This command does not check the write level Use it to check if data communication between the PG FP4 and target device has been correctly performed While the Verify command is being executed the progress is displayed in the communication log window indicating the operation of the programmer This progress indicates the progress o...

Page 57: ...mory information 9 Setup menu The Setup menu is used to perform flash memory writing settings in accordance with the user environment and command option settings Each time the GUI software is started the parameter file PRM and customized setup file SET that were used last are read and their setting contents are displayed On the Setup menu settings can be changed in accordance with the user environ...

Page 58: ...ly button This button is valid if settings have changed on the Standard or Advanced menu Clicking the Apply button saves the contents of new setting to the customized setup file SET Note that this button only saves the settings to the file it does not download them to the PG FP4 Cancel button When the Cancel button is clicked the contents set on the Standard and Advanced menus are not downloaded t...

Page 59: ...ys the customized setup file saved to PG FP4 install path SET When using a saved customized setup file select it here button Click this button to specify a customized setup file saved to other than PG FP4 install path SET Clicking this opens a window for specifying a customized setup file Specify the file and then click the Open button Save as button Displays a window in which to overwrite the cur...

Page 60: ... customized setup file appears Figure 4 22 Create New Customized Setup File Window Parameter files saved to PG FP4 install path PRM are shown in the parameter file list box Select a parameter file for the target device After selecting the parameter file enter the name of the customized setup file that is newly created and then click the Save button ...

Page 61: ...and select a mode With some devices the number starts from ch1 In this case ch0 of the parameter on the screen equals ch1 of the device and the displayed channel number must be shifted accordingly Note When using a single power supply flash memory microcontroller Item on Screen Description SIO ch0 SIO 3 wire clocked communication port channel 0 SIO ch1 SIO 3 wire clocked communication port channel...

Page 62: ...baud 20 k baud 50 k baud 100 k baud When UART ch0 UART ch1 UART ch2 or UART ch3 is selected 9 600 baud 19 200 baud 31 250 baud 38 400 baud 76 800 baud 153 600 baud When Port ch0 Port ch1 or Port ch2 is selected 100 Hz 200 Hz 300 Hz 400 Hz 500 Hz 600 Hz 800 Hz 1 000 Hz 1 200 Hz 1 500 Hz IIC Address If I 2 C is selected as the programming channel input a slave address as a hexadecimal number The val...

Page 63: ...the clock of the PG FP4 when the On Target check box is not checked select a frequency from the following 1 MHz 2 MHz 4 MHz 5 MHz 6 MHz 8 MHz 10 MHz 12 MHz 16 MHz 20 MHz Note that the frequency range in which a device can operate differs depending on the device Check the specifications of the device before setting the frequency Multiply rate Specifies the division rate or multiplication rate of th...

Page 64: ... range subject to rewrite processing by using Start End The Start End list boxes display the Block number where the flash memory of the target device is configured Block cannot be selected with a two power supply flash memory microcontroller When Area is selected Specify the Area number range subject to rewrite processing by using Start End The Start End list boxes display the Area number where th...

Page 65: ...ly voltage section allows you to specify the voltage levels for target device programming Depending on the target device type one VDD or two VDD and VDD2 voltage levels need to be specified In general VDD VDD2 voltages that are supplied when the target device is programmed should be supplied by the target system Although they can be supplied by the PG FP4 the current flow is not large enough to op...

Page 66: ... types of Vdd for writing the flash memory Vdd2 specifies a low level signal voltage This voltage level can also be changed by input On Target check box Check On Target if the VDD VDD2 voltages are supplied from the target system Caution Set the values of the VDD VDD2 voltages supplied by the target system as Vdd V and Vdd2 V before checking On Target The target system may be damaged if proper val...

Page 67: ...itted from the programmer after execution of the Program and EPV commands and verified against the data written to the flash memory Security flag after Program check box If this check box is checked automatic programming of the selected security flag is executed after execution of the Program and EPV commands This option can be specified only when a single power supply flash memory microcontroller...

Page 68: ...es invalid in all the blocks of the flash memory selected under Operation Mode in the Standard Setup menu This setting is cleared by the Erase command when Chip was selected under Operation Mode Disable Program check box If this check box is checked the Program command becomes invalid as does the Erase command in all the blocks of the flash memory selected under Operation Mode in the Standard Setu...

Page 69: ...ms can be downloaded to Area 0 and Area 1 and it can be selected which of the programs is to be written to the target device Figure 4 30 Setup Window Program Download Upload Enable two Program Areas check box If this check box is not checked one 2 MB memory area is used as the user program area If it is checked one of two independent 1 MB memory areas Area 0 and Area 1 are used as the user program...

Page 70: ...4 31 Help Menu 1 Contents menu The Contents menu starts the Windows Help engine and opens the contents dialog box of the PG FP4 help file 2 About menu The About menu opens the following program entry window The version displayed below the PG FP4 indicates the version of the GUI software By clicking this window the display can be exited Figure 4 32 About Window ...

Page 71: ...upply voltage Supplied by PG FP4 Command options Read verify after Program check Verification is executed after program command Program download upload No check with user program 1 code only 1 Installing GUI software Install the PG FP4 GUI software in the PC you are using by referring to CHAPTER 3 SOFTWARE INSTALLATION if the software has not been installed yet 2 Installing parameter file Copy the...

Page 72: ...e FA adapter Note with the target cable 3 Start the GUI software The GUI software tries to establish a connection with the PG FP4 at 9 600 bps using COM1 If it is not successful it scans other communication rates and ports In this example it is assumed that the PG FP4 is connected to COM1 Figure 5 1 Connection Between GUI Software and PG FP4 4 You may click the ABORT button and select the communic...

Page 73: ... SOFTWARE User s Manual U15260EJ3V1UM 73 Figure 5 3 Setup Communication Parameters 6 Select OK to activate the new port settings If the GUI software has been correctly started the following screen is displayed Figure 5 4 GUI Software Initial Screen ...

Page 74: ...ser s Manual U15260EJ3V1UM 74 5 Programming environment setting 1 Select the menu item Device Setup from the menu bar Figure 5 5 Device Setup Menu Toolbar 2 The dialog box for standard device setup will be activated Figure 5 6 Standard Device Setup Dialog Box ...

Page 75: ...te a new customized setup file for the µPD70F3025A Figure 5 7 Creating New Customized Setup File 4 Select 70F3025A PRM from the Parameter file pull down list Figure 5 8 Selecting Parameter File 5 Enter the name of the newly created customized setup file and click the Save button Figure 5 9 Saving Customized Setup File ...

Page 76: ...device selected Specify a flash memory range to be manipulated as Operation Mode the flash memory range that can be set is defined by the parameter file in accordance with the specifications of the device In this example it is assumed that the following settings are made Communication interface to device Port SIO H S Speed 625 kHz Supply oscillator On Target Not checked The clock of the PG FP4 is ...

Page 77: ...t VDD in Vdd V and Vdd2 V and check the On Target check box It is assumed that the following settings are made in this example Supply voltage Vdd V 5 00 V in accordance with the set value of the parameter file Vdd2 V 0 00 V not used in accordance with the set value of the parameter file On Target Not checked Vdd is supplied from the PG FP4 to the target Command options Blank check before Erase Che...

Page 78: ...G GUI SOFTWARE User s Manual U15260EJ3V1UM 78 8 Click the OK button The GUI software will load the parameter settings to the PG FP4 When the settings have been completed the next screen is displayed Figure 5 11 Completion of Parameter Settings ...

Page 79: ...igure 5 12 Opening Program File to Be Downloaded Toolbar 1 Select the name of the file to be downloaded and click Open to start the downloading sequence While the program is being downloaded a window indicating the progress is displayed When downloading is complete the following screen is displayed Figure 5 13 Completion of Downloading ...

Page 80: ...e to be newly written in the FA adapter and execute step 7 In this example since Read verify after Program is checked whether the data communication between the PG FP4 and target device has been correctly performed after executing the EPV command is checked Note When the Program command is executed whether the write level is secured is verified after the user program has been written Note however ...

Page 81: ...from PG FP4 Caution If the E501 Operation failed error occurs check the following points Check the wiring of the pins used for writing the target device on the target board and the processing of the other pins by referring to the user s manual of the target device Check if the following set values match the actual writing environment by selecting the Device Setup menu Clock supply source VDD suppl...

Page 82: ...he main unit of the PG FP4 The command menu is displayed on the message display and the result of executing a command is indicated by the message display and status LED The command menu consists of two levels of menus a main menu and sub menu The Next button is used to display the next menu of the same level The Enter button selects or executes the menu item currently displayed The Cancel button a...

Page 83: ...isplay Red The selected command has been terminated by an error The details of the error will be displayed on the message display 6 1 PG FP4 Operation Menu In the standalone mode the writing environment of the target device can be checked and rewritten by using the commands explained in this section 6 1 1 Commands menu The Commands menu offers various commands necessary for rewriting the target de...

Page 84: ...te 3 Next button Signature When the Enter button is pressed next the signature of the target device connected to the PG FP4 is read The device name is displayed on the message display Display example Signature D70F3025A Next button Prog Area When the Enter button is pressed next the valid memory area Area 0 or Area 1 is changed if the 2 MB user program area is used as two independent 1 MB memory a...

Page 85: ...tton Serial CLK Serial CLK displays the serial clock rate in Hz that is used to interface the target device and PG FP4 Next button CLK source CLK source indicates either of the following as a source to supply the operation clock to the target device Programmer Clock is supplied from the PG FP4 Target Clock is supplied on the user system Next button PG CPU CLK PG CPU CLK indicates the frequency of ...

Page 86: ...on After execution of the Program and EPV commands the write data is transmitted from the programmer and verified against the data written to the flash memory off After execution of the Program and EPV commands the data transmitted from the programmer is not verified against the data written to the flash memory Next button SCF after PRG Displays the set status of the command option Security flag a...

Page 87: ...ngs as either of the following Note on The Erase command is invalidated for a selected block in the flash memory of the target device off The Erase command is executable Next button Block PRG dis Displays the set status of Disable Program Block of Security settings as either of the following Note on The Program command is invalidated for a selected block in the flash memory of the target device of...

Page 88: ...connected to the PG FP4 in volts Next button Vdd Source Vdd Source indicates the source of VDD supplied by the target device as either of the following VDD from PG VDD is supplied from the PG FP4 VDD from device VDD is supplied on the user system Next button Clk Level Clk Level indicates the voltage level of the clock signal as either of the following VDD VDD2 Next button Ser Level Ser Level indic...

Page 89: ...ys the file name of the parameter file stored in the PG FP4 Display example PRM Name 70F3025A Next button PRM File Version PRM File Version displays the version of the parameter file stored in the PG FP4 Next button HEX File Name HEX File Name displays the name of the downloaded file stored in the specified valid memory area in the user program area of the PG FP4 It displays n a if the downloaded ...

Page 90: ...e right side of the PG FP4 Figure 7 1 Power Supply Connector Figure 7 2 Pin Configuration of Power Supply Connector _ The specifications of the power supply are AC input range 100 V to 240 V 47 Hz to 63 Hz DC output 15 V Current consumption 0 8 A max Caution Connect only the provided AC adapter to the power supply jack of the PG FP4 ...

Page 91: ...onfiguration of HD Sub 9 Serial Host Connector 1 5 9 6 Table 7 1 Pin Configuration of HD Sub 9 Serial Host Connector Serial Host Signal Name of PG FP4 1 NC 2 RxD 3 TxD 4 NC 5 VSS 6 NC 7 RTS 8 CTS 9 NC 7 2 1 RS 232C cable crossed The host cable is a standard shielded RS 232C cable of 2 meter or 3 meter length The connectors on both sides are D SUB 9 pin female Figure 7 3 shows the connection Figure...

Page 92: ... Target Interface Connector Figure 7 7 Pin Configuration of HD Sub 15 Target Interface Connector 1 5 10 11 6 15 Table 7 2 Pin Configuration of HD Sub 15 Target Interface Connector PF FP4 HD Sub 15 Signal Name of PG FP4 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 FLMD0 13 VDE 14 CLK 15 GND HD Sub 15 connector part number HT1566G3 PROVERTHA Steckverbinder GmbH...

Page 93: ...1 13 15 1 3 5 7 9 2 4 6 8 10 12 14 16 2 4 6 8 10 Type A Type B Table 7 3 Pin Configuration of Target Connector Pin Number HD SUB 15 Type A Signal 16 Pins Type B Signal 10 Pins 1 SO TxD GND GND 2 SI RxD RESET RESET 3 SCK SI RxD SI RxD 4 RESET VDD VDD 5 VDD2 SO TxD SO TxD 6 FLMD1 VPP VPP 7 H S SCK SCK 8 VDD H S H S 9 VDD CLK CLK 10 Not used VDE VDE 11 VPP VDD2 12 FLMD0 FLMD1 13 VDE RFU 1 14 CLK FLMD...

Page 94: ...cause the supplied cable cannot be used due to the specifications of the target the cable length should be the same or shorter than the supplied cable Also the frequency characteristics of the cable material should be the same or higher than those of the supplied cable Note that communication may be performed at high speed according to the communication settings Therefore when a cable other than t...

Page 95: ...rallel Host Connector Figure 7 12 Pin Configuration of HD Sub 25 Parallel Host Connector 1 13 14 25 Table 7 4 Pin Configuration of HD Sub 25 Parallel Host Connector Pin Number Signal Centronics Mode 1 IO3 0 Strobe In 2 IO1 0 D0 IO 3 IO1 1 D1 IO 4 IO1 2 D2 IO 5 IO1 3 D3 IO 6 IO2 0 D4 IO 7 IO2 1 D5 IO 8 IO2 2 D6 IO 9 IO2 3 D7 IO 10 IO3 2 Ack Out 11 IO3 1 Busy Out 12 VSS 13 Pull up 14 Pull up 15 Pull...

Page 96: ...HAPTER 7 CONNECTORS AND CABLES User s Manual U15260EJ3V1UM 96 7 6 USB Port The USB port connection Rev 1 1 allows data transmission up to 12 Mbps on a USB type B connector Figure 7 13 USB Port Connector ...

Page 97: ...ignal of the PG FP4 Do not generate RESET while the PG FP4 is connected This must be especially noted in a system that uses an external watchdog timer RESET Connect the RESET signal of the PG FP4 at a point where the status of the programmer RESET signal and that of the CPU RESET pin are the same Correct connection CPU PG FP4 RESET RESET Avoid the following RESET signal connection Connection to a ...

Page 98: ... A does not fall Serial interface pin When the CPU port used by the PG FP4 is also connected to the input of an external device and if that device malfunctions disconnect the external device or make it output high impedance Example Adverse effect PG FP4 connector Input External device CPU SO TxD While the CPU port used by the PG FP4 is also connected to the output of an external device and if a si...

Page 99: ...s otherwise stated Note that when pull down resistors are needed due to the specifications of the target the resistor value must be 470 Ω or higher Incorrect circuit CPU CPU VPP PG FP4 VPP PG FP4 VPP VPP Others For the unused pins refer to the user s manual of the device Some devices have pins that must be processed differently For these pins also refer to the user s manual of the device Example o...

Page 100: ...ng to CHAPTER 9 TARGET SYSTEM INTERFACE CIRCUITS Caution Insert neither capacitors nor resistors into the VPP line unless otherwise stated When pull down resistors are inserted into the VPP line the resistor value must be 470 Ω Ω Ω Ω or higher Figure 8 2 SIO Interface Circuit Example VCC VCC JUMPER User reset circuit VCC VCC R R R CON FAP 1008 2 Microcontroller IC Y C C 2 4 6 8 10 RESET VDD VPP HS...

Page 101: ...ces VDD and VDD2 may be supplied by the PG FP4 When VDD and VDD2 are supplied by the target system the PG FP4 internal voltage regulator is protected so that user VDD and VDD2 will not affect the signal lines SO TxD and RESET In either case the signal lines SO TxD and RESET will have TTL level voltage Figure 9 1 SO TxD and RESET Pins Target system VDD2 generator VDD generator Signal PG FP4 1 kΩ 74...

Page 102: ...PG FP4 When VDD and VDD2 are supplied by the target system the PG FP4 internal voltage regulator is protected so that user VDD and VDD2 will not affect the signal line SCK In either case the signal line SCK will have TTL level voltage Figure 9 2 SCK Pin Target system VDD2 generator VDD generator Signal PG FP4 1 kΩ 74LV125 33 Ω 74LV125 74LV125 VDD2 VDD 33 Ω ...

Page 103: ...V1UM 103 9 3 SI RxD HS The SI RxD input signal must not exceed TTL level voltage Figure 9 3 SI RxD and HS Pins PG FP4 74LV125 74LV125 VDD2 VDD Signal 33 Ω 100 kΩ Target System 9 4 CLK Figure 9 4 CLK Pin 74LV125 74LV125 VDD2 VDD Signal 150 Ω PG FP4 Target system 150 Ω ...

Page 104: ...4LV125 74LV125 VDD2 VDD Signal 33 Ω PG FP4 Target system 9 6 VDD VDD2 When VDD and VDD2 are supplied from the target system the PG FP4 internal voltage regulator is protected Figure 9 6 VDD and VDD2 Pins Target system VDD or VDD2 PG FP4 1 kΩ 0 1 F 2 kΩ 1 kΩ 0 01 F VDD VDD2 generator Polyswitch 350 mA Transistor A D input µ µ ...

Page 105: ...R 9 TARGET SYSTEM INTERFACE CIRCUITS User s Manual U15260EJ3V1UM 105 9 7 VPP Figure 9 7 VPP Pin Target system VPP PG FP4 1 5 kΩ 0 1 F 4 kΩ 1 kΩ 0 01 F VPP generator Polyswitch 350 mA Transistor A D input µ µ ...

Page 106: ...2 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 030 Prewrite Timeout Prewrite timeout Communication problem between the PG FP4 ...

Page 107: ...d the 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 PG FP4 090 IVrf Timeout Internal verify timeout Communication problem between the PG FP4 and the target device Try the operation again 091 IVerify failed Internal verify error An error has occurred while the write data level is checked Erase and write t...

Page 108: ...F 112 Initialisation of internal GUI status failed F 113 Preparing communication to programmer failed F 114 Could not initialize dialog boxes F 115 Could not initialize window for monitoring communication to the programmer F 116 Determining program path failed F 117 Could not initialize device setup dialog F 118 Could not initialize debug information F 119 Resizing the Status Bar failed F 120 Resi...

Page 109: ...d failed F 411 Connection between host and programmer is broken F 412 Communication error F 413 Connection between host and programmer is broken F 500 Reading current cursor handle failed F 501 Unknown result of operation F 502 Placing command execution time information in status bar failed F 503 Unknown command status update F 504 Unknown command transmit ended with OK F 505 Unknown command trans...

Page 110: ...r abort DATA Check F 805 error line line number Data Count error abort Data Count Check F 806 error line line number Check sum error abort Check sum Check F 807 cannot open Temporary File abort Save File F 808 HEX format error F 809 Too large address F 810 Parameter of Start Address is invalid F 811 Parameter of End Address is invalid F 812 File load error abort F 813 Temporary file could not be c...

Page 111: ...nstall new firmware in your programmer E 207 Wrong firmware in programmer The GUI may not work properly Refer to 3 2 1 Firmware update installation for a description of these messages E 208 The programmer memory does not contain the most recent downloaded file different CRC Please download your user application s again Before issuing an EPV command the GUI software verifies proper application file...

Page 112: ...nnect Programmer failed E 304 Trying to open serial port failed E 305 Changing the communication speed of the programmer failed E 306 Trying to connect Programmer failed E 307 Trying to open USB failed E 316 Trying to connect Programmer failed The processing after setting the Programmer Communication Setup dialog box might fail due to one of these reasons Please verify proper selection of the port...

Page 113: ...Editor E 809 file name could not be opened abort The Windows file open function failed in the HEX Editor E 900 Unable to open last active PRM SET file Using most recent settings The FP4 INI file does not exist or contains invalid entries for RecentPrmFile or RecentSet File The first PRM file from sub directory PRM will be loaded instead E 901 Searching for fp4com dll failed Cannot find Communicati...

Page 114: ...vice Write Security and Device Checksum can only be used for UC2 devices I 502 Note To abort a write erase or verify operation it is necessary to reset the programmer manually Aborting device related commands requires an additional Programmer reset I 801 End record not found created The HEX Editor implicitly created an end record when loading a file I 800 Buffer is modified Are you sure to close I...

Page 115: ...s out of range I 916 The selection is out of range The value of Vdd2 V on the Advanced tab of the Device Setup menu is out of range I 917 The selection is out of range The end address of Range hex on the File Upload menu is smaller than the start address of that I 918 Input data is out of range The value of Multiply rate on the Standard tab of the Device Setup menu is out of range ...

Page 116: ...Software Main Window Addition of Programmer Select Programming area button to Table 4 1 Toolbar Buttons 4 4 2 3 Addition of an icon to Select Programming area menu 5 Addition of Update Firmware menu Change of Figure 4 19 Device menu 4 4 3 2 to 7 and 9 b to c Addition and change of description Change of Figure 4 32 About Window CHAPTER 4 PG FP4 OPERATION USING GUI SOFTWARE CHAPTER 5 4 to 8 Addition...

Page 117: ... Pin Addition of 9 6 VDD VDD2 Addition of 9 7 VPP CHAPTER 9 TARGET SYSTEM INTERFACE CIRCUITS 10 2 GUI Software Fatal Error Messages Addition of F129 F410 F411 F412 and F413 10 3 GUI Software Error Messages Addition of E201 E307 E316 E317 E805 E901 E903 E907 and E908 Second 10 4 GUI Software Information Messages Addition of I202 I805 I905 I906 I907 I911 I912 I913 I914 I915 I916 I917 and I918 CHAPTE...

Reviews: