Evaluation kit for ra4m1 microcontroller group (38 pages)
Summary of Contents for Renesas PG-FPL
Page 1
On April 1 , 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the old company name remains in this document, it is a valid Renesas Electronics document. We appreciate your understanding.
Page 2
Renesas Electronics. Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as “Specific”...
Page 3
User’s Manual PG-FPL Flash Memory Programmer Document No. U17788EJ1V0UM00 (1st edition) Date Published September 2005 NS CP(K) 2005 Printed in Japan...
Page 5
IECUBE is a trademark of NEC Electronics Corporation. Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. PC/AT is a trademark of International Business Machines Corporation. Pentium is a trademark of Intel Corporation. •...
Page 6
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 7
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 8
This manual is intended to give users an understanding of the basic specifications and correct use of the PG-FPL. By using the PG-FPL, 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
The meanings of the terms used in this manual are as follows. Term Meaning Abbreviation of flash memory programmer PG-FPL GUI software Windows application to operate PG-FPL using GUI software Target device NEC Electronics on-chip flash memory microcontroller Target system User-designed board on which NEC Electronics on-chip flash...
The FPL is a tool that erases, writes, and verifies programs on an NEC Electronics on-chip flash memory microcontroller on the target board. Features • The PG-FPL is a compact flash memory programmer for an on-chip flash memory microcontroller, and is designed for development. • The USB interface is available for connection with the host.
CHAPTER 2 HARDWARE INSTALLATION System Requirements A PC supporting Windows 98, Windows Me, Windows 2000, or Windows XP is needed. About 2 MB of free hard disk space is required to install the GUI software. Host machine IBM PC/AT or compatible CPU: Pentium 100 MHz or more RAM: 32 MB or more...
FP4 connector USB cable Note 1 (Mini-B type) PG-FPL Target system not based on 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 15
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 FPL is connected to the host machine. Status LED: Blinks in red when the FPL is communicating with the target device.
CHAPTER 2 HARDWARE INSTALLATION 2.3.2 FPL-FA connector Figure 2-3. Layout Drawing of FPL-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 FPL 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 18
CHAPTER 2 HARDWARE INSTALLATION Figure 2-5. Connecting Target Cable with FPL-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 FPL and target system may be damaged.
Page 20
CHAPTER 2 HARDWARE INSTALLATION <5> Disconnect the tip of the target cable marked “0.GND” from the target system. (3) Disconnect the USB cable from the host machine. (Make sure that the Power LED is turned off.) (4) Disconnect the USB cable from the FPL. User’s Manual U17788EJ1V0UM...
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-FPL”, 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 22
(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-FPL. If you do not accept the agreement, click No to terminate the installation of the software.
Page 23
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 24
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 U17788EJ1V0UM...
Page 25
(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-FPL [ FPL.exe ] [ Prrctl.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 FPL. 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 27
FPL\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-FPL\DRIVER\FTDI”. Remark If the installation destination folder is changed for GUI software installation, enter “new- folder\bin\PG-FPL\DRIVER\FTDI”.
Page 28
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 U17788EJ1V0UM...
CHAPTER 3 SOFTWARE INSTALLATION 3.2.2 Installation in 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-15.
Page 30
(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-FPL\DRIVER\FTDI” in the address bar, then click OK . Figure 3-18. Address Specification (Windows 2000) Enter “C:\Program Files\NECTools32\bin\PG-FPL\DRIVER\FTDI”. Remark If the installation destination folder is changed for GUI software installation, enter “new-...
Page 31
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 32
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 33
(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-FPL\DRIVER\FTDI” in the address bar, then click OK . Figure 3-24. Address Specification 2 (Windows 2000) Enter “C:\Program Files\NECTools32\bin\PG-FPL\DRIVER\FTDI”. Remark If the installation destination folder is changed for GUI software installation, enter “new-...
Page 34
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 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 “No, not this time” is selected, then click Next > . Figure 3-27.
Page 36
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-FPL\DRIVER\FTDI” in the address bar, then click Next > .
Page 37
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 38
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-FPL\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 FPL, 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-FPL”, “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-FPL”, 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 42
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 U17788EJ1V0UM...
CHAPTER 4 OPERATION USING GUI SOFTWARE Introduction Before you start using the FPL, 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 FPL software package. It has to be downloaded from the following NEC Electronics website.
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 FPL. Toolbar (displayed under the menu bar) Displays frequently used commands as icons. Action log window (displayed under the toolbar) Displays an FPL action log.
Page 45
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 Note FPL.INI is created in the Windows folder when Windows 98, Windows Me, or Windows XP is used. When Windows 2000 is used, FPL.INI is created in the Winnt folder. 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.
Page 47
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 FPL to the target device is executed in accordance with the setting of ‘Command options’...
Page 48
CHAPTER 4 OPERATION USING GUI SOFTWARE (9) [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.
Page 49
CHAPTER 4 OPERATION USING 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.
Page 50
CHAPTER 4 OPERATION USING GUI SOFTWARE Remark Selectable ports can be checked using Device Manager. For details, refer to 3.3 Confirmation of USB Driver Installation. [Speed box] Select a communication rate for the selected communication channel from the following: • 9600 bps •...
Page 51
CHAPTER 4 OPERATION USING GUI SOFTWARE <4> Operation Mode The flash memory may be divided into blocks or areas depending on the target device. 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 52
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 53
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-12. Device Setup Window – Advance Tab <1> Command options Specify the options for the FPL flash processing commands in this area.
CHAPTER 4 OPERATION USING GUI SOFTWARE [Security flag after Program check box] Not usable [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. This value differs from the value displayed in the parameter window in the main window.
CHAPTER 4 OPERATION USING GUI SOFTWARE 4.4.4 [Help] menu Clicking the [Help] menu displays the following pull-down menu. Figure 4-15. [Help] Menu (1) [About FPL] command The [About FPL] 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-17. 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 USAGE EXAMPLE This chapter explains a series of basic operations of the 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 [Autoprocedure (EPV)] command, and program the target device.
Page 58
CHAPTER 5 USAGE EXAMPLE (4) Connecting and starting the system <1> Set the MODE switch to “MODE2”. <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.
Page 59
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 PD70F3266, then click Open . Figure 5-3. Parameter File Selection <4> From the Port list box, select the communication port that matches the host machine being used. Figure 5-4.
Page 60
CHAPTER 5 USAGE EXAMPLE <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 settings are assumed: Figure 5-5.
Page 61
CHAPTER 5 USAGE EXAMPLE <6> Switch to the Advance tab. Figure 5-6. 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 U17788EJ1V0UM...
Page 62
CHAPTER 5 USAGE EXAMPLE <7> Click OK . The GUI software sets the parameters. When the settings are completed, the following screen is displayed. Figure 5-7. Completion of Parameter Setting “PRM File Read OK.” is displayed Parameters are updated. User’s Manual U17788EJ1V0UM...
Page 63
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-8. After Loading File “Success read HEX file.” is displayed. Parameters are updated.
Page 64
CHAPTER 5 USAGE EXAMPLE Figure 5-9. 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 FPL.INI file, so that those settings can be reused when the GUI software is restarted.
CHAPTER 6 CONNECTORS AND CABLES USB Connector (FPL) Figure 6-1. Pin Layout of Power Supply Connector Table 6-1. Pin Assignment of USB Connector USB Connector FPL Signal Name VCC_USB USBDM USBDP 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 FPL. CPU Pin Design Proposal RESET Do not connect the RESET signal generator on the target system to the RESET signal of the FPL. Otherwise, a signal conflict will occur.
Page 70
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 FPL RESET RESET signal. Incorrect connection: FPL RESET RESET When the FPL RESET is driven low, the level of the voltage at point A does not fall. Serial When the CPU port used by the FPL is also connected to the input of an external device, and if that device interface pin...
Page 71
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 FPL is connected to the personal computer but the Power LED is not turned on. Cause: The FPL 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 79
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, MODE3, or MODE4). 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 (VDD_USB) 4.4 V 5.0 V 5.25 V Supply current (VDD_USB) 500 mA Current consumption of the main unit 35 mA Note 5.0-V output 4.2 V 4.8 V...
APPENDIX A PRODUCT SPECIFICATIONS A.2 Dimensions (1) PG-FPL Figure A-1. Dimensions of FPL Main Unit Unit: mm User’s Manual U17788EJ1V0UM...
Page 82
APPENDIX A PRODUCT SPECIFICATIONS (2) FPL-FA Figure A-2. Dimensions of FPL-FA Main Unit 20 .34 12 .50 25 .00 Unit: mm User’s Manual U17788EJ1V0UM...
Page 83
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 U17788EJ1V0UM...
APPENDIX B WARRANTY AND SUPPORT B.1 Warranty The PG-FPL (including hardware and software) can be exchanged with a new product for free only when it has an initial failure. NEC Electronics' warranty does not cover any other failure. B.2 Support NEC Electronics will not provide any support for the PG-FPL.