NEC PG-FP4 User Manual

Flash memory programmer
Table of Contents

Advertisement

Quick Links

User's Manual
PG-FP4
Flash Memory Programmer
Document No. U15260EJ3V1UM00 (3rd edition)
Date Published March 2003 N CP(K)
Printed in Japan
2001

Advertisement

Table of Contents
loading

Summary of Contents for NEC PG-FP4

  • Page 1 User’s Manual PG-FP4 Flash Memory Programmer Document No. U15260EJ3V1UM00 (3rd edition) Date Published March 2003 N CP(K) 2001 Printed in Japan...
  • Page 2 [MEMO] User’s Manual U15260EJ3V1UM...
  • Page 3 PG-FP4 complies with the EMC protection requirements WARNING This is a ‘Class A’ (EN 55022: 1998) equipment. This equipment can cause radio frequency noise when used in the residential area. In such cases, the user/operator of the equipment may be required to take appropriate countermeasures under their own responsibility.
  • Page 4 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.
  • Page 5 Regional Information Some information contained in this document may vary from country to country. Before using any NEC Electronics product in your application, pIease contact the NEC Electronics office in your country to obtain a list of authorized representatives and distributors. They will verify: •...
  • Page 6 • • • • (4) to (8) Addition and change of description pp.83, 84, 89 CHAPTER 6 PG-FP4 OPERATION IN STANDALONE MODE • • • • Change of status LED color from yellow to orange • • • • 6.1.1 [Commands] menu Addition to Note and addition of Note 3 •...
  • Page 7 MAJOR REVISIONS IN THIS EDITION (2/2) Page Contents pp.101 to 105 CHAPTER 9 TARGET SYSTEM INTERFACE CIRCUITS • • • • Change of 9.1 SO/TxD and RESET • • • • Addition of 9.2 SCK • • • • Change of Figure 9-3 SI/RxD and HS Pins •...
  • Page 8 This manual is intended to give users an understanding of the basic specifications and correct use of the PG-FP4. By using the PG-FP4, programs can be easily erased from or written to the flash memory of an NEC Electronics on-chip flash memory microcontroller, or can be...
  • Page 9 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 Note memory microcontroller Note The FA adapter board is a product of Naito Densei Machida Mfg. Co., Ltd.
  • Page 10: Table Of Contents

    CONTENTS CHAPTER 1 OVERVIEW ..........................16 Features .............................16 PG-FP4 Configuration in Graphical User Interface (GUI) Mode ...........16 CHAPTER 2 HARDWARE INSTALLATION....................18 System Requirements.......................18 Package Contents ........................18 System Configuration and Components ................19 2.3.1 Host computer ..........................19 2.3.2 PG-FP4 control panel and connectors ...................20 2.3.3 Target system..........................21...
  • Page 11 FLMD0, FLMD1 ........................104 ..........................104 ............................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 Software Information Messages ..................114 APPENDIX A REVISION HISTORY ......................116...
  • Page 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.........................
  • Page 13 Setup Window – Program Download/Upload ....................69 4-31 [Help] Menu..............................70 4-32 About Window ..............................70 Connection Between GUI Software and PG-FP4..................72 [Setup host connection…] Menu ........................72 Setup Communication Parameters ......................73 GUI Software Initial Screen..........................73 [Device] → [Setup…] Menu..........................74 <Standard Device Setup> Dialog Box......................74 Creating New Customized Setup File ......................75...
  • Page 14 LIST OF FIGURES (3/3) Figure No. Title Page Menu Status Transition by Key Input ......................82 Power Supply Connector..........................90 Pin Configuration of Power Supply Connector .................... 90 HD-Sub 9 Serial Host Connector ........................ 91 Pin Configuration of HD-Sub 9 Serial Host Connector ................91 Host Cable Connections..........................
  • Page 15 LIST OF TABLES Table No. Title Page Toolbar Buttons............................44 Key Functions That Can Be Input in HEX Editor Window................47 Pin Configuration of HD-Sub 9 Serial Host Connector.................91 Pin Configuration of HD-Sub 15 Target Interface Connector...............92 Pin Configuration of Target Connector......................93 Pin Configuration of HD-Sub 25 Parallel Host Connector................95 User’s Manual U15260EJ3V1UM...
  • Page 16: Chapter 1 Overview

    • The PG-FP4 allows on-board programming without removing the target device from the target system. • The user program is stored in the internal 2 MB flash memory of the PG-FP4 and parameters for programming are stored in 8 KB EEPROM , so that the target device can be rewritten in the standalone mode, without having to connect the PG-FP4 to a host.
  • Page 17 Communication between the GUI software and the PG-FP4 is recorded in an ASCII file. The internal memory of the PG-FP4 is configured as a 2 MB flash memory and holds the user program that is written to the target device. This memory’s area (progarea) can be divided into two 1 MB memory areas. Therefore, the PG-FP4 can download two different user programs and select either of them as the valid user program.
  • Page 18: Chapter 2 Hardware Installation

    Package Contents Please verify that you have received all the parts listed in the package contents list included with the PG-FP4 package. If any part is missing or seems to be damaged, please contact an NEC Electronics sales representative or distributor.
  • Page 19: System Configuration And Components

    2. The FA adapter board is a product of Naito Densei Machida Mfg. Co., Ltd. The PG-FP4 is connected to the host system via an 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.
  • Page 20: Pg-Fp4 Control Panel And Connectors

    Message display 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.
  • Page 21: Target System

    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 baud, 8 data bits, 1 stop bit, no parity and selectable hardware handshake.
  • Page 22: Usb Port

    For detailed specifications of the target cable, refer to CHAPTER 7 CONNECTORS AND CABLES. 2.3.9 C adapter The SI and SO pins of the PG-FP4 must be shorted on the target board when the I C communication mode is used.
  • Page 23: Adapter

    CHAPTER 2 HARDWARE INSTALLATION Figure 2-7. Connection Diagram When Using I C Adapter Target board Target device C adapter PG-FP4 RESET RESET SCL0 SDA0 <Usage when writing two-power-supply flash memory microcontroller> <1> Connect the FA adapter and the type B target connector of the target cable (10 pins).
  • Page 24: Chapter 3 Software Installation

    CHAPTER 3 SOFTWARE INSTALLATION Graphical User Interface The graphical user interface (GUI) software allows easy and comfortable access to all features of the PG-FP4 flash programmer. 3.1.1 GUI software installation The installation program is located on the CD-ROM delivered with the PG-FP4 package.
  • Page 25: Japanese/English Selection> Dialog Box

    CHAPTER 3 SOFTWARE INSTALLATION Figure 3-2. <Japanese/English Selection> Dialog Box When Install PG-FP4 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.
  • Page 26: Setup Type Selection Window

    CHAPTER 3 SOFTWARE INSTALLATION 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 > . User’s Manual U15260EJ3V1UM...
  • Page 27: Software License Agreement Window

    CHAPTER 3 SOFTWARE INSTALLATION 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. User’s Manual U15260EJ3V1UM...
  • Page 28: Installation Start Window

    CHAPTER 3 SOFTWARE INSTALLATION The installation start window appears. 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…...
  • Page 29: Choose Folder 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 the edit field.
  • Page 30: Select Program Folder Window

    CHAPTER 3 SOFTWARE INSTALLATION 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. User’s Manual U15260EJ3V1UM...
  • Page 31: Installation Progress Window

    The installation process is now complete and the setup utility has installed a new program folder which holds the GUI software and a “PG-FP4 unInst” icon which allows you to delete the GUI software and this software if they are not used anymore.
  • Page 32: Program Folder After Installation

    CHAPTER 3 SOFTWARE INSTALLATION 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 User’s Manual U15260EJ3V1UM...
  • Page 33: Usb Driver Installation

    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 Windows XP automatically detect the PG-FP4. Then the wizard for searching the new hardware will start.
  • Page 34: Welcome To The Found New Hardware Wizard Window

    CHAPTER 3 SOFTWARE INSTALLATION Figure 3-15. Welcome to the Found New Hardware Wizard Window You can exit the installation by 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.
  • Page 35: Locate Driver Files Window

    CHAPTER 3 SOFTWARE INSTALLATION Figure 3-17. Locate Driver Files Window Check “Specify 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 .
  • Page 36: Locate File Window

    Figure 3-19. Locate File Window Select usbiowiz.inf in the drivers 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.
  • Page 37: Driver Files Search Results Window

    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: Gui Software Uninstallation

    GUI software uninstallation (1) Uninstallation using “PG-FP4 unInst” icon After all components of the GUI software have been installed, clicking the “PG-FP4 unInst” icon will start the uninstallation procedure. All files installed during setup will be removed from your hard disk except the parameter files (.PRM) and customized setup files (.SET).
  • Page 39: Firmware And Gui Software Update Installation

    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.
  • Page 40: Firmware Update Installation

    The firmware update procedure starts when you click the Yes button in the 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.
  • Page 41: Chapter 4 Pg-Fp4 Operation Using Gui Software

    CHAPTER 4 PG-FP4 OPERATION USING GUI SOFTWARE Introduction Before you start using the PG-FP4, download the parameter file for the target device (.PRM) to the PRM folder. <Downloading the parameter file> The PRM file is not part of the PG-FP4 software package.
  • Page 42: Starting Up The Gui Software

    After installing the parameter file, connect the supplied RS-232C cable or USB cable to the computer in which the PG-FP4 is used. After connecting the cable, switch the PG-FP4 on. When it is started up correctly, the message display shows the ‘Commands >’ prompt, and the status LED is switched off.
  • Page 43: Gui Software Main Window

    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): Displays programming parameter settings User’s Manual U15260EJ3V1UM...
  • Page 44: Toolbar

    CHAPTER 4 PG-FP4 OPERATION USING GUI SOFTWARE Toolbar The toolbar contains buttons to start the most important procedures of the PG-FP4. Table 4-1. Toolbar Buttons [Device] – [Setup…] button [Device] – [Erase] button [File] – [Download…] button [Device] – [Program] button [File] –...
  • Page 45: Hex Editor File Open Window

    CHAPTER 4 PG-FP4 OPERATION USING GUI SOFTWARE (1) [Hex Editor…] menu The [Hex 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”...
  • Page 46 CHAPTER 4 PG-FP4 OPERATION USING GUI SOFTWARE After selecting a file to open, the HEX Editor main window loads the file and displays its contents as follows. Figure 4-6. HEX Editor Main Window The displayed file can be modified by placing the mouse cursor inside the HEX Editor main window. Data input via the keyboard is accepted for all shown memory locations.
  • Page 47 CHAPTER 4 PG-FP4 OPERATION USING GUI SOFTWARE Table 4-2. Key Functions That Can Be Input in HEX Editor Window Function 0 - 9, A - F Data input Move cursor in right direction Move cursor in left direction Move cursor in up direction...
  • Page 48 The most recently used directory from which a file has been downloaded will be offered in this window as the default selection. After downloading the user program, the checksum in the flash memory area of the PG-FP4 valid in Progarea is calculated and the result is displayed in the programmer parameter window and communication log window.
  • Page 49 CHAPTER 4 PG-FP4 OPERATION USING GUI SOFTWARE (3) [Upload] menu The [Upload] menu allows you to specify and upload a program file from the PG-FP4 flash memory to the host machine. Figure 4-9. File Selection Window for Program Upload In the appearing window you can: •...
  • Page 50 The checksum is displayed in the communication log window. (5) [Quit] menu Terminates the PG-FP4 GUI software. Clicking the X button on the right side of the task bar also terminates the PG-FP4 GUI software. User settings are saved in the FP4.INI file so that the GUI software will start up next time with the same settings.
  • Page 51: Programmer] Menu

    Figure 4-11. [Programmer] Menu (1) [Setup Host Connection…] menu The channel for communicating between the PG-FP4 and PC can be selected and set in this dialog box. Figure 4-12. <Host Connection> Dialog Box You may select USB as the communication channel, if USB is supported on your PC.
  • Page 52 [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 programs for flash programming. When opening this dialog box, the current programming area selection will be displayed.
  • Page 53 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 transferred to the PG-FP4 and the update progress status will be displayed in the progress status display window.
  • Page 54 CHAPTER 4 PG-FP4 OPERATION USING GUI SOFTWARE 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 User’s Manual U15260EJ3V1UM...
  • Page 55: Device] Menu

    Figure 4-19. [Device] Menu (1) [Blank Check] menu The Blank Check command initiates a blank check of the target device connected to the PG-FP4. If the flash memory of the target device is erased, the blank check terminates successfully. If the flash memory is not completely erased, an error message is displayed.
  • Page 56 After execution of the Program command, Verify, which detects a communication error of the user program while it is being transmitted from the PG-FP4 to the target device, is executed in accordance with the setting of ‘Command options’ on the Advanced tab of the [Device] > [Setup…] menu.
  • Page 57 PG-FP4 to the target device. To transmit the memory contents of the PG-FP4 to the target device to compare them with the data written to the flash memory of the target device because a communication error of the user program was detected, specify automatic execution of the Verify command after execution of the Program command, by using the Command options on the Advanced tab of the [Device] >...
  • Page 58 [ Cancel button] When the Cancel button is clicked, the contents set on the Standard and Advanced menus are not downloaded to the PG-FP4, nor are they saved to the customized setup file; the current dialog box is just closed.
  • Page 59 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.
  • Page 60 A window to create a new 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.
  • Page 61 CHAPTER 4 PG-FP4 OPERATION USING GUI SOFTWARE <2> Communication interface to device “Communication interface to device” selects the channel for communication between the PG-FP4 and target device. For the communication port and communication rate that can be selected, refer to the user’s manual of the device used.
  • Page 62 CHAPTER 4 PG-FP4 OPERATION USING GUI SOFTWARE [Pulse number] Displays the number of V or FLMD0 pulses corresponding to the selected communication mode. [Speed list box] Select the communication rate of the selected communication channel from the following. <When SIO-ch0, SIO-ch1, SIO-ch2, or SIO-H/S is selected>...
  • Page 63 When using the clock of the target system (when the On Target check box is checked), input the frequency to be used. When using the clock of the PG-FP4 (when the On Target check box is not checked), select a frequency from the following: •...
  • Page 64 CHAPTER 4 PG-FP4 OPERATION USING GUI SOFTWARE <4> Operation Mode Operation Mode may divide the flash memory of the target device into blocks or areas. This menu is used to select the operation mode of the flash memory. Some devices do not have either or both division modes Block and Area.
  • Page 65 Although they can be supplied by the PG-FP4, the current flow is not large enough to operate the whole target system (maximum of 200 mA). Therefore, supply voltage via the PG-FP4 only when a dedicated writing adapter such as an FA adapter is used.
  • Page 66 CHAPTER 4 PG-FP4 OPERATION USING GUI SOFTWARE Figure 4-27. Setup Window – Supply Voltage [Vdd [V]] Displays the default Vdd level set by the parameter file in volts (V). This Vdd level can be changed by input. [Vdd2 [V]] Displays the default Vdd2 level set by the parameter file in volts (V).
  • Page 67 CHAPTER 4 PG-FP4 OPERATION USING GUI SOFTWARE <2> Command options This dialog box is used to specify the options of the PG-FP4 flash processing commands. Figure 4-28. Setup Window – Command Options [Blank check before Erase check box] If this check box is checked, a blank check is performed before execution of the Erase and EPV commands.
  • Page 68 CHAPTER 4 PG-FP4 OPERATION USING GUI SOFTWARE <3> Security flag settings The <Security flag settings> dialog box is used to specify which security function is valid. This function is valid only when a single-power-supply flash memory microcontroller is used. Figure 4-29. Setup Window – Security Flag Settings...
  • Page 69 CHAPTER 4 PG-FP4 OPERATION USING GUI SOFTWARE <4> Program download/upload The PG-FP4 has 2 MB of flash memory as a user program area. This memory area can be used as a single 2 MB area, or as two independent 1 MB areas (Area 0 and Area Different user programs 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.
  • Page 70: Help] Menu

    Clicking the Help menu displays the following pull-down menu. Figure 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.
  • Page 71: Chapter 5 Sample Programming Session Using Gui Software

    CHAPTER 5 SAMPLE PROGRAMMING SESSION USING GUI SOFTWARE This chapter explains a series of basic operations of the PG-FP4 with the GUI software, taking a case where the µ PD70F3025A is used as the target device as an example. This chapter covers how to start the system, execute the EPV command, and program the target device.
  • Page 72 <1> Turn on the switch of the power supply unit cable. Do not connect the FA adapter before turning on the switch. Confirm that the Status LED of the PG-FP4 remains dark and that ‘Commands >’ is displayed on the LCD, indicating that the PG-FP4 is ready for operation.
  • Page 73 CHAPTER 5 SAMPLE PROGRAMMING SESSION USING GUI SOFTWARE 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 User’s Manual U15260EJ3V1UM...
  • Page 74 CHAPTER 5 SAMPLE PROGRAMMING SESSION USING GUI SOFTWARE 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.
  • Page 75 CHAPTER 5 SAMPLE PROGRAMMING SESSION USING GUI SOFTWARE <3> Click the New... button to create 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.
  • Page 76 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 supplied to the target.) Frequency: 6 MHz Multiply rate: 5 <Operation Mode> Chip User’s Manual U15260EJ3V1UM...
  • Page 77 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>...
  • Page 78 CHAPTER 5 SAMPLE PROGRAMMING SESSION USING GUI SOFTWARE <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 CHAPTER 5 SAMPLE PROGRAMMING SESSION USING GUI SOFTWARE Downloading user program • Select [File] → [Download…]. Figure 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.
  • Page 80 Note When the Program command is executed, whether the write level is secured is verified after the user program has been written. Note, however, that this verification does not detect a communication error of the user program that is transmitted from the PG-FP4 to the target device. For details of this command, refer to 4.4.3 [Device] menu.
  • Page 81 <2> Remove the FA adaptor (target system) from the target cable. <3> Turn off the switch of the power supply unit. <4> Remove the power supply unit and either the RS-232C cable or USB cable from PG-FP4. Caution If the “E501 Operation failed” error occurs, check the following points.
  • Page 82: Chapter 6 Pg-Fp4 Operation In Standalone Mode

    The PG-FP4 has a standalone mode in which the PG-FP4 itself can execute the Erase, Program, and Verify commands without a host. This mode is useful for using the PG-FP4 on the production line during mass production and for upgrading the version at a customer’s site.
  • Page 83: Pg-Fp4 Operation Menu

    If the command prompt ‘>’ is not displayed at the end of a menu line, it means that the function is only displayed. When power to the PG-FP4 is turned on, the following message is displayed on the message display with the status LED remaining dark.
  • Page 84 2. This command is valid only with a single-power-supply flash memory microcontroller. If any other microcontroller is used, this command is not displayed. 3. This is valid for the programming area (Chip, Block and Area) currently set for the PG-FP4. User’s Manual U15260EJ3V1UM...
  • Page 85: Type Setting] Menu

    6.1.2 [Type Setting] menu The [Type Setting] menu is used to check the target device rewrite environment currently set for the PG-FP4. All the values displayed were set during the last programming session. The setting cannot be changed by this menu.
  • Page 86: Option Setting] Menu

    6.1.3 [Option Setting] menu The [Option Setting] menu is used to check the command option and security flag currently set for the PG-FP4. All the displayed values were set during the last programming session. The setting cannot be changed on this menu.
  • Page 87 CHAPTER 6 PG-FP4 OPERATION IN STANDALONE MODE [Prog Area] Displays the valid memory area specified in the 2 MB user program area of the PG-FP4 as either of the following. on (0): User program Area 0 (0x00000000 to 0x000FFFFF) is specified.
  • Page 88: Voltage Setting] Menu

    [Voltage Setting] menu The [Voltage Setting] menu is used to check the voltage level setting when programming the target device currently connected to the PG-FP4. All the displayed values were set by the parameter file during the last programming session.
  • Page 89: Utility/Misc.] Menu

    6.1.5 [Utility/Misc.] menu The [Utility/Misc.] menu is used to check the F/W version of the PG-FP4 and the version of the parameter file downloaded. It is also used to execute RESET of the PG-FP4. This menu cannot be used to change settings.
  • Page 90: Chapter 7 Connectors And Cables

    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. User’s Manual U15260EJ3V1UM...
  • Page 91: Hd-Sub 9 Serial Host Connector

    CHAPTER 7 CONNECTORS AND CABLES HD-Sub 9 Serial Host Connector The serial host connector is located on the right side of the PG-FP4. Figure 7-3. HD-Sub 9 Serial Host Connector Figure 7-4. Pin Configuration of HD-Sub 9 Serial Host Connector Table 7-1.
  • Page 92: Hd-Sub 15 Target Interface Connector

    CHAPTER 7 CONNECTORS AND CABLES HD-Sub 15 Target Interface Connector The target interface connector is located on the right side of the PG-FP4. Figure 7-6. HD-Sub 15 Target Interface Connector Figure 7-7. Pin Configuration of HD-Sub 15 Target Interface Connector Table 7-2.
  • Page 93: Target Cable Specifications

    CHAPTER 7 CONNECTORS AND CABLES Target Cable Specifications The target cable is equipped with two connectors for the FA adapter. Figure 7-8. Target Cable Outline Type B Type A HD-SUB 15 (male) Figure 7-9. Pin Configuration of HD-SUB 15 Figure 7-10. Target Connector Outline (View from Solder Side) 11 13 15 8 10 12 14 16 8 10...
  • Page 94 CHAPTER 7 CONNECTORS AND CABLES Connecting the following connectors as target connectors (type A and type B) is recommended. Type A (16-pin): 7616-5002SC (Sumitomo 3M Limited) Type B (10-pin): FAP-10-08#2-0BF (Yamaichi Electronics Co., Ltd.) When using a self-made cable because 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.
  • Page 95: Parallel Host Connector

    CHAPTER 7 CONNECTORS AND CABLES Parallel Host Connector The parallel host connector can be configured as a centronics interface or as remote control port. Depending on the selection, one of the following signal settings is available. Figure 7-11. HD-Sub 25 Parallel Host Connector Figure 7-12.
  • Page 96: Usb Port

    CHAPTER 7 CONNECTORS AND CABLES 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 User’s Manual U15260EJ3V1UM...
  • Page 97: Chapter 8 Notes On Target Systems

    • Connection to a point where the target CPU RESET rise time is slower than the PG-FP4 RESET rise time. Incorrect connection: PG-FP4 RESET RESET It takes time for the CPU RESET pin to go high after the PG-FP4 RESET level goes from low to high. User’s Manual U15260EJ3V1UM...
  • Page 98 When the PG-FP4 RESET is driven low, the level of the voltage at point A does not fall. Serial When the CPU port used by the PG-FP4 is also connected to the input of an external device, and if that device interface pin malfunctions, disconnect the external device or make it output high impedance.
  • Page 99 CHAPTER 8 NOTES ON TARGET SYSTEMS CPU Pin Design Proposal Keep the wiring between the PG-FP4 connector and the CPU V pin as thick and as short as possible. Insert neither capacitors nor resistors into the V line unless otherwise stated.
  • Page 100 User reset circuit * The PG-FP4 generally performs normally without pin processing. * If the pins of the PG-FP4's output signals (SO/TxD, SCK, RESET) are processed, pull up (or pull down) with a resistor value in compliance with the specifications (V ) of the target device, referring to CHAPTER 9 TARGET SYSTEM INTERFACE CIRCUITS.
  • Page 101: Chapter 9 Target System Interface Circuits

    V may be supplied by the PG-FP4. When V and V are supplied by the target system, the PG-FP4 internal voltage regulator is protected so that user V and V will not affect the signal lines SO/TxD and RESET.
  • Page 102: Sck

    V may be supplied by the PG-FP4. When V and V are supplied by the target system, the PG-FP4 internal voltage regulator is protected so that user V and V will not affect the signal line SCK. In either case, the signal line SCK will have TTL-level voltage.
  • Page 103: Rxd, Hs

    SI/RxD, HS The SI/RxD input signal must not exceed TTL-level voltage. Figure 9-3. SI/RxD and HS Pins 74LV125 33 Ω Signal 100 kΩ 74LV125 Target System PG-FP4 Figure 9-4. CLK Pin Ω 74LV125 Signal Ω 74LV125 Target system PG-FP4 User’s Manual U15260EJ3V1UM...
  • Page 104: Flmd0, Flmd1

    Figure 9-5. FLMD0 and FLMD1 Pins 74LV125 Ω Signal 74LV125 Target system PG-FP4 When V and V are supplied from the target system, the PG-FP4 internal voltage regulator is protected. Figure 9-6. V and V Pins Polyswitch Transistor 350 mA or V generator µ...
  • Page 105: Vpp

    CHAPTER 9 TARGET SYSTEM INTERFACE CIRCUITS Figure 9-7. V Polyswitch Transistor 350 mA generator µ 0.1 F 4 kΩ 1.5 kΩ A/D input µ 0.01 F 1 kΩ Target system PG-FP4 User’s Manual U15260EJ3V1UM...
  • Page 106: Chapter 10 Error Messages

    CHAPTER 10 ERROR MESSAGES The PG-FP4 error and warning messages are displayed on the message display. 10.1 Error Messages of PG-FP4 in Standalone Mode Message Error Condition Possible Workaround Invalid PRM data PRM data is invalid The parameter file includes invalid data, or the file is incomplete.
  • Page 107 The parameter file may contain invalid data. Contact NEC Electronics. Write timeout Write timeout Communication problem between the PG-FP4 and the target device. Try the operation again. Write failed The write operation failed Either the device was not blank before writing or a device defect is causing this error.
  • Page 108: 10.2 Gui Software Fatal Error Messages

    CHAPTER 10 ERROR MESSAGES 10.2 GUI Software Fatal Error Messages GUI software fatal error messages indicate a severe error that destabilizes the GUI software operation. When the problem persists after restarting the GUI software, please contact NEC Electronics. Message Description F 100 Could not initialize INI-File.
  • Page 109 CHAPTER 10 ERROR MESSAGES Message Description F 300 Creating splash screen timer failed. Errors F 100 to F 899 indicate severe internal error situations. F 301 Edit control out of space. F 302 Determining selected communication port speed failed. F 303 Determining selected communication port number failed.
  • Page 110 CHAPTER 10 ERROR MESSAGES Message Description F 700 USB splash screen timer failed. Errors F 100 to F 899 indicate severe internal error situations. F 750 Please stop debugging first. F 751 Opening debug file failed. F 752 Debug information overflow. Discharging actual message.
  • Page 111: 10.3 Gui Software Error Messages

    CHAPTER 10 ERROR MESSAGES 10.3 GUI Software Error Messages In addition to the error messages listed below, error messages can be displayed directly from the PG-FP4. Message Description E 200 Opening script file failed. Opening the specified script file failed. Script file in use? E 201 Updating the firmware will take several minutes.
  • Page 112 Setup dialog box failed since the port is already open. Check if programmer ports are set correctly. E 401 The communication port has not been opened so Sending a command to the PG-FP4 is only possible after far. the communication channel has been opened. E 500 Evaluating CRC answer failed.
  • Page 113 CHAPTER 10 ERROR MESSAGES Message Description E 750 Writing to INI-File failed. Writing to the FP4.INI file failed. E 800 Illegal address The end address entered in the HEX Editor is lower than the start address. E 801 The file cannot be read. Processing the selected file in the HEX Editor failed.
  • Page 114: 10.4 Gui Software Information Messages

    CHAPTER 10 ERROR MESSAGES 10.4 GUI Software Information Messages Informational messages do not need any workaround because they do not indicate an error condition. The message is sent as information only and does not require any user action in response. Message Description I 200...
  • Page 115 CHAPTER 10 ERROR MESSAGES Message Description I 915 The selection is out of range. The value of Vdd [V] on the Advanced tab of the [Device] → [Setup] menu is out of range. I 916 The selection is out of range. The value of Vdd2 [V] on the Advanced tab of the [Device] →...
  • Page 116: Appendix A Revision History

    CHAPTER 2 Addition of operating software Windows 2000 and Windows XP CHAPTER 2 HARDWARE INSTALLATION 2.1 System Requirements Change from “PC-9821 series” to “PC-9800 series” 2.3.2 PG-FP4 control panel and connectors Change of status LED color from yellow to orange Addition of 2.3.9 I C adapter 3.1.1 GUI software installation...
  • Page 117 APPENDIX A REVISION HISTORY (2/2) Version Revised Points Applicable Chapter Second Change of 9.1 SO/TxD, RESET CHAPTER 9 TARGET SYSTEM INTERFACE Addition of 9.2 SCK CIRCUITS Change of Figure 9-3 SI/RxD and HS Pins Change of Figure 9-4 CLK Pin Addition of 9.6 V Addition of 9.7 V 10.2 GUI Software Fatal Error Messages Addition of F129, F410, F411, F412 and...

Table of Contents