Page 1
User’s Manual PG-FPL3 Flash Memory Programmer Document No. U17454EJ1V0UM00 (1st edition) Date Published March 2005 N CP(K) 2005 Printed in Japan...
Page 3
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 4
GENERAL PRECAUTIONS FOR HANDLING THIS PRODUCT 1. Circumstances not covered by product guarantee • If the product was disassembled, altered, or repaired by the customer • If it was dropped, broken, or given another strong shock • Use at over voltage, use outside guaranteed temperature range, storing outside guaranteed temperature range •...
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
This manual is intended to give users an understanding of the basic specifications and correct use of the PG-FPL3. By using the PG-FPL3, programs can be easily erased from or written to the flash memory of an NEC Electronics 78K0/Kx2 Series on-chip flash memory...
Page 7
User-designed board on which NEC Electronics on-chip flash memory microcontroller is mounted FP4 connector Abbreviation of PG-FP4 target connector (type A) FA adapter Adapter board to write programs to NEC Electronics on-chip flash Note memory microcontroller 78K0/Kx2 Generic name of 78K0/KB2, 78K0/KC2, 78K0/KD2, 78K0/KE2, and...
CHAPTER 1 OVERVIEW The PG-FPL3 is a tool that erases and writes programs on an NEC Electronics 78K0/Kx2 Series on-chip flash memory microcontroller on the target board or FA adapter board. Features • The PG-FPL3 is a compact flash memory programmer for an on-chip flash memory microcontroller, and is designed for development.
Package Contents Please verify that you have received all the parts listed in the package contents list included with the FPL3 package. If any part is missing or seems to be damaged, please contact an NEC Electronics sales representative or distributor.
FP4 connector USB cable Note 1 (Mini-B type) PG-FPL3 Target system not compatible with FP4 connector Notes 1. Use the USB cable (Mini-B type) included with the IECUBE. 2. The FA adapter board is a product of Naito Densei Machida Mfg. Co., Ltd.
Page 13
CHAPTER 2 HARDWARE INSTALLATION Target cable connector: Used to connect the connector of the target cable. USB connector: Used to connect the USB cable to be connected to the host machine. Power LED: Turned on in green when the FPL3 is connected to the host machine. Status LED: Blinks in red when the FPL3 is communicating with the target device.
CHAPTER 2 HARDWARE INSTALLATION 2.3.2 FPL3-FA connector Figure 2-3. Layout Drawing of FPL3-FA Connectors Target connector Component side (front) Soldering 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.3.3 Target system The target system must be equipped with a device interface that complies with the target cable specifications.
CHAPTER 2 HARDWARE INSTALLATION 2.3.6 Connection procedure The procedure for connecting the FPL3 is described below. Caution Be sure to install the software (GUI software driver) before making connections. (1) 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.
Page 16
CHAPTER 2 HARDWARE INSTALLATION Figure 2-5. Connecting Target Cable with FPL3-FA Match the number. Tip of target cable <2> Make sure that the power to the target system is not turned on. Caution Make sure that the power to the target system is not turned on before connecting the target cable.
CHAPTER 2 HARDWARE INSTALLATION <5> Connect the tip of the target cable marked “1.VDD” to V of the target system. Caution Be sure to make connections in the order from “0.GND” to “1.VDD” to “other signals”. If connections are made in an incorrect order, the FPL3 and target system may be damaged.
Administrator. (2) Insert the CD-ROM (IECUBE Accessory Disk) included with the IECUBE package into the CD-ROM drive. (3) Double-click “My Computer”, “CD-ROM”, “PG-FPL3”, and “SETUP” in that order. Double-click “setup.exe” in the SETUP folder. (4) Select a language to be used for installation (“English” in this example), then click OK .
Page 19
(6) The software License Agreement window appears. Read the displayed license agreement carefully, then click Yes if you accept the agreement. You need to accept the agreement before using the PG-FPL3. If you do not accept the agreement, click No to terminate the installation of the software.
Page 20
CHAPTER 3 SOFTWARE INSTALLATION • When Browse... is clicked The directory selection window is displayed. Specify the path for the installation folder and then click OK . Figure 3-5. Changing Installation Folder Specify an installation destination folder path. • When Custom is clicked Select the check box of the item to be installed and then click Next >...
Page 21
CHAPTER 3 SOFTWARE INSTALLATION (8) Specify or select the program folder and then click Next > . Figure 3-7. Program Folder Selection (9) Confirm the current setting and then click Next > . (Program installation starts.) Figure 3-8. Start of File Copy Operation User’s Manual U17454EJ1V0UM...
Page 22
(11) The following folders are created upon completion of installation. Figure 3-10. Folder Configuration After Installation Folder specified as the installation destination \Program Files \NECTools32 GUI software \bin \PG-FPL3 [ FPL3.exe ] [ FPL3ctl.dll ] Driver uninstallation execution file \DRIVER \FTDI [ Ftdiunin.exe ]...
CHAPTER 3 SOFTWARE INSTALLATION Driver Installation The driver needs to be installed in the host machine before using the FPL3. Install the driver according to the following procedure. Installation in Windows 98/Me: See 3.2.1 Installation in Windows 98/Me Installation in Windows 2000: See 3.2.2 Installation in Windows 2000 Installation in Windows XP: See 3.2.3 Installation in Windows XP...
Page 24
FPL3\DRIVER\FTDI” in the address bar, then click Next > . Figure 3-12. Search Location Specification (Windows Me) <1> Check “Specify a location” only. <2> Enter “C:\Program Files\NECTools32\bin\PG-FPL3\DRIVER\FTDI”. Remark If the installation destination folder is changed for GUI software installation, enter “new- folder\bin\PG-FPL3\DRIVER\FTDI”.
Page 25
CHAPTER 3 SOFTWARE INSTALLATION (5) When installation of the USB driver is complete, the screen shown below appears. Click Finish . Subsequently the installation of the USB Serial Port driver is automatically performed. Figure 3-14. Completion of Installation (Windows Me) User’s Manual U17454EJ1V0UM...
CHAPTER 3 SOFTWARE INSTALLATION 3.2.2 Installation in Windows 2000 (1) When the FPL3 is connected with the host machine, the FPL3 is recognized by Plug and Play, and the wizard for finding new hardware is started. Click Next > . Figure 3-15.
Page 27
(3) Check the “Specify a location” check box only, then click Next > . Figure 3-17. Driver File Location (Windows 2000) Check that “Specify a location” only is checked. (4) Enter “C:\Program Files\NECTools32\bin\PG-FPL3\DRIVER\FTDI” in the address bar, then click OK . Figure 3-18. Address Specification (Windows 2000) Enter “C:\Program Files\NECTools32\bin\PG-FPL3\DRIVER\FTDI”. Remark If the installation destination folder is changed for GUI software installation, enter “new-...
Page 28
CHAPTER 3 SOFTWARE INSTALLATION (5) The driver file is searched and the window below is displayed. Click Next > . Figure 3-19. Driver File Search (Windows 2000) (6) When installation of the USB driver is complete, the screen shown below appears. Click Finish to complete installation.
Page 29
CHAPTER 3 SOFTWARE INSTALLATION (7) Subsequently the installation of the USB Serial Port driver is started. Click Next > . Figure 3-21. Found New Hardware Wizard 2 (Windows 2000) (8) The window below is displayed. Check that “Search for a suitable driver ...” is selected, then click Next > . Figure 3-22.
Page 30
(9) Check the “Specify a location” check box only, then click Next > . Figure 3-23. Driver File Location 2 (Windows 2000) Check that “Specify a location” only is checked. (10) Enter “C:\Program Files\NECTools32\bin\PG-FPL3\DRIVER\FTDI” in the address bar, then click OK . Figure 3-24. Address Specification 2 (Windows 2000) Enter “C:\Program Files\NECTools32\bin\PG-FPL3\DRIVER\FTDI”. Remark If the installation destination folder is changed for GUI software installation, enter “new-...
Page 31
CHAPTER 3 SOFTWARE INSTALLATION (11) The driver file is searched and the window below is displayed. Click Next > . Figure 3-25. Driver File Search 2 (Windows 2000) (12) When installation of the USB driver is complete, the screen shown below appears. Click Finish to complete installation.
CHAPTER 3 SOFTWARE INSTALLATION 3.2.3 Installation in Windows XP (1) When the FPL3 is connected with the host machine, the FPL3 is recognized by Plug and Play, and the wizard for finding new hardware is started. Check that “No, not this time” is selected, then click Next > . Figure 3-27.
Page 33
CHAPTER 3 SOFTWARE INSTALLATION (3) 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-FPL3\DRIVER\FTDI” in the address bar, then click Next > .
Page 34
CHAPTER 3 SOFTWARE INSTALLATION (5) Subsequently the installation of the USB Serial Port driver is started. The wizard for finding new hardware is started. Check that “No, not this time” is selected, then click Next > . Figure 3-31. Found New Hardware Wizard 2 (Windows XP) Check that “No, not this time”...
Page 35
CHAPTER 3 SOFTWARE INSTALLATION (7) 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-FPL3\DRIVER\FTDI” in the address bar, then click Next > .
CHAPTER 3 SOFTWARE INSTALLATION 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 FPL3, the information to be checked here is needed. Click 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 “My Computer”, “(C:)”, “Program Files”, “NECTools32”, “bin”, “PG-FPL3”, “DRIVER”, and “FTDI” in that order. Double-click “Ftdiunin.exe” in the FTDI folder.
Administrator. (2) Insert the CD-ROM (IECUBE Accessory Disk) included with the IECUBE package into the CD-ROM drive. (3) Double-click “My Computer”, “CD-ROM”, “PG-FPL3”, and “SETUP” in that order. Double-click “setup.exe” in the SETUP folder. (4) Select a language to be used for installation (“English” in this example), then click OK .
Page 39
CHAPTER 3 SOFTWARE INSTALLATION (6) Click OK to start uninstallation. Figure 3-40. Confirmation of File Deletion (7) When uninstallation of the GUI software is complete, the screen shown below appears. Click Finish to complete uninstallation. Figure 3-41. Completion of Maintenance User’s Manual U17454EJ1V0UM...
It has to be downloaded from the following NEC Electronics website. http://www.necel.com/micro/ods/eng/index.html (website in English) http://www.necel.com/micro/ods/jpn/index.html (website in Japanese) The PRM file downloaded from the NEC Electronics website must be copied into the sub-directory <FPL3.EXE- installation-path>\PRM which was created during GUI software setup (see CHAPTER 3 SOFTWARE INSTALLATION).
CHAPTER 4 OPERATION USING GUI SOFTWARE This window consists of the following items. Name Description of Display Menu bar (displayed at the top) Displays menu items executable by the FPL3. Toolbar (displayed under the menu bar) Displays frequently used commands as icons. Action log window (displayed under the toolbar) Displays an FPL3 action log.
Page 42
CHAPTER 4 OPERATION USING GUI SOFTWARE Figure 4-2. [File] Menu (1) [Load] command The [Load] command allows you to select a program file. The selected program file will be programmed into the device’s flash memory by executing the [Program] command or [Autoprocedure (EPV)] command.
CHAPTER 4 OPERATION USING GUI SOFTWARE 4.4.2 [Device] menu Clicking the [Device] menu displays the following pull-down menu. This pull-down menu mainly consists of commands for programming the target device, such as erase, program, and verify. Figure 4-4. [Device] Menu (1) [Blank Check] command The [Blank Check] command initiates a blank check of the target device connected to the FPL3.
Page 44
CHAPTER 4 OPERATION USING GUI SOFTWARE (3) [Program] command The [Program] command transmits the specified user program to the target device and writes them to the flash memory. After execution of the [Program] command, verification to detect a communication error of the user program from the FPL3 to the target device is executed in accordance with the setting of ‘Command options’...
Page 45
CHAPTER 4 OPERATION USING GUI SOFTWARE (9) [Get Security settings] command The [Get Security settings] command reads the Security flag information of the target device, and reflects the result in the Advanced Setup menu. When this menu can be specified, be sure to check the security by executing the [Get Security settings] command immediately before the security command is executed, and specify any additional security.
Page 46
CHAPTER 4 OPERATION USING GUI SOFTWARE (a) Standard setup This menu is used to set the rewriting environment of the target device’s flash memory. The mode of communication with the target device and the operating clock of the device differ depending on the device used.
Page 47
CHAPTER 4 OPERATION USING GUI SOFTWARE Figure 4-8. Parameter File Selection Window [ PRM File Read button] A window for specifying a parameter file is displayed. Specify the target file and click Open . <2> Host connection Select the channel for communication between the FPL3, target device, and host machine, in this area.
Page 48
CHAPTER 4 OPERATION USING GUI SOFTWARE <3> Supply oscillator Select the clock that determines the programming, data transfer, and transfer rates, in this area. Figure 4-10. Device Setup Window – Supply Oscillator [Frequency box] Sets the clock frequency of the target system. Remark Check the selectable communication rate with the user’s manual of each device.
Page 49
CHAPTER 4 OPERATION USING GUI SOFTWARE [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 the flash memory of the target device is configured. [Show Address check box] Specifies whether numbers or addresses are displayed in the Start/End list boxes.
Page 50
CHAPTER 4 OPERATION USING GUI SOFTWARE (b) Advance setup This menu is used to specify command options and security flag setting. The Advance tab is displayed by clicking Advance. Figure 4-13. Device Setup Window – Advance Tab <1> Command options Specify the options for the FPL3 flash processing commands in this area.
Page 51
CHAPTER 4 OPERATION USING GUI SOFTWARE [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 [Autoprocedure (EPV)] commands. [Checksum after Program check box] If this check box is checked, the flash memory checksum values of the target device are read from the target device after execution of the [Program] and [Autoprocedure (EPV)] commands.
Page 52
CHAPTER 4 OPERATION USING GUI SOFTWARE [Disable Chip Erase check box] If this check box is checked, the [Erase] command becomes invalid in the entire flash memory area of the target device. At this time, the warning message shown below is displayed. Figure 4-16.
CHAPTER 4 OPERATION USING GUI SOFTWARE <3> Target Reset Message By checking the Target Reset Message check box, the window promoting the reset operation manually is displayed even when the reset signal cannot be connected to the target cable. Figure 4-18. Device Setup Window − Target Reset Message Remark The Target Reset Message check box is common to Standard and Advance tabs.
CHAPTER 4 OPERATION USING GUI SOFTWARE 4.4.4 [Help] menu Clicking the [Help] menu displays the following pull-down menu. Figure 4-20. [Help] Menu (1) [About FPL3] command The [About FPL3] command opens the following program entry window and indicates the version. Clicking OK terminates the display.
CHAPTER 4 OPERATION USING GUI SOFTWARE Programmer Parameter Window This window displays the settings of the programming parameters. Figure 4-22. Programmer Parameter Window [Device] Displays information about a target device updated after communication with the target device. [Parameter file] Displays information about a parameter file updated and read after [Setup] command execution. [Load file] Selects information about a program file updated and selected after [Load] command execution.
CHAPTER 5 USAGE EXAMPLE This chapter explains a series of basic operations of the FPL3 with the GUI software, taking a case where the µ PD78F0533 is used as the target device as an example. This chapter covers how to start the system, execute the [Autoprocedure (EPV)] command, and program the target device.
Page 57
CHAPTER 5 USAGE EXAMPLE (4) Connecting and starting the system <1> Set the MODE switch to “MODE3”. <2> Connect the FPL3 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 FPL3 with the target system via the target cable.
Page 58
CHAPTER 5 USAGE EXAMPLE <3> Click PRM File Read to open the parameter file selection window. µ In this case, select the parameter file for the PD78F0533, then click Open . Figure 5-3. Parameter File Selection <4> Set the items in the Operation Mode field so that the FPL3 is adjusted to the user programming environment.
Page 59
CHAPTER 5 USAGE EXAMPLE <5> Switch to the Advance tab. Figure 5-5. Device Setup Window – Advance Tab <Command options> Blank check before Erase: Checked Read verify after Program: Checked Security flag after Program: Not checked Checksum after Program: Not checked User’s Manual U17454EJ1V0UM...
Page 60
CHAPTER 5 USAGE EXAMPLE <6> Click OK . The GUI software sets the parameters. When the settings are completed, the following screen is displayed. Figure 5-6. Completion of Parameter Setting “PRM File Read OK.” is displayed Parameters are updated. User’s Manual U17454EJ1V0UM...
Page 61
CHAPTER 5 USAGE EXAMPLE (6) Selecting a user program <1> Select [File] → [Load]. <2> Select a program file to be written to the target device, then click Open . Figure 5-7. After Loading File “Success read HEX file.” is displayed. Parameters are updated.
Page 62
CHAPTER 5 USAGE EXAMPLE Figure 5-8. After EPV Execution “...finish” is displayed. (8) Terminating the system <1> If other devices need not be programmed, select [File] → [Quit] to terminate the GUI software. All settings executed so far are saved in the FPL3.INI file, so that those settings can be reused when the GUI software is restarted.
CHAPTER 6 CONNECTORS AND CABLES USB Connector (FPL3) Figure 6-1. Pin Layout of Power Supply Connector Table 6-1. Pin Assignment of USB Connector USB Connector FPL3 Signal Name N.C. Connector part number: UX60A-MB-5ST (made by Hirose Electric) Remark The recommended USB cable (Mini-B type) for connection with the host machine is the USB cable included with the IECUBE.
CHAPTER 7 NOTES ON TARGET SYSTEMS This chapter explains the basic notes on the target system for rewriting the flash memory in the microcontroller using the FPL3. CPU Pin Design Proposal RESET Do not connect the RESET signal generator on the target system to the RESET signal of the FPL3. Otherwise, a signal conflict will occur.
Page 68
CHAPTER 7 NOTES ON TARGET SYSTEMS CPU Pin Design Proposal • Connection to a point where the target CPU RESET pin cannot be driven to low level by the FPL3 RESET RESET signal. Incorrect connection: FPL3 RESET RESET When the FPL3 RESET is driven low, the level of the voltage at point A does not fall. Serial When the CPU port used by the FPL3 is also connected to the input of an external device, and if that device interface pin...
Page 69
CHAPTER 7 NOTES ON TARGET SYSTEMS The following show examples of the interface circuits of UART (asynchronous communication port). Refer to the above design proposal for the pin processing of the device to be used. Figure 7-1. UART Interface Circuit Example Connector RESET RESET...
CHAPTER 9 TROUBLESHOOTING Trouble During Setup (1) When installing the driver, the driver is not recognized by Plug and Play. 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 Trouble During Operation (Main Unit) (1) When the FPL3 is connected to the personal computer but the Power LED is not turned on. Cause: The FPL3 or the USB port of the personal computer may be damaged. Action: Try a connection to another personal computer.
CHAPTER 9 TROUBLESHOOTING Trouble During Operation (Communication) (1) Communication with the target device is not possible. Cause: The driver may not be installed correctly. Action: Check if “USB Serial Port” and “USB Serial Converter” are installed correctly by referring to 3.3 Confirmation of USB Driver Installation.
Page 75
CHAPTER 9 TROUBLESHOOTING Cause: The power supply capacity of the USB port of the personal computer may be low (when the MODE switch is set to MODE2 or MODE3). Action: Try using another personal computer or supply power from the target system by setting the MODE switch to MODE1.
APPENDIX A PRODUCT SPECIFICATIONS A.1 Hardware Specifications Table A-1. Specifications of 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 95 mA Note 5 V output...
APPENDIX A PRODUCT SPECIFICATIONS A.2 Dimensions (1) PG-FPL3 Figure A-1. Dimensions of FPL3 Main Unit MODE 1 2 3 Power Status Target MODE VDD Target 3.3V Target 8MHz 16MHz Unit: mm User’s Manual U17454EJ1V0UM...
Page 78
APPENDIX A PRODUCT SPECIFICATIONS (2) FPL3-FA Figure A-2. Dimensions of FPL3-FA Main Unit 20.34 FPL3-FA 12.5 Unit: mm User’s Manual U17454EJ1V0UM...
Page 79
APPENDIX A PRODUCT SPECIFICATIONS (3) Target cable Figure A-3. Dimensions of Target Cable Connector block Figure A-4. Dimensions of Tip of Target Cable Min. 0.4 Max. 0.2 12.3 Pin Connection Unit: mm Connector part number: PS-SF-C2-1 (manufactured by JAE) User’s Manual U17454EJ1V0UM...
APPENDIX B WARRANTY AND SUPPORT B.1 Warranty 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. B.2 Support No support is provided for this product. Visit the following site to obtain the latest information about this product: Site: http://www.necel.com/micro/ods/eng User’s Manual U17454EJ1V0UM...