Universal flash memory programmer and serial on-chip debugger (12 pages)
Summary of Contents for NEC PG-FPL
Page 1
User’s Manual PG-FPL Document No. U17271EE1V1UM00 Date Published September 2004 NEC Corporation 2004 Printed in Germany...
Page 2
NEC Corporation 2004 PG-FPL complies with the EMC protection requirements 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.
Page 3
NEC Electronics products listed in this document or any other liability arising from the use of such NEC Electronics products. No license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of NEC Electronics or others.
Page 4
Some information contained in this document may vary from country to country. Before using any NEC product in your application, please contact the NEC office in your country to obtain a list of authorized representatives and distributors. They will verify: •...
Troubleshooting • Appendix Reading this Manual To understand the overall functions and usage of the PG-FPL, read this manual in the order of CONTENTS. Be sure to read CHAPTER 4 USING THE GUI SOFTWARE because this chapter presents important information for using the PG-FPL.
Page 6
(FA adapter board) Note: The FA adapter is a product of Naito Densei Machida Mfg. Co., Ltd. If you have any questions about the FA adapter board, contact your local NEC sales or Distributor. Preliminary User’s Manual U17271EE1V0UM00...
Page 11
List of Tables Table 2-1: Settings on the rear of the housing................. 17 Table 4-1: Toolbar Buttons ......................52 Table 6-1: Pin Configuration of USB Connector ................77 Table 6-2: Pin Configuration of Target Cable Connection Connector ..........78 Table 6-3: Pin Configuration of Target Cable ..................
Chapter 1 Overview The FPL is a tool that erases, writes, and verifies programs on an NEC Electronics on-chip flash mem- ory microcontroller on the target board. 1.1 Features • The FPL is a compact on-chip flash memory microcontroller designed for development.
Chapter 2 Hardware Installation 2.1 System Requirements • A PC supporting Windows 98, Windows Me, Windows 2000, or Windows XP is needed. A free space of 2 Mbytes is required on the hard disk to install the GUI software. • Host machine: The following types of personal computers can be used: IBM PC/AT or compatible...
Note 1 (Mini-B type) Target system not based on PG-FPL FP4 connector Notes: 1. se the USB cable (Mini-B type) delivered with IECUBE. 2. The FA adapter is a product of Naito Densei Machida Mfg. Co., Ltd. The FPL is connected to the host machine via the USB cable (Mini-B type). The FPL is connected to the user system via the target cable.
Chapter 2 Hardware Installation 2.2.1 FPL display specifications, and connector and MODE switch settings Figure 2-2: Connector and LED Configuration USB connector MODE switch Power LED Status LED Connector for target cable connection • Connector for target cable connection : Used to connect the connector of the target cable.
Chapter 2 Hardware Installation 2.2.2 FPL-FA connectors Figure 2-3: FPL-FA Connector Configuration Target connector Component side (front) Solder side (rear) FP4 connector • Target connector : Used to connect the tip of the target cable. • FP4 connector : Used to connect the FA adapter board or target system. 2.2.3 Target system The target system must be equipped with an interface that complies with the target interface specifica- tions.
Chapter 2 Hardware Installation 2.2.6 Connection procedure Set the MODE switch according to the power supply of the target system. Caution: Be sure to set the MODE switch before making connections with the host machine and target system. If connections are made based on an incorrect setting, this product and target sys- tem can be damaged.
Chapter 2 Hardware Installation • Method of connecting the tip of the target cable with the FPL-FA Make a connection so that the stamp mark (number) on the tip of the target cable matches the number on the FPL-FA board. Figure 2-5: Connecting the Target Cable with the FPL-FA Match the number Tip of target cable...
Chapter 2 Hardware Installation 2.2.7 Disconnection procedure When communication with the target system ends, terminate the GUI software. 2A. (When the FPL is connected with the target system by using the FPL-FA) <1> Turn off the power to the target system. (When MODE2, MODE3, or MODE4 is set, power is supplied from the FPL, so that this step is not required.) <2>...
<1> When using Windows XP, log on as the computer administrator. When using Windows 2000, log on as the Administrator. <2> Insert the delivered CD-ROM (IECUBE Accessory Disk) into the CD-ROM drive. <3> Double-click in the order from "My Computer" to "CD-ROM" to "PG-FPL" to "setup". "setup.exe" is displayed. Double-click "setup.exe". Figure 3-1: Setup Folder...
Chapter 3 Software Installation <4> Select a language to be used for installation ("English" in this example), then click OK. Figure 3-2: Setup Language Selection Click <5> Click Next>. Figure 3-3: Welcome Window Click Preliminary User’s Manual U17271EE1V0UM00...
<6> Read the displayed license agreement carefully, then click Accepted if you accept the agree- ment. When using the PG-FPL, you need to accept the agreement. If you do not accept the agreement, click Not accepted to terminate the installation of the software.
Chapter 3 Software Installation Figure 3-6: Changing the Installation Folder Specify an installation destination folder path Click Figure 3-7: Custom Installation Check here when installing the GUI software Check here when installing documents Click after conforming the check boxes Preliminary User’s Manual U17271EE1V0UM00...
<11> Upon completion of installation, the following folders are created: Figure 3-11: Folder Configuration after Installation Program files Folder specified as the installation destination \NECTools 32 GUI software \bin \PG-FPL [FPL-exe] [Prrctl.dll] \DRIVER Driver uninstallation execution file \FTDI [Ftdiunin.exe] Other driver-related files...
Chapter 3 Software Installation 3.2 Driver Installation When the FPL is used, the driver needs to be installed on the host machine. Install the driver according to the following procedure: Installation on Windows 98/Me ....page 29 Installation on Windows 2000 ....page 33 Installation on Windows XP .....
Chapter 3 Software Installation <2> The window below is displayed. So, check that "Search for a suitable driver..." is selected, then click Next>. Figure 3-13: Search Method (Windows 98) Check that “Search for a suitable driver...” is selected Click Preliminary User’s Manual U17271EE1V0UM00...
FPL\DRIVER\FTDI" in the address bar, then click Next>. Figure 3-14: Search Location Specification (Windows 98) <1> Check “Specify a location” only <2> Enter “C:\Program Files\NECTools32\BIN\PG-FPL\DRIVER\FTDI” <3> Click Remark: If the installation destination folder is changed at the time of GUI software installation, enter "new-folder\BIN\PG-FPL\DRIVER\FTDI".
Chapter 3 Software Installation <4> The window below is displayed. Click Next>. Figure 3-15: Checking Driver to Be Installed (Windows 98) Click <5> When the window below is displayed, the installation of the USB driver is completed. Click Finish. The installation of the USB Serial Port driver is then automatically performed. Figure 3-16: Installation Completion (Windows 98) Click Preliminary User’s Manual U17271EE1V0UM00...
Chapter 3 Software Installation 3.2.2 Installation on Windows 2000 <1> When the FPL is connected with the host machine, the FPL is recognized by Plug and Play, and the wizard for finding new hardware is started. Click Next>. Figure 3-17: Found New Hardware Wizard 1 (Windows 2000) Click <2>...
<3> Check the "Specify a location" check box only, then click Next>. Figure 3-19: Driver File Location 1 (Windows 2000) Click Check that “Specify a location” only is checked <4> Enter "C:\Program Files\NECTools32\BIN\PG-FPL\DRIVER\FTDI" in the address bar, then click Figure 3-20: Address Specification 1 (Windows 2000) Click Enter “C:\Program Files\NECTools32\BIN\PG-FPL\DRIVER\FTDI”...
Chapter 3 Software Installation <7> Proceed to the installation of the USB Serial Port driver. Click Next>. Figure 3-23: Found New Hardware Wizard 2 (Windows 2000) Click <8> The window below is displayed. So, check that "Search for a suitable driver..." is selected, then click Next>.
<9> Check the "Specify a location" check box only, then click Next>. Figure 3-25: Driver File Location 2 (Windows 2000) Click Check that “Specify a location” only is selected <10> Enter "C:\Program Files\NECTools32\BIN\PG-FPL\DRIVER\FTDI" in the address bar, then click Figure 3-26: Address Specification 2 (Windows 2000) Click Enter “C:\Program Files\NECTools32\BIN\PG-FPL\DRIVER\FTDI”...
Chapter 3 Software Installation 3.2.3 Installation on Windows XP <1> When the FPL is connected with the host machine, the FPL is recognized by Plug and Play, and the wizard for finding new hardware is started. Check that "Install from a list or specific..." is selected, then click Next>.
<2> Check that "Search for the best driver in these locations." is selected. Check the "Include this location in the search:" check box and enter "C:\Program Files\NECTools32\bin\PG-FPL\DRIVER\FTDI" in the address bar, then click Next>. Figure 3-30: Search Location Specification 3 (Windows XP) <1>...
Chapter 3 Software Installation <4> When the window below is displayed, the installation of the USB driver is completed. Click Finish. Figure 3-32: USB Driver Installation Completion 1 (Windows XP) Click <5> Proceed to the installation of the USB Serial Port driver. Click Next>. Figure 3-33: Found New Hardware Wizard 2 (Windows XP) Click Check that “Install from a list or specific...”...
<6> Check that "Search for the best driver in these locations." is selected. Check the "Include this location in the search:" check box and enter "C:\Program Files\NECTools32\bin\PG-FPL\DRIVER\FTDI", then click Next>. Figure 3-34: Search Location Specification 2 (Windows XP) <1> Check that “Search for the best driver in these locations”...
Chapter 3 Software Installation <8> When the window below is displayed, the installation of the USB driver is completed. Click Finish. Figure 3-36: USB Serial Port2 Driver Installation Completion (Windows XP) Click Preliminary User’s Manual U17271EE1V0UM00...
Chapter 3 Software Installation 3.3 Confirmation of USB Driver Installation After installing the two types of drivers, check that the drivers have been installed normally, according to the procedure below. When using the FPL, the information to be checked here is needed. By clicking the "Device Manager"...
<1> When using Windows XP, log on as the computer administrator. When using Windows 2000, log on as the Administrator. <2> Double-click in the order from "My Computer" to "(C:)" to "Program Files" to "NECTools32" to "bin" to "PG-FPL" to "DRIVER" to "FTDI". "Ftdiunin.exe" is displayed. Double-click "Ftdiunin.exe". Figure 3-38: Driver Uninstallation Double-click...
Chapter 3 Software Installation <3> Click Continue. Figure 3-39: Driver Uninstaller Click <4> Click Finish to complete driver uninstallation. Figure 3-40: Completion of Driver Uninstallation Click Caution: If the GUI software is uninstalled earlier, "Ftdiunin.exe" is also deleted. At this time, delete "USB Serial Port (COM?)"...
<1> When using Windows XP, log on as the computer administrator. When using Windows 2000, log on as the Administrator. <2> Insert the delivered CD-ROM (IECUBE Accessory Disk) into the CD-ROM drive. <3> Double-click in the order from "My Computer" to "CD-ROM" to "PG-FPL" to "setup". "setup.exe" is displayed. Double-click "setup.exe".
Chapter 3 Software Installation <4> Select a language to be used for installation ("English" in this example), then click OK. Figure 3-42: Setup Language Selection Click <5> Select "Remove" then click Next>. Figure 3-43: Program Modification Click Select “Remove” Preliminary User’s Manual U17271EE1V0UM00...
Chapter 3 Software Installation <6> Click OK. Figure 3-44: Confirmation of File Deletion Click <7> Click Finish to complete the deletion of the GUI software. Figure 3-45: Completion of Maintenance Click Preliminary User’s Manual U17271EE1V0UM00...
<Downloading the parameter file> The parameter file is not delivered with the FPL software package. Download the parameter file for the PG-FP4 from the following NEC Electronics Web site: http://www.ee.nec.de/update Copy the parameter file downloaded from the NEC Electronics Web site into sub-directory <FPL.EXE-install-path>\PRM created during GUI software setup (refer to Chapter 3 Software Instal-...
Chapter 4 Using The GUI Software This window consists of the following items: Name Display Information Menu bar Displays menu items executable by the FPL (displayed at the top) Toolbar Displays frequently used commands as icons (displayed under the menu bar) Action log window Displays an FPL action log (displayed under the toolbar)
Chapter 4 Using The GUI Software 4.4 Menu Bar Depending on the actual device status and device type, some menu items may be enabled or disabled. 4.4.1 [File] menu Clicking the [File] menu displays the pull-down menu as shown below. This menu mainly contains commands related to file operation.
Chapter 4 Using The GUI Software The file selection window for program loading displays the most recently used directory to which a user program has been loaded. After a user program is loaded, a checksum calculation is made and the result is displayed in the programmer parameter window. [Open button] Selects a user program as a program to be written to the target device.
Page 55
Chapter 4 Using The GUI Software [Blank Check] command The [Blank Check] command allows you to make a blank check on the target device con- nected to the FPL. If the flash memory of the target device is erased, a blank check is termi- nated normally.
Page 56
Chapter 4 Using The GUI Software [Security] command This command is not supported. [Checksum] command The [Checksum] command reads the checksum value of the target device connected with the FPL. This value differs from the value displayed in the parameter window of the main window. [Autoprocedure (EPV)] command The [Autoprocedure (EPV)] command executes the [Erase] command and [Program] com- mand in succession.
Chapter 4 Using The GUI Software [Setup] command The [Setup] menu allows you to make settings related to flash memory rewriting according to the user environment and to set command options. Each time the GUI software is started, the most recently used parameter file (.PRM) is read and the settings are displayed. The [Setup] menu allows you to modify the settings of items other than those items consisting of shadowed characters according to the user environment.
Chapter 4 Using The GUI Software <1> Parameter file This file holds parameters and timing data required to rewrite the flash memory of the target device. Do not modify the data in the parameter file because the data is related to the guarantee of rewrite data.
Chapter 4 Using The GUI Software <2> Communication interface to device "Communication interface to device" is used to select a channel for communication between the FPL and host machine. Figure 4-8: Setup Window - Communication interface to device [Port list box] Select a channel for communication between the FPL and host machine.
Chapter 4 Using The GUI Software <3> Supply oscillator "Supply oscillator" is used to select a clock that determines programming, data transfer, and a transfer rate. Figure 4-9: Setup Window - Supply Oscillator Selection [Frequency box] Sets the clock frequency of the target system. The range of operating frequency varies from one device to another.
Chapter 4 Using The GUI Software <4> Operation Mode The setting of "Operation Mode" may divide the flash memory of some target devices into blocks or areas. This menu is used to select an operation mode of the flash memory. Some devices do not have the block and area division modes, and some devices have only one of the modes.
Chapter 4 Using The GUI Software (b) Advance setup The Advance setup menu is used to specify the command options and security flag settings. When "Advance" is clicked, the following window is displayed: Figure 4-11: Device Setup Window - Advance Preliminary User’s Manual U17271EE1V0UM00...
Chapter 4 Using The GUI Software <1> Command options This dialog box is used to specify the FPL flash processing command options. Figure 4-12: Setup Window - Command options [Blank check before Erase check box] If this check box is checked, blank check is made before the Erase command or EPV command is executed.
Chapter 4 Using The GUI Software 4.4.3 [View] menu Clicking the [View] menu displays the pull-down menu shown below. This menu contains commands for setting whether to display the toolbar and status bar. Figure 4-13: [View] Menu [Toolbar] command Checking the [Toolbar] command displays the toolbar. Unchecking the command hides the toolbar. [Status Bar] command Checking the [Status Bar] command displays the status bar.
Chapter 4 Using The GUI Software 4.4.4 [Help] menu Clicking the [Help] menu displays the following pull-down menu: Figure 4-14: [Help] Menu [About FPL] command The [About FPL] command opens the program entry window as shown below and indicates the version.
Chapter 4 Using The GUI Software 4.5 Programmer Parameter Window This window displays the settings of the programming parameters. Figure 4-16: Programmer Parameter Window [Device] Updated after communication with the target device to display information about the target device. [Parameter file] Updated after [Setup] command execution to display information about a read parameter file.
Chapter 5 Example of Use This chapter explains a series of basic operations of the PG-FPL with the GUI software, taking a case where the µPD70F3266 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.
Chapter 5 Example of Use Connecting and starting the system <1> Set the MODE switch to "2". <2> Connect the FPL with the host machine via the USB cable. <3> Check that the Power LED is turned on. <4> Check that the power to the target system is not turned on, then connect the FPL with the target system via the target cable.
Chapter 5 Example of Use Setting the programming environment <1> Select [Device] → [Setup] from the menu bar. <2> The Standard dialog box for device setup is activated. Figure 5-2: <Standard Device Setup> Dialog Box <3> Click PRM File Read to open the parameter file selection window. In this case, select the parameter file for the µPD70F3266 then click Open.
Chapter 5 Example of Use <4> From the Port list box, select the communication port that matches the host machine being used. Figure 5-4: Port Selection Remark: Selectable ports can be checked using Device Manager. For details, refer to 3.3 Confirmation of USB Driver Installation. Preliminary User’s Manual U17271EE1V0UM00...
Chapter 5 Example of Use <5> Set the other displayed setting items to match the programming environment being used. In particular, set "Supply oscillator" according to the specifications of the selected device. In "Operation Mode", specify a flash memory range subject to operation. Here, the following set- tings are assumed: Figure 5-5: <Standard Device Setup>...
Chapter 5 Example of Use <6> Switch to the Advance dialog box. Figure 5-6: <Advance Device Setup> Dialog Box <Command options> Blank check before Erase : Checked Read verify after Program : Checked Checksum after Program : Not checked Preliminary User’s Manual U17271EE1V0UM00...
Chapter 5 Example of Use <7> Click the OK button. The GUI software sets the parameters. When the settings have been completed, the following screen is displayed: Figure 5-7: Completion of Parameter Setting “PRM File Read OK” is displayed The display is updated Preliminary User’s Manual U17271EE1V0UM00...
Chapter 5 Example of Use Selecting an user program <1> Select [File] → [Load]. <2> Select a program file to be written to the target device, then click Open. Figure 5-8: After Downloading “Success read HEX file” is displayed The display is updated Preliminary User’s Manual U17271EE1V0UM00...
Chapter 5 Example of Use [Autoprocedure (EPV)] command execution Select [Device] → [Autoprocedure (EPV)] from the menu bar. When the [Autoprocedure (EPV)] command is executed, Blank Check → Erase → Program → Verify are executed sequentially for the µPD70F3266. In this example, Read verify after Program is checked.
FPL Signal Name VCC_USB USBDM USBDP N.C. Connector model: UX60A-MB-5ST (manufactured by Hirose Electric) For connection with the host machine, use a USB cable (Mini-B type). For confirmation, NEC Electronics used only the USB cable delivered with IECUBE. Preliminary User’s Manual U17271EE1V0UM00...
Chapter 7 Notes on Target System This chapter explains the basic notes on the target system for rewriting the flash memory in the micro- controller by using FPL. CPU Pin Design Proposal Do not connect the RESET signal generator on the target system to the RESET signal of the FPL. Otherwise, a signal conflict occurs.
Page 84
Chapter 7 Notes on Target System CPU Pin Design Proposal • Connection to a point where the RESET pin of the target device cannot be driven to low level by the RESET signal of the FPL RESET Example of incorrect connection FPL RESET RESET When RESET of the FPL is driven low, the voltage level at point A does not fall.
Jumper User reset circuit Cautions: 1. The FPL operates normally if a direct connection between PG-FPL and the device is established. No additional external components like pull up or pull down resis- tors need to be connected to the signals between PG-FPL and the device.
Chapter 9 Troubleshooting 9.1 Trouble during Setup In driver installation, recognition based on Plug and Play is disabled. Cause: The USB connector may not be inserted normally into the USB port of the personal computer. Action: Check that the USB connector is inserted fully into the USB port of the personal computer. Alternatively, disconnect the USB connector, then insert the USB connector again after a while.
Chapter 9 Troubleshooting 9.2 Trouble during Operation (Main Unit) When a connection is made to the personal computer, the Power LED is not turned on. Cause: This product or the USB port of the personal computer may be destructed. Action: Try a connection to another personal computer.
Chapter 9 Troubleshooting 9.3 Trouble during Operation (Communication) Communication with the target device is disabled. Cause: The driver may not be installed correctly. Action: Check if "USB Serial Port" and "USB High Speed Serial Converter" are installed correctly by refer- ring to 3.2 Driver Installation.
Page 94
Chapter 9 Troubleshooting Cause: Security may be set with another on-chip flash memory microcontroller programmer (such as PG- FP4). Action: Check that security is not set. During erase operation, the Status LED does not blink. In accordance with the specifications of this product, the Status LED may not blink during erase operation.
Chapter 10 Appendix 10.1 Hardware Specifications Table 10-1: Specifications of the Main Unit MIN. TYP. MAX. Operating supply voltage (V _USB) 4.4 V 5.0 V 5.25 V Supply current (V _USB) 500 mA Current consumption of the main unit 35 mA Note 4.2 V 4.8 V...
Chapter 10 Appendix 10.2 Dimensions External view of the main FPL unit Figure 10-1: External View of the Main Unit Unit [mm] Preliminary User’s Manual U17271EE1V0UM00...
Chapter 10 Appendix Target cable Figure 10-3: External View of Target Cable 120 [mm] 30 [mm] Connector Figure 10-4: External View of Target Cable Tip Connector model: PS-SF-C2-1 (manufactured by JAE) Unit [mm] Preliminary User’s Manual U17271EE1V0UM00...
Page 99
This product (including hardware and software) is replaced free of charge in the case of an initial failure only. No warranty is provided for failures other than initial failures. • Support No support is provided for this product. Visit the following site to obtain the latest information about this product: Site: http://www.ee.nec.de/update Preliminary User’s Manual U17271EE1V0UM00...
Page 101
Facsimile Message Although NEC has taken all possible steps to ensure that the documentation supplied to our customers is complete, bug free and up-to-date, we readily accept that From: errors may occur. Despite all the care and precautions we've taken, you may Name encounter problems in the documentation.