All information conta ined in these materials, including products and product specifications,
Corporation website (http://www.renesas.com).
There are corrections and additions on page 27, 120-122, 150 in this document.
Flash Memory Programmer
User’s Manual
: Common
represents information on the product at the time of publication and is subject to change by
Renesas Electronics Corporation without notice. Please review the latest information published
by Renesas Electronics C or por at i on through various means, including the Renesas Electronics
Page 2
Notice
1.Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of
semiconductor products and application examples. You are fully responsible for the incorporation of these circuits, software,
and information in the design of your equipment. Renesas Electronics assumes no responsibility for any losses incurred by you
or third parties arising from the use of these circuits, software, or infor
mation.
2.Renesas Electronics has used reasonable care in preparing the information included in this document, but Renesas Electronics
does not warrant that such information is error free. Renesas Electronics assumes no liability whatsoever for any damages
incurred by you resulting from errors in or omissions from the information included herein.
3.Renesas Electronics does not assume any liability for infringement of patents, copyrights, or other intellectual p
roperty rights of
third parties by or arising from the use of Renesas Electronics products or technical information described in this document. No
license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights of
Renesas Electronics or others.
4.You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or in part.
Renesas Electronics assumes no re
sponsibility for any losses incurred by you or third parties arising from such alteration,
modification, copy or otherwise misappropriation of Renesas Electronics product.
5.Renesas Electronics products are classified according to the following two quality grades: “Standard” and “High Quality”. The
recommended applications for each Renesas Electronics product depends on the product’s quality grade, as indicated below.
“Standard”:Computers; office equipme
nt; communications equipment; test and measurement equipment; audio and visual
equipment; home electronic appliances; machine tools; personal electronic equipment; and industrial robots etc.
Renesas Electronics products are neither intended nor authorized for use in products or syste
ms that may pose a direct threat to
human life or bodily injury (artificial life support devices or systems, surgical implantations etc.), or may cause serious property
damages (nuclear reactor control systems, military equipment etc.). You must check the quality grade of each Renesas
Electronics product before using it in a particular application. You may not use any Renesas Electronics product for any
application for which it is not intended. Renesas Electronics sha
ll 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 which the product is not intended by Renesas
Electronics.
6.You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics,
especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation
characteristics
, installation and other product characteristics. Renesas Electronics shall have no liability for malfunctions or
damages arising out of the use of Renesas Electronics products beyond such specified ranges.
7.Although Renesas Electronics endeavors to improve the quality and reliability of its products, semiconductor products have
specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Further
,
Renesas Electronics products are not subject to radiation resistance design. Please be sure to implement safety measures to
guard them against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a Renesas
Electronics product, such as safety design for hardware and software including but not limited to redundancy, fire control and
malfunction prevention, appropriate treatment for aging degradation or any other approp
riate measures. Because the evaluation
of microcomputer software alone is very difficult, please evaluate the safety of the final products or systems manufactured by
you.
8.Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility
of each Renesas Electronics product. Please use Renesas Electronics products in compliance with all applicable laws and
regulations that regulate the inclusion or
use of controlled substances, including without limitation, the EU RoHS Directive.
Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws
and regulations.
9.Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose
manufacture, use, or sale is prohibited under any applicable domestic or foreign laws or regulations. You should not use
Ren
esas Electronics products or technology described in this document for any purpose relating to militaryapplications or use
by the military, including but not limited to the development of weapons of mass destruction. When exporting the Renesas
Electronics products or technology described in this document, you should comply with the applicable export control laws and
regulations and follow the procedures required by such laws and regulations.
10. It is the responsib
ility of the buyer or distributor of Renesas Electronics products, who distributes, disposes of, or otherwise
places the product with a third party, to notify such third party in advance of the contents and conditions set forth in this
document, Renesas Electronics assumes no responsibility for any losses incurred by you or third parties as a result of
unauthorized use of Renesas Electronics products.
11. This document may not be reproduced or duplicated in any form, in wh
ole or in part, without prior written consent of Renesas
Electronics.
12. Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document
or Renesas Electronics products, or if you have any other inquiries.
(Note 1) “Renesas Electronics” as used in this document means Renesas Electronics Corporation and also includes its majority-
owned subsidiaries.
(Note 2) “Renesas Electronics product(s)” means an
y product developed or manufactured by or for Renesas Electronics.
(2012.4)
Notice
Page 3
PG-FP5 V2.15 PREFACE
PREFACE
Thank you for purchasing the PG-FP5 flash memory programmer. The PG-FP5 is a flash memory programmer for
Renesas Electronics microcontrollers.
All components of the PG-FP5 are listed under “1.4 Package Components”. If you have any questions about the PGFP5, contact your local distrib utor.
The manuals relevant to usage of the PG-FP5 are listed below. The manuals for your product consist of two volume s ; a
common part and a part for the corresponding MCUs. Be sure to read both volumes before using the PG-FP5. You can
download the latest manuals from the Renesas Tools homepage (https://www.renesas.com/pg_fp5).
R20UT2922EJ0400 Rev.4.00 Page 3 of 163
Oct 03, 2016
Page 4
PG-FP5 V2.15 PREFACE
Important
Before usi ng this product, be sure to read this user’s manual carefully.
Keep this user’s manual, and re fer to it when you have questions about this product.
Purpose of use of the product:
This product is a device to support the development of systems that uses Renesas Electronics microcontrollers. This
product is a tool that erases, writes and verifies programs on a Renesas Electronics on-chi p fl as h memory
microcontroller on the target syste m.
Be sure to use this product correctly according to said purpose of use. Please avoid usin g this product other than for
its intended purpose of use.
For those who use this product:
This product can only be used by those who have carefully read the user’s manual and know how to use it.
Use of this product requires basic knowledge of electric circuits, logical circuits, and MCUs.
When using this product:
(1) This product is a development-support unit for us e in your program development and evaluation stages. When
a program you have finished developing is to be incorporated in a mass-produced product, the judgment as to
whether it can be put to practical use is entirely your o wn responsibility, a nd should be base d on evaluation of
the device on which it is installed and other experiments.
(2) In no event shall Renesas Electronics Corporation be liable for any consequence arising from the use of this
product.
(3) Renesas Electronics Corporation strives to provide workarounds for and correct trouble with products
malfunctions, with some free and some incurring charges. However, this does not necessarily mean that
Renesas Electronics Corporation guarantees the provision of a workaround or correction under any
circumstances.
(4) This product covered by this document has been developed on the assumptio n that it will be used for program
development and evaluation in laboratories. Therefore, it does not fall within the scope of applicability of the
Electrical Appliance and Material Safety Law and protection against electromagnetic interference when used in
Japan.
(5) Renesas Electronics Corporation cannot predict all possible situations and possible cases of misuse that carry a
potential for danger. Therefore, the warnings in this user's manual and the warning labels attached to this
product do not necessarily cover all such possible situations and cases. The customer is responsible for
correctly and safely using this product.
(6) The product covered by this document has not been through the process of checking conformance with UL or
other safety standards and IEC or other industry standards. This fact must be taken into account when the
product is taken from Japan to some other country.
(7) Renesas Electronics Corporation will not assume responsibility of direct or indirect damage caused by an
accidental failure or malfunction in this product.
When disposing of this product:
Penalties may be applicable for inco rrect disposal of this waste, in accordance with your national legislation.
R20UT2922EJ0400 Rev.4.00 Page 4 of 163
Oct 03, 2016
Page 5
PG-FP5 V2.15 PREFACE
Usage restrictions:
This product has been developed as a means of supporting system development by users. Therefore, do not use it as
an embedded device in other equipme nt. Also, do not use it to develop systems or equipment for use in the
following fields.
(1) Transportation and vehicular
(2) Medical (equipment that has an involvement in human life)
(3) Aerospace
(4) Nuclear power control
(5) Undersea repeaters
If you are considering the use of this product for one of the above purposes, please be sure to consult your local
distributor.
About product changes:
We are constantl y making efforts to improve the design and performance of our product. Therefore, the
specification or design of the product, or this user's manual, may be changed without prior notice.
About rights:
(1) We assume no responsibility for any damage or infringement on patent rights or any other rights arising from
the use of any information, products or circuits presented in this user’s manual.
(2) The information or data in this user’s manual do e s not implicitly or otherwise grant a license to patent right s or
any other rights belonging to Renesas or to a third party.
(3) This user’s man ual and this product are copyrighted, with all rights reserved by Renesas. This user’s manual
may not be copied, duplicated or reproduced, in whole or part, without prior written consent from Renesas.
About diagrams:
Some diagrams in this user’s manual may differ from the objects they represent.
R20UT2922EJ0400 Rev.4.00 Page 5 of 163
Oct 03, 2016
Page 6
PG-FP5 V2.15 PREFACE
means WARNING or CAUTION.
means PROHIBITION.
Example:
means A FORCIBLE ACTION.
Example:
Precautions for Safety
This chapter describes the precautions which should be taken in order to use this product safely a nd pr o perly. Be sure to
read and understand this chapter before using this product.
Contact us if you have any questions about the precautions described here.
This chapter describes the precautions which should be taken in order to use this product safely a nd pr o perly. Be sure to
read this chapter before using this product.
WARNING indicates a potentially dangerous situation that will cause death or heavy
WARNING
CAUTION
In addition to the two above, the following are also used as appropriate.
Example:
wound unless it is avoided.
CAUTION indicates a potentially danger ous situation that will cause a slight injury or
a medium-degree injury or property damage unless it is avoided.
CAUTION AGAINST AN ELECTRIC SHOCK
DISASSEMBLY PROHIBITED
UNPLUG THE POWER CABLE FROM THE RECEPTACLE.
R20UT2922EJ0400 Rev.4.00 Page 6 of 163
Oct 03, 2016
Page 7
PG-FP5 V2.15 PREFACE
WARNING
Warnings for AC Power Supply:
Warnings to Be Taken for Handling:
Warning for Installation:
Warning for Use temperature:
If the AC power cable of the optional AC adapter does not fit the receptacle, do not alter the AC power
cable and do not plug it forcibly. Failure to comply may cause electric shock and/or fire.
Use an AC power cable which complies with the safety standard of the country.
Do not touch the plug of the AC power cable when your hands are wet. This may cause electric shock.
This product is connected signal ground with frame ground. If yours developing product is transform-less
(not having isolation transformer of AC power), this may cause electric shock. Also, this may give an unrepairable damage to this product and yours developing product.
While developing, connect AC power of the product to commercial power through isolation transformer in
order to avoid these dangers.
If other equipment is connected to the same branch circuit, care should be taken not to overload the
circuit.
When installing this equipment, insure that a reliable ground connection is maintained.
If you smell a strange odor, hear an unusual sound, or see smoke coming from this product , then
disconnect power immediately by unplugging the AC power cable from the outlet.
Do not use this as it is because of the danger of electric shock and/or fire. In this case, contact your local
distributor.
Before setting up this product and connecting it to other devices, turn off power or remove a power cable
to prevent injury or product damage.
Do not modify this product. Personal injury due to electric shock may occur if this product is modified.
Modifying the product will void your warranty.
Do not set this product in water or areas of high humidity. Make sure that the product does not get wet.
Spilling water or some other liquid into the product may cause un-repairable damage.
Care should be taken that a maximum ambient temperature is not exceeded when this product is to be
used.
R20UT2922EJ0400 Rev.4.00 Page 7 of 163
Oct 03, 2016
Page 8
PG-FP5 V2.15 PREFACE
CAUTION
Cautions to Be Taken for the AC Adapter:
Cautions to Be Taken for Turning On the Power:
Cautions to Be Taken for Handling This Product:
Note on Transporting the Product:
Use only the optional dedicated AC adapter for this product.
Do not use the AC adapter for other equipment.
Observe the following specified order for the power-on and power-off procedures of the user system and
this product. Doing otherwise may cause the user system or t his product to fail.
Power ON: (1) This product power ON, (2) Use r system power ON, (3) Start programming GUI
Power OFF: (1) Exit programming GUI, (2) User system power OFF, (3) This product power OFF
Use caution when handling the product. Be careful not to apply a mechanical shock.
Do not touch the connector pins of this product and the target MCU connector pins directly. Static
electricity may damage the internal circuits.
When attaching and removing the cable, hold the plug of the cable and do not touch the cable. Do not pull
this product by the communications interface cable or the flexible cable. And, excessive flexing or force
may break conductors.
Do not use inch-size screws for this equipment. The screws used in this equipment are all ISO (metersize) type screws. When replacing screws, use same type screws as equipped before.
When sending your product for repair, use the packing box and cushioning material supplied with the
product when it was delivered to you and specify caution in handling (handling as precision equipment). If
packing of your product is not complete, it may be damaged during transportation. When you pack your
product in a bag, make sure to use the conductive plastic bag supplied with the product (usually a blue
bag). If you use a different bag, it may lead to further trouble with your product due to static electricity.
R20UT2922EJ0400 Rev.4.00 Page 8 of 163
Oct 03, 2016
Page 9
PG-FP5 V2.15 PREFACE
CAUTION
Caution to Be Taken for System Malfunctions:
Caution to Be Taken for Disposal:
European Union regulatory notices:
If this product malfunctions because of interference like external noise, do the following to remedy the
trouble.
(1) Exit the programming GUI, and shut OFF this product and the user system.
(2) After a lapse of 10 seconds, turn ON the power of this product and the user system again, then launch
the programming GUI.
Penalties may be applicable for incorrect disposal of this waste, in accordance with your national
legislation.
The WEEE (Waste Electrical and Electronic Equipment) regulations put responsibilities on producers for
the collection and recycling or disposal of electrical and electronic waste. Return of WEEE under these
regulations is applicable in the European Uni on only . This eq uipm ent (inc lud ing all acce sso ries) is not
intended for household use. After use the equipment cannot be disposed of as household waste, and the
WEEE must be treated, recycled and disposed of in an environme ntal ly sound man ner.
Renesas Electronics Europe GmbH can take back end of life equipment, register for this service at
“http://www.renesas.eu/weee”.
R20UT2922EJ0400 Rev.4.00 Page 9 of 163
Oct 03, 2016
Important .................................................................................................................................................... 4
Precautions for Safety ................................................................................................................................ 6
Term replacement ..................................................................................................................................... 14
1.1. Features ............................................................................................................................................ 15
5.4. External Connection Example ........................................................................................................... 52
6. USAGE COMMUNICATION COMMANDS .................................................................................................. 53
6.1. Starting the Communications Software ............................................................................................. 53
6.2. Command List ................................................................................................................................... 55
6.3. Description of Commands ................................................................................................................. 57
6.4. Description of FP5 Control Commands ............................................................................................. 58
7. CONNECTORS AND CABLES.................................................................................................................. 100
7.1. Power Supply Connector ................................................................................................................. 100
7.2. Serial Connector .............................................................................................................................. 101
7.2.1. Serial cable............................................................................................................................ 101
7.3. USB Connector................................................................................................................................ 102
7.3.1. USB cable ............................................................................................................................. 102
7.4. T arget Connector ............................................................................................................................. 103
10.1. Problems During Startup ............................................................................................................... 125
10.2. Problems During Operation ........................................................................................................... 126
1 1. MAINTENANCE AND WARRANTY ......................................................................................................... 129
11.1. Ma inte na nce .................................................................................................................................. 129
R20UT2922EJ0400 Rev.4.00 Page 12 of 163
Oct 03, 2016
Page 13
PG-FP5 V2.15 PREFACE
Term
Meaning
FP5
Abbreviation of the flash memory programmer PG-FP5
Target system
User-designed board on which target device is mounted
ESF file
Abbreviation of the setting file fo r the PG-FP5.
The program file is the program written to the microcontroller. For the FP5, the following
HEX file
A HEX file of Intel HEX format type or Motorola HEX format type without option data
DDI file
File in which data in multiple flash areas generated by Flash Development Toolkit is
Flash Development Toolkit
Flash Development Toolkit is a software to write in the flash memory of the Renesas
Terminology
The meaning s of the terms used in FP5 manual are as follows.
(1)
Programming GUI Windows application to operate FP5 using programming GUI
Target device Renesas Electronics on-chip flash memory microcontroller
.
Program adaptor
Note1
Conversion adaptor to write programs to target device
PR5 file Abbreviation of the parameter file for the PG-FP5.
The parameter file has parameter information required to write in the flash memory of
the target microcontroller. The extension of the file is "*.pr5". Do not change the data in
the file. If the file is changed, operation of the FP5 is not guaranteed.
The setting file stores information required for writing. For the FP5, settings regarding
the writing environment such as target devices and operation option are stored. The
extension of the file is "*.esf". Do not change the data in the file. If the file is changed,
operation of the FP5 is not guaranteed.
Note Use ESF files that correspond to the version of the generated FP5. An error
occurs when the FP5 reads files from other FP5 versions. In such cases, create
new ESF files.
Program file
file formats are supported.
<RL78, 78K, V850>
a. Intel HEX format HEX file
b. Intel HEX format HCUHEX file
c. Motorola S format HEX file
d. Motorola S format HCUHEX file
<RX family, SuperH family>
a. Intel HEX format HEX file
b. Motorola S format HEX file
c. DDI file
<RH850 family, SuperH family>
a. Intel HEX format HEX file
b. Motorola S format HEX file
Note Addresses may not be consecutive, but they must be in ascending order. Free
space will be filled with "FFH" upon download to the FP5. When download is
performed with the programming GUI, it has the function to sort addresses in
ascending order.
Note For details on the formats, refer to "How to Order ROM Code: Information
(C10302E)."
Note The program file name does not support 2-byte characters.
Flash options*3 General term for microcontroller operation settings such as security settings
Option data*3 General term for flash options, wide-voltage mode, and full-speed mode
Note2
HCUHEX file A HEX file that integrates option data into a HEX file generated by using the HEX
Consolidation Utility (HCU), which is used to generate ROM code for flash memory
products whose flash memories are pre-written by Renesas Electronics
integrated.
microcontroller with on-chip flash. For details, refer to the following websites.
https://www.renesas.com/fdt
R20UT2922EJ0400 Rev.4.00 Page 13 of 163
Oct 03, 2016
Page 14
PG-FP5 V2.15 PREFACE
Authentication code used in the ID authentication mode and in OCD. For details, refer to
(2)
Term Meaning.
INI file File in which settings of the programming GUI are stored. The file is saved when the
programming GUI is closed. The file name is "FP5.ini".
OCD security ID*3 Abbreviation of the on-chip debug security ID. Security function for on-chip debugging
of the microcontroller.
ID code*3
the user’s manual of the microcontroller.
Lock bit*3 One of the security functions of the microcontroller. For details, refer to the user’s
manual of the microcontroller.
Signature Information about the microcontr oll er (microcontroller name, firmware version)
FINE Supports FINE of the RX100 and RX200.
ID authentication mode*3 One of the security functions of the microcontroller. For details, refer to the user’s
manual of the microcontroller.
Command protection
*3
mode
OTP*3 One of the security functions of the microcontroller. For details, refer to the user’s
OFS*3 One of the security functions of the microcontroller. For details, refer to the user’s
Trusted Memory*3 One of the security functions of the microcontroller. For details, refer to the user’s
Option-Setting Memory*3 Collective term for registers that determine the state of the MCU after release from
Notes 1. The program adaptor (FA-xxxx) is a product of Naito Densei Machida Mfg. Co., Ltd.
If you have any questions about the FA adaptor board, contact Naito Densei Machida Mfg. Co., Ltd. (Tel:
+81-42-750-4172).
2. The functions that can be used differ depending on the target device.
3. Refer to the user’s manual of the target device for more inf or mati on.
One of the security functions of the microcontroller. For details, refer to the user’s
manual of the microcontroller.
manual of the microcontroller.
manual of the microcontroller.
manual of the microcontroller.
reset. For details, refer to the user’s manual of the microcontroller.
Note If a program file includes valid data for any register in the the option-setting
memory area, the option-setting memory is set. All bits in sections for which there
are no data are filled with“1”.
Term replacement
When the RX100, RX200 is used, some terms in this manual should be replaced as shown in the table below.
Term Meaning.
Get Flash options Access window read
Set Security Access window program
All trademarks and registered trademarks are the property of the respective owner.
R20UT2922EJ0400 Rev.4.00 Page 14 of 163
Oct 03, 2016
Page 15
PG-FP5 V2.15 OVERVIEW
1. OVERVIEW
The FP5 is a tool that erases, writes and verifies programs on a Renesas Electronics on-chip flash memory
microcontroller on the target system.
1.1. Features
• Compatible with remote operation for FP5 from an external control device
• Compatible with communications commands operated by the FP5 command through RS-232C
• The customization and security settings of the FP5 unit can be changed with the FP5 Manager functio n
• Supports flash memory programming through the programming GUI using the host PC (programming GUI
operation) and operation in standalone (standalone operation)
• Supports on-board programming through whic h programs are writ ten with the target device mounted on the target
system
• Program files can be saved in the 16 MB flash memory in the FP5 (divided by 1, in 16 MB uni ts, divided by 2, in 10
MB and 6 MB units, divided by 4, in 4 MB units or divided by 8, in 2 MB units)
• Device-specific parameters required for programming can be saved in the FP5 internal flash memory by using the
parameter file (PR5 file), together with programming settings (ESF file).
• Multiple program files, PR5 files and ESF files can be saved
• Supports CSI, CSI + HS, UART, I
• Can supply VDD and clocks to the target device
• Supports USB interface and serial interface (RS-232C) as a host interface
• Supports self-testing function
• Programming a unique code to a designated area of flash memory
1.2. Writing Quality
2
C and PORT as target device interfaces
Thoroughly confirm, verify and evaluate the following points before using the FP5, in order to improve the writing
quality.
• Design circuits as described in the user’s manual for the target device and the FP5.
• Use the device and the FP5 as described in the user’s manual for each product.
• The power supplied to the target device is stable.
1.3. Supported Devices
The FP5 supports on-chi p 2-power-supply flash memory microcontrollers and on-chip single-power-suppl y flas h
memory microcontrollers.
FP5 parameter files (PR5 files) corresponding to the supported devices are posted on the following website.
URLs
• Except for Europe area: https://www.renesas.com/pg_fp5
• For Europe area: http://www.renesas.eu/update → Section PG-FP5-EE
R20UT2922EJ0400 Rev.4.00 Page 15 of 163
Oct 03, 2016
Page 16
PG-FP5 V2.15 OVERVIEW
Item
Quantity.
List of Package
1
GND cable
1
Checksum calculation
or
Communications
command operation
External control
devices
Remote Operation
Manager function
(passwords, security,
customization, etc.)
setting
Saving log files
Target cable
Serial cable
AC adapter
GND cable
Target system
Saved in FP5 internal
flash memory
HEX editor changes
the memory contents
16MB
Built-in 16 MB flash memory for
Standalone operation
Downloading
INI file
Programming GUI operation
Self-testing function
Buzzer fun ction
USB cable
Host PC
PR5 file
ESF file
Programming environment
setting
command
1.4. Package Components
The package of this product includes the items listed below. Check the items. Note that the package for the PG-FP5
does not include an AC adaptor. Purchase an adaptor separately (refer to 1.8 AC Adaptors for PG-FP5).
Table 1.1 Package Components
PG-FP5 1
USB cable 1
Serial cable 1
Target cable (16pin type) 1
Target cable (14pin type) 1
PG-FP5 Setup Manual [Japanese / English] 1
Table of Toxic and Hazardous Substance and Elements 1
EMC regulation ( FCC) 1
1.5. FP5 System Overview
The FP5 system overview is shown in the following diagrams.
program files
saving program files
Figure 1.1 FP5 Connection Image
R20UT2922EJ0400 Rev.4.00 Page 16 of 163
Oct 03, 2016
Page 17
PG-FP5 V2.15 OVERVIEW
<Programming GUI operat ion>
The following operations can be performed with the programming GUI. For USB connection, the USB driver must be
installed. The settings on the host PC are saved in an INI file.
• ESF file creation
• Downloading program files, PR5 files and ESF files (saved into FP5 internal flash memory)
• Saving log fil es
• Editing program files (by using HEX ed itor)
• Checksum calculation
• Programming c ommand execut ion
• Execution of self-testing funct io n
• Manager function (passwords, security, customization, etc.) setting
<Standalone operation>
The FP5 can operate in standalone mode, whereby commands such as [Erase], [Program] and [Autoprocedure(E.P.)] can
be executed wit ho ut usi n g the ho st PC. It is suitable for use in production lines during mass production or upgrading
programs in the field.
The following can be performed in standalone operation.
• Execute programming command
• Confirm contents of each downloaded file
<Communications Command Op e ration>
FP5 can be operated by communications commands from the host PC.
<Remote Operation>
Writing and PASS/ERROR displays can be operated and confirmed from external control devices.
<FP5 internal flash memory>
The FP5 has a 16 MB flash memory area for saving program files. This me mory area can be used as two programming
areas of 10 MB and 6 MB (Area 0 to Area 1), four 4 MB programming areas (Area 0 to Area 3), or eight independent 2
MB programming areas (Area 0 to Area 7). Program files can be downloaded to each programming area, and which file,
PR5 or ESF, is to be saved is selectable in programming area units. That is, files can be ind ivid ually downloaded in
each programming area, and the area used can also be selected individually. Program files, PR5 files and ESF files are
retained even if the FP5 powe r is turned off.
Downloaded data will be self-tested for acc uracy when the FP5 is started, dur ing downloads and when programming
areas are changed.
<Notification function>
When Autoprocedure (E.P.) is executed, whether execution is completed normally is indica ted b y beeps.
<Checksum calculation>
Checksum calculation for the download program files is possible.
R20UT2922EJ0400 Rev.4.00 Page 17 of 163
Oct 03, 2016
Page 18
PG-FP5 V2.15 OVERVIEW
1.6. Operating Environment
1.6.1. Hardware environment
(1) Host PCs
• PC/AT compatible
• Equipped with USB 2.0 ports (compatible with 1.1)
• Equipped with RS-232C serial ports
1.6.2. Software environment
(1) OS (either of the following)
• Windows 7 (32-bit edition, 64-bit edition)
• Windows 8.1 (32-bit edition, 64-bit edition)
• Windows 10 (32-bit ed ition, 64-bit edition)
• Microsoft .NET Framework 4
• Microsoft Visual C++ 2010 Redistributable Package (x86)
• Internet Explorer 6.0 or later
R20UT2922EJ0400 Rev.4.00 Page 18 of 163
Oct 03, 2016
Page 19
PG-FP5 V2.15 OVERVIEW
Hardware
Items
Specifications
FP5 main
Operating power
Supplied via AC adaptor (15 V)
1.7. Hardware Specif icat i o ns
Table 1.2 Hardware Specifications
unit
supply
Operating environment
ccondition
Storage environment
ccondition
Temperature: ±0 to +40°C
Humidity: 10% to 80% RH (no condensation)
Temperature: −15 to +60°C
Humidity: 10% to 80% RH (no condensation)
Package size 140 × 90 × 30 mm (not including projections)
Weight Approximately 230 g
Internal flash memory Program file save area (16 MB)
Other (PR5 file save area, ESF file saved area, firmware area, and FPGA area)
Operation mode Programming GUI operation, standalone operation, remote operation,
communication command operation
AC adaptor Specifications AC adaptors used in each region
Host PC
interface
Target host PC PC/AT compatible
USB connector Type mini-B, USB 2.0 (compatible with 1.1)
Note 3
USB cable Approximately 2 m
Serial connector 9-pin D-SUB male connector for RS-232C @ 9600, 19200, 38400, 57600,
115200 bps
Serial cable Approximately 3 m (cros s cabl e)
Protected function: Internal over-voltage input protecti on circ uit
Target cable Two cables: 16-pin type and 14-pin type. Cable length: Approximately 42 cm
Power supply
Power supply
Notes 1. The maximum communication speed in the interface may vary depending on the device and environment
used.
2. V
DD for the target system is supplied for the purpose of supplying power to the target device through which
writing is performed, so the specification cannot secure sufficient capacity to operate the target system. Use
the power source on the target system when performing on-board programming.
3. The AC adaptor differs depending on the region where the product is being used. For details, see Table 1.3
AC Adaptors for PG-FP5 Used in Each Region. An AC adaptor is required when using the PG-FP5, so
be sure to purchase an AC adaptor.
R20UT2922EJ0400 Rev.4.00 Page 19 of 163
Oct 03, 2016
Page 20
PG-FP5 V2.15 OVERVIEW
Name
Region
Notes 1, 2
Part Number
Note 3
Korea
QB-COMMON-PW-KR
PR5 file
ESF file
HEX file
HCU
HCUHEX
file
Operation
verified on
PG
Target system
HCUHEX file submitted for
ordering pre
memory products
1.8. AC Adaptors for PG-FP5
The specifications of the AC adaptor for the PG-FP5 differ depending on the region where the product is being used.
Be sure to use the appropriate AC adaptor for your region. Note that an AC adaptor is not included with the PG-FP5.
The appropriate AC adaptor must be purchased separately.
Table 1.3 AC Adaptors for PG-FP5 Used in Each Region
AC adaptor
(sold separately)
Notes 1. The AC adaptor corresponding to the region from which the order was received will be shipped.
2. For regions other than those listed above, please contact a Renesas Electronics sales rep resen tat ive or
distributor.
3. You can only order the AC adaptor that can be used in your region.
Japan QB-COMMON-PW-JP
USA QB-COMMON-PW-EA
China QB-COMMON-PW-CN
Hong Kong QB-COMMON-PW-HK
Singapore QB-COMMON-PW-SG
Chinese Taipei QB-COMMON-PW-TW
1.9. HCUHEX Files
HCUHEX files are files that are required when ordering flash memory products whose flash memories are pre-written
by Renesas Electr onics. HCUHEX files are generated by the HEX Consolidation Utility (HCU), after which they must
be verified on a flash memory programmer before being submitted. The PG-FP5 handles HCUHEX files as master data,
and can therefore be used to check the written data and the option data settings. HCUHEX files are supported in part of
the RL78, 78K0, 78K0R, V850. If they are supported, it is described in the user's manual of the target microcontroller
(the SuperH, RX, R8C, and RH850 do not support HCUHEX files). For details, see the functional descriptions in this
manual. For more information about HCU, see the HCU user's manual or the manual of the target device. The
following websites describe de ta ils about HCU.
• Websites
• Japanese version: https://www.renesas.com/ja-jp/hcu
Figure 1.2 PG-FP5 Connection Diagram
R20UT2922EJ0400 Rev.4.00 Page 20 of 163
Oct 03, 2016
-written flash
-FP5
Page 21
PG-FP5 V2.15 OVERVIEW
1.10. Regulatory Compliance Notices
This equipment 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 his responsibility.
EEDT-ST-001-11
CAUTION
This equipment should be handled like a CMOS semiconductor device. The user must take all precautions to avoid
build-up of static electricity while working with this equipment. All test and measurement tool including the workbench
must be grounded. The user/operator must be grounded using the wrist strap. The connectors and/or device pins
should not be touched with bare hands.
EEDT-ST-004-10
For customers in the European Union only
Redemption of Waste Electrical and Electronic Equipment (WEEE) in accordance with legal
regulations applicable in the European Union only: This equipment (including all accessories) is not
intended for household use. After use the equipment cannot be disposed of as household waste.
Renesas Electronics Europe GmbH offers to take back the equipment. All you need to do is register
at http://www.renesas.eu/weee.
R20UT2922EJ0400 Rev.4.00 Page 21 of 163
Oct 03, 2016
Page 22
PG-FP5 V2.15 OVERVIEW
limits are designed to provide reasonable protection against harmful interference when the
EMC regulation ( FCC)
FCC Certifications:
Note: This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part
15 of the FCC Rules. These
equipment is operated in a commercial environment. This equipment generates, uses and can radiate radio frequency
energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to
radio communications. Operation of this equipment in a residential area is likely to cause harmful interference in which
case the user will be required to correct the interference at his own expense. Modifications not expressly approved by
the manufacturer could void the user's authority to operated the equipment under FCC rules.
CAUTION: When you use the product which need AC adapter, please use AC adapter which comply with the standard
of FCC, indicated by User’s Manual.
R20UT2922EJ0400 Rev.4.00 Page 22 of 163
Oct 03, 2016
Page 23
PG-FP5 V2.15 HARDWARE CONFIGURATION
External control
devices
Target cable
Serial cable
AC adaptor
GND cable
Target system
USB cable
Host PC
FP5
or
2. HARDWARE CONFIGURATION
This chapter explains the hardware configuration.
2.1. System Configuration
The FP5 system configuration is as shown in the diagram below.
Figure 2.1 FP5 System Configuration
The FP5 is connected to the host PC via a serial cable or a USB cable. The FP5 is connected to the target system via a
target cable and a GND cable. And the FP5 can be remote controlled by connecting the remote connector and external
control device.
2.1.1. Host PC
A host PC is used to communicate with the FP5. The host PC must also be equipped with a serial port or a USB port.
2.1.2. Serial cable
Communication is established by using a serial cable to connect the host PC serial port and FP5 serial connector (RS232C cross cable) connection. For details on the serial cable specifications, refer to 7 CONNECTORS AND CABLES
2.1.3. USB cable
Communication is established by connecting the host PC USB port and the FP5 USB connector (mini-B type) us ing a
USB cable. For details on the USB cable specifications, refer to 7 CONNECTORS AND CABLES.
2.1.4. AC adaptor
Connect the FP5 power supply connector to the AC adaptor included with the FP5. The AC adaptor differs depending
on the region where the product is being used. For details, see Table 1.3 AC Adaptors for PG-FP5 Used in Each
Region. An AC adaptor is required when usi ng the PG-FP5, so be sure to purchase an AC adaptor.
2.1.5. Target cable
A 16-pin connector or 14-pin connector is equipped on the tip of the target cable, which is connected to the target
system or the program adaptor. For details on the target cable specifications, refer to 7 CONNECTORS AND CABLES.
R20UT2922EJ0400 Rev.4.00 Page 23 of 163
Oct 03, 2016
Page 24
PG-FP5 V2.15 HARDWARE CONFIGURATION
2.1.6. GND cable
To reinforce the GND, use a GND cable to connect the FP5 GND connector and the signal GND of the target system or
program adaptor. For d etails on the GND cable specifications, refer to 7 CONNECTORS AND CABLES.
Note The FP5 and target system may be damaged if the voltage between the FP5 GND and the target system GND is
different. Use the GND cable to match the voltage before connecting the target cable.
2.1.7. Target system
The target system must be equipped with a device interface that complies with the target cable specifications. For
details on the specifications, refer to 7 CONNECTORS AND CABLES, 8 NOTES ON TARGET SYSTEM DESIGN,
and 9 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS.
2.1.8. Program adaptor
The FP5 supports off-board programming through which programs are written via a program adaptor without mounting
the target device onto the target system.
R20UT2922EJ0400 Rev.4.00 Page 24 of 163
Oct 03, 2016
Page 25
PG-FP5 V2.15 HARDWARE CONFIGURATION
POWER LED
LED that displays the FP5 power stat us.
Message display
An LCD display of 16 × 2-characters that indicates the operating mode or menus.
Status LEDs
LEDs that show the FP5 operating status.
POWER button
Used to turn on/off the power to the FP 5. Press this button longer (for about 1 minute)
NEXT button
Proceeds to the next menu item at the same level in sequence.
ENTER button
Selects the item shown in the message display.
CANCEL button
Cancels the current selection and returns to the previous menu item. The command
START button
Executes the [Autoprocedure(E.P.)] command with a valid programming area setting.
Control buttons
Status LEDs
Message display
POWER button
POWER LED
2.2. Names and Functions on Main Unit
This section describes the names and functions on the FP5 main unit.
2.2.1. FP5 control panel
Indicators and buttons are laid out on the FP5 top.
Figure 2.2 FP5 Top View <Control Panel>
(1) Indicators
•
A red LED is turned on when the F P5 is ON, and is turned off when the F P5 is OFF.
•
It is mainly used when the FP5 operates in standalone mode.
•
PASS (gree n LED turned on) indicates normal completion, BU SY (orange LED flashes)
indicates processing in progress, and ERROR (red LED turned on) indicates abnormal
completion.
(2) Buttons
•
when turning on/off.
•
•
•
currently running cannot be stopped, except for the [Read] command.
•
Note The NEXT, ENTER, CANCEL and START buttons are mainly used in standalone mode.
When the FP5 Manager is used to switch to the bank mode or simple mode, the button functions and message
display functions will change. Refer to each microcontroller edition 1.3.2 [FP5 Manager] command and 5
USAGE THE REMOTE CONNECTOR.
R20UT2922EJ0400 Rev.4.00 Page 25 of 163
Oct 03, 2016
Page 26
PG-FP5 V2.15 HARDWARE CONFIGURATION
Target connector
GND
connector
Remote connector
Power supply connector
USB connector
Serial con nector
USB connector
Serial con nector
Power supply connector
Target connector
GND connector
Remote connector
2.2.2. FP5 connectors
The power supply connector, serial connector and USB connector are laid out on the host interface side.
The target connector, GND connector and remote connector are laid out on the target connector side.
Figure 2.3 FP5 Top View <Connector>
Figure 2.4 FP5 Host Interface Side
Figure 2.5 FP5 Target Connector Side
R20UT2922EJ0400 Rev.4.00 Page 26 of 163
Oct 03, 2016
Page 27
PG-FP5 V2.15 HARDWARE CONFIGURATION
(1) Power supply connector
Connect the power supply connector to the AC adaptor included with the FP5. For details on the power supply
connector specifications, refer to 7 CONNECTORS AND CABLES.
Note Do not use an AC adaptor other than that included with the PG-FP5.
(2) Serial connector
Communication is established by using a serial cable (RS-232C cross cable) connection to connect the host PC
serial port and FP5 serial connector. The data transfer conditions are as follows.
• Data transfer speed: 9,600 bps, 19,200 bps, 38,400 bps, 57,600 bps, or 115,200 bps
• Data bit: 8 bits
• Parity: none
• Stop bit: 1 bit
• Flow control: hardware
The transfer speed is set to 9,600 bps by default, but it can be changed. For details on the serial connector
specifications, refer to 7 CONNECTORS AND CABLES.
(3) USB connector
Communication is established by using a USB cable to connect the host PC USB port and the FP5 USB connector
(mini-B type). This connector conforms with USB 2.0 standards. For details on the USB connector specifications,
refer to 7 CONNECTORS AND CABLES.
(4) Target connector
Connect the target connector to the target system using the target cable for on-board programming. Connect the
target connector to the program adaptor using the target cable for off-board programming. For details on the target
connector specifications, refer to 7 CONNECTORS AND CABLES.
(5) GND connector
To reinforce the GND, connect the FP5 GND connector and the signal GND of the target system or program adaptor
using a GND cable. For details on the GND connector specifications, refer to 7 CONNECTORS AND CABLES.
Note The FP5 and target system may be damaged if the voltage between the FP5 GND and the target system GND is
different. Use the GND cable to match the voltage before connec ting the targ et cabl e.
(6) Remote connector
The FP5 can be remote controlled by connecting the remote connector and external control device. For details on
the Remote operation, refer to 5 USAGE THE REMOTE CONNECTOR, 7 CONNECTORS AND CABLES.
R20UT2922EJ0400 Rev.4.00 Page 27 of 163
Oct 03, 2016
Page 28
PG-FP5 V2.15 SOFTWARE INSTALLATION
Installation Order
Item
Method
1
Programming
Run the downloaded executable file (PG-FP5_Package_Vxxx.exe) and perform
A *.pr5 file is decompressed into
\Program Files
C:\
\Renesas Electronics
\Programming Tools
\PG
-FP5 V2.07
[FP5.exe]
\Doc
\PG-FP5 V2.0
8
Folder specified as the installation destination (C:\Program Files\Common Files (x86)\Renesas
Electronics for the 64-bit version of Windows)
Folder where programming GUI is stored
Folder where documents are stored
USB driver storage folder (
\USB_Driver_x64 for the 64-bit version of Windows)
\MCU Tools Drivers
\PG-FP5
3. SOFTWARE I NS TALLATION
This chapter explains the software i nstallation.
3.1. Obtaining Software
Download t he programming G UI, USB driver, and FP5 parameter file (PR5 file) from the following Renesas
Electronics website.
URLs
• Except for Europe area: https://www.renesas.com/pg_fp5
• For Europe area: http://www.renesas.eu/update → Section PG-FP5-EE
Note Use of the latest version of software is recommended to assure the FP5 operation.
3.2. Installation
This section explains the insta lla tion procedure for the programming GUI, USB driver a nd parameter file (PR5 file).
Table 3.1 Installation
GUI, USB driver
2 PR5 file Decompress the downloaded file to any folder.
installation, following the directions on the installer screen. After installation, the
USB driver detects the FP5 by plug-and-play, and it is automatically added.
any folder, so copy it to the FP5_PRJ folder where the programming GUI is
installed.
The folder configuration after programming GUI installation is as follows.
R20UT2922EJ0400 Rev.4.00 Page 28 of 163
Oct 03, 2016
Page 29
PG-FP5 V2.15 SOFTWARE INSTALLATION
3.2.1. Notes on installation
(1) Multiple versions of the PG-FP5 can be installed on a single host PC. Although we recommend using the lates t
version of a ny development tool, leaving a previous version on your host PC and then installing the latest version
lets you easily switch the development environment.
(2) You might be asked to reboot your computer after installing the PG-FP5. Be sure to close all other applications
before rebooting your computer.
(3) You must have administrator privileges to install the PG-FP5.
(4) The PG-FP5 can only be installed in a folder that is named using ASCII characters. (Note that the 11 characters /
* : < > ? | " \ ; , and character strings that begin and end with a space cannot be used.) The PG-FP5 might not
operate correctly if installed in a folder that is named using other characters.
(5) The PG-FP5 cannot be ins talled from a net work drive or on a network drive.
(6) The installer does not specify environment variable paths. If these path s are required, add them after installation.
(7) The Microsoft .NET Framework and the Microsoft Visual C++ runtime libraries are required to run the installer. If
the Microsoft .NET Framework or the Microsoft Visual C++ runtime libraries are no t installed, the programming
GUI will install them.
(8) Make sure that your host PC is connected to the network before instal ling the program. If you wish to install the
program on a host PC that is n ot connected to the network, first go to the Microsoft Download Center a nd install
the Microsoft .NET Framework 4 b e fore installing programming GUI.
(9) If the installer is started on a non-Japane se version of Windows, then if the path contains mul ti-byte characters it
will cause an err or, and the installer will not start.
(10) The following folders created after installation (including the files under the folders) contain files required for the
tools to operate. Do not delete them.
(Windows is t he 32-bit edition and the system drive is C:)
C:\Program Files\Common Files\Renesas Electronics CubeSuite+\
(Windows is t he 64-bit edition and the system drive is C:)
C:\Program Files\Common Files (x86)\Renesas Electronics CubeSuite+\
(11) To change the folder of the installed tools, uninstall all the CS+ related software and the programming GUI for
PG-FP5, and instal l them again.
(12) In the environment where the programming GUI for CS+ and PG-FP5 and USB driver for PG-FP5 are installed,
the programming GUI for PG -FP5 and USB driver for PG-FP5 are included in the target software of the CS+
integrated uninstaller. If you don’t want to delete them, remove them from the uninstallation targets.
(13) If a CS+ instance launched via Rapid Start is in the notification are a (system tray) during installation, the following
error will appear. Exit the applica tion, and run the installer again.
R20UT2922EJ0400 Rev.4.00 Page 29 of 163
Oct 03, 2016
Page 30
PG-FP5 V2.15 SOFTWARE INSTALLATION
Item
Method
Programming
Open [Add or Remove Programs] on the Control Panel and uninstall this program. The names are
3.3. Uninstallation
This section explains how to uninstall the programming GUI, USB driver, parameter file (PR5 file), customized setup
file (ESF file) and setting information file (INI file). The uninstallation order is prescribed.
Table 3.2 Uninstallation
GUI, USB driver
PR5 file Delete PR5 files (*.pr5) stored in the FP5_PRJ folder in the programming GUI instal lation folder.
ESF file Delete ESF files (*.esf) s tored in the FP5_PRJ folder in the programming GUI installation folder, or
[PG-FP5 Vx.xx] and [USB Driver x86T for Renesas MCU Tools] (or [USB Driver x64 for Renesas
MCU Tools]). Parameter files (*.pr5), setting files (*.esf), and INI file (FP5.ini) are not deleted.
other folder.
3.4. Updating Programming GUI, Firmware and FPGA
The firmware and FPGA are programs embedded in the device for controlling the FP 5 . Updating the progr amming GUI,
firmware and FPGA enables the following.
• Addition of newly supported functions or devices
• Correction of restrictions
Use of the latest versions of the programming GUI, firmware and FPGA are recommended to assure the FP5 operation.
The latest versions are available on the following websites.
URLs
• Except for Europe area: https://www.renesas.com/pg_fp5
• For Europe area: http://www.renesas.eu/update → Section PG-FP5-EE
Note If update of firmware and FPGA is improperly performed, FP5 may no longer operate. Refer to the following
procedure or method for updating.
Note If the firmware or FPGA is updated, the PR5 file, ESF file or program file may be deleted. In such cases,
download the PR5 file, ESF file or program file again.
Be sure to follow the procedure below when updating the firmware and FPGA.
1. Check the current version. (Refer to 3.4.1 Checking the current version.)
2. If not the latest version, update the programming GUI. (Refer to 3.4.2 Installation of programming GUI.)
3. Update the firmware using the latest programming GUI. (Refer to 3.4.3 Installation of firmware update.)
4. Update the FPGA using the programming GUI. (Refer to 3.4.4 Installation of FPGA update.)
3.4.1. Checking the current version
(1) Open the main window of the programming GUI. (Refer to each microcontroller edition 1.1 Introduction.)
(2) Check the versions of the programming GUI, firmware and FPGA, as shown below.
Programming GUI: [Help] menu → [About]
Firmware: [Programmer] menu → [Reset] command
FPGA: [Programmer] menu → [Reset] command
Note Display example of [Reset] command
Firmware Version Vx.xx
Board H/W Vx, FPGA Vx
Serial No.: XXXXXXXXXX
Standard mode usecured
←Firmware version
←FPGA version
Note
Note
(3) The latest versions are available on the following websites.
URLs
• Except for Europe area: https://www.renesas.com/pg_fp5
• For Europe area: http://www.renesas.eu/update → Section PG-FP5-EE
R20UT2922EJ0400 Rev.4.00 Page 30 of 163
Oct 03, 2016
Page 31
PG-FP5 V2.15 SOFTWARE INSTALLATION
3.4.2. Installation of programming GUI
Run the downloaded executable file (PG-FP5_Package_Vxxx.exe). Perform installation, following the directions on
the installer screen.
3.4.3. Installation of firmware update
Install the latest firmware by using the latest programming GUI. Decompress the file to any folder. The firmware file
“fp5_fw_vxxx.rec” will be decompressed to the selected folder. (“xxx” indicates the firmware version.)
(1) Click the [Programmer] menu on the menu bar and select [Update Firmware]; the [Update Firmware] dialog box
will then be opened.
Figure 3.1 [Update Firmware] Command
Figure 3.2 [Update Firmware] Dialog Box
R20UT2922EJ0400 Rev.4.00 Page 31 of 163
Oct 03, 2016
Page 32
PG-FP5 V2.15 SOFTWARE INSTALLATION
(2)Click the OK button t o continue firmware update. The [Open firmware file] dialog box is opened.
Figure 3.3 [Open firmware f ile] Dialog Box
Select the firmware file “fp5_fw_vxxx.rec” and then click the Open button.
Note 1. Do not use FP5 firmware other than the one posted on the website; otherwise, a defect may occur.
2. When a firmware of FP5 updates from V2.00 to V1.xx, a serial number of FP5 is erased. And, FP5 can't
operate in USB1.1. In addition, the other functions don't have any problem. When FP5 revives, consult a
Renesas Electronics sales representative or distributor.
R20UT2922EJ0400 Rev.4.00 Page 32 of 163
Oct 03, 2016
Page 33
PG-FP5 V2.15 SOFTWARE INSTALLATION
(3) Some commands are sent to the FP5 and the update progress status is displayed in the action log window. The
message “Firmware Update succeeds”, which indicates normal completion of firmware update, and “Restarting
FP5..”, which is equivalent t o [RESET] command processing, is automatically performed. The new version can
then be checked as “Firmware Version Vx.xx”. The update takes about 10 seconds.
Note The action log window is a part of the main window of the programming GUI, which shows the operation
progress status.
Figure 3.4 Action Log Window When Firmware Update Is Finished
Note Depending on the changes made, the following dialog box will be displayed. In this case, the information stored
in the FP5 (PR5 file, ESF file, program file) will have been deleted, so please download those files again. (Refer
to each microcontroller edition 1.2 Startup of Programming GUI.)
R20UT2922EJ0400 Rev.4.00 Page 33 of 163
Oct 03, 2016
Page 34
PG-FP5 V2.15 SOFTWARE INSTALLATION
3.4.4. Installation of FPGA update
Install the latest FPGA by using the latest programming GUI. De c ompress the file to any folder. The FPGA file
“fp5_fpga_vx.rec” will then be decompressed into the folder, so copy it to any folder. (“x” indicates the FPGA
version.)
(1) Click the [Programmer] menu on the menu bar and select [Update FPGA]; the [Update FPGA] dialog box will then
be opened.
Figure 3.5 [Update FPGA] Command
Figure 3.6 [Update FPGA] Dialog Box
R20UT2922EJ0400 Rev.4.00 Page 34 of 163
Oct 03, 2016
Page 35
PG-FP5 V2.15 SOFTWARE INSTALLATION
(2)Click the OK button to continue FPGA update. The [Open FPGA file] dialog box is opened.
Figure 3.7 [Open FPGA file] Dialog Box
Select the FPGA file “fp5_fpga_vx.rec” and then c lick the Open button.
Note Do not use an FP5 FPGA other than the one posted on the website; otherwise, a defect may occur.
R20UT2922EJ0400 Rev.4.00 Page 35 of 163
Oct 03, 2016
Page 36
PG-FP5 V2.15 SOFTWARE INSTALLATION
(3) Some commands are sent to the FP5 and the update progress status is displayed in the action log window. The
message “FPGA Update succeeded”, which indicates normal completion o f firmware update, and “FP5 Power will
be switched OFF now.....”, which is equivale nt to processing when the POWER button is turned off, is
automatically executed. The update takes about 30 seconds.
Figure 3.8 Action Log Window When FPGA Update Is Fini she d
(4) Click the OK button in the error message dialog box and then press the POWER button on the FP5 to turn on
power.
R20UT2922EJ0400 Rev.4.00 Page 36 of 163
Oct 03, 2016
Page 37
PG-FP5 V2.15 SOFTWARE INSTALLATION
(5) Click the [Programmer] menu on the menu bar and select [Setup host connection...] ; the [ Host Connection] dialog
box will then be opened. Select the communication mode used and then click the OK button.
Figure 3.9 [Setup host connection] Command
Figure 3.10 [Host Connection] Dialog Box
R20UT2922EJ0400 Rev.4.00 Page 37 of 163
Oct 03, 2016
Page 38
PG-FP5 V2.15 SOFTWARE INSTALLATION
(6) Communicati on with the host PC is established. “FPGA Vx” is displayed in the action log window; thus, the
version can be checked.
Figure 3.11 Version Confirmation After FPGA Update Is Finished
R20UT2922EJ0400 Rev.4.00 Page 38 of 163
Oct 03, 2016
Page 39
PG-FP5 V2.15 USAGE IN STANDALONE MODE
Commands
Main menu
Submenu
Commands
Voltage Setting
Utility/Misc.
Option Setting
Type Setting
>
>
>>>
Reset FP5 >
..
..
Type Setting
Option Setting
Voltage Setting
Utility/Misc.
Command
execution
4. USAGE IN STANDALONE MODE
The FP5 has a standalone mode in which the FP5 by itself can execute the [Erase], [Program], and
[Autoprocedure(E.P.)] commands without a ho st PC. This mod e is useful for using the FP5 on the production line
during mass production and for upgrading in the field.
4.1. Before Starting Standalone Operation
In standalone mode, the FP5 can select any programming area based on PR5 files, ESF files and program files stored in
the multiple internal flash memory areas (programming areas) and write it. New PR5 files, ESF files and program files
cannot be downloaded to the FP5 in this mode. Programming is possible only in environments to which files were
downloaded last time by the programming GUI.
4.2. Description of Buttons, Message Display and Status LEDs
In standalone mode, command menus are selected and executed using the control button NEXT, ENTER,
CANCEL or START on the top of the FP5 main unit.
The selected command menu is displayed in the message display, and the result of command execution is indicated by
the message display and stat us LEDs. When the FP5 Manager dialog box is used to enable [Enable Bank mode] or
[Enable Simple mode], the functions of the control buttons and message display will change. Refer to each
microcontroller edition 1.3.2 (9) [FP5 Manager] command and 5 USAGE THE REMOTE CONNECTOR. This chapter
will descri be usage in the normal mode.
The command menu consists of two levels of menus: a main menu and submenu.
The NEXT button is used to display the next menu on the same level.
The ENTER button is used to select or execute the menu item currently displayed.
The CANCEL button is used to cancel the current selection and return to the previous menu level. The command
currently running cannot be stopped, except for the [Read] command.
The START button executes the [Autoprocedure(E.P.)] command. It can be executed from any command menu, and the
display returns to the same command menu after execution.
ENTER button
CANCEL button
NEXT button
ENTER button
NEXT button
Figure 4.1 Menu Status Transition by Button Input
R20UT2922EJ0400 Rev.4.00 Page 39 of 163
Oct 03, 2016
Page 40
PG-FP5 V2.15 USAGE IN STANDALONE MODE
Green
Orange
Red
The selected command has been terminated by an error.
On the main menu level, the FP5 shows the menu items that can be selected. On the submenu level, the first line in the
message display shows the menu item and the second line shows the response from the FP5, if any.
A co m mand prompt ‘>’ displayed at the end of a menu line indicates that it is selectable with the ENTER button, or that
the menu (command) can be executed. If the command prompt ‘>’ is not displayed at the end of a menu line, it means
that the function is available only for display.
When power to the FP5 is turne d on, the POWER LED turns on and ‘Command s >’ is displayed in the message display.
The status LEDs indicate the status of communication with the device and the result of execution, as follows.
Status LED Status
The selected command has been executed correctly.
The command that has been correctly executed is displayed in the message display.
The selected command is under execution.
The detailed execution sta tus is displayed in the message display.
The error details are displayed in the message display.
Note For details on the errors displayed in the message display, refer to error message A.4. Error Messages
Displayed in FP5 Message Display.
R20UT2922EJ0400 Rev.4.00 Page 40 of 163
Oct 03, 2016
Page 41
PG-FP5 V2.15 USAGE IN STANDALONE MODE
[Program
>]
Pressing the ENTER button executes the [Program] command.
[Verify
>]
Pressing the ENTER button executes the [Verify] command.
4.3. Standalone Operation Menu
In standalone mode, the programming environment of the target device can be checked and then programs can be
written by us ing the commands explained in this section.
4.3.1. [Commands] menu
The [Commands] menu provides various commands required for programming the target device. Select a command
from this menu and press the ENTER button; the FP5 will then execute the command for the target device, based on the
settings downloaded to the valid programming area. For details on command execution, refer to each microcontroller
edition 1.3.3[Device] menu.
Table 4.1 [Commands] Menu (1)
Main Menu Submenu Description
[Commands >] [E.P. >] Pressing the ENTER button executes the [Autoprocedure(E.P.)]
command.
[Erase >] Pressing the ENTER button executes the [Erase] command.
[Set Security >] Pressing the ENTER button executes the [Set Security] command.
[Checksum >] Pressing the ENTER button executes the [Checksum] command. The
checksum value read from the target device is displayed in the message
display.
<When a product with no data flash is selected from the 78K/V850/RL78
family>
Checksum:xxxx
<When a product with data flash is selected from the 78K/V850/RL78
family>
Code Flash sum:
xxxx -> Enter
Click the ENTER button.
Data Flash sum:
xxxx -> Enter
Click the ENTER button.
Total sum:
xxxx -> Enter
<When RX family, RH850 family, R8C family, or SuperH family is
selected>
User mat sum:
xxxxxxxx -> Enter
Click the ENTER button.
Data mat sum:
xxxxxxxx -> Enter
Click the ENTER button.
UB mat sum:
xxxxxxxx -> Enter
Click the ENTER button.
Total sum:
xxxxxxxx -> Enter
The comparison result is also displayed if [Enable checksum compare
function] in FP5 management setting is enabled.
Checksum:
Compare:PASS (or ERROR)
R20UT2922EJ0400 Rev.4.00 Page 41 of 163
Oct 03, 2016
Page 42
PG-FP5 V2.15 USAGE IN STANDALONE MODE
[Set OptionBytes
>]
Pressing the ENTER button executes the [Set Option bytes] command.
[Set ID Code
>]
Pressing the ENTER button executes the [Set ID Code] command.
[Blank check
>]
Pressing the ENTER button executes the [Blank check] command.
[Connect
>]
Pressing the ENTER button executes the con command.
[Progarea
>]
Used to select the valid programming area. The valid programming area
Table 4.1 [Commands] Menu (2)
Main Menu Submenu Description
[Commands >] [Set Lock bits >] Pressing the ENTER button executes the [Set Lock bits] command.
[Set OCD-Sec-ID >] Pressing the ENTER button executes the [Set ID Code] command.
[Set Lock bits >] Pressing the ENTER button executes the [Set Lock bits] command.
[Signature >] Pressing the ENTER button executes the [Signature read] command.
The device name is displayed in the message display.
Display example: Signature: D78F1166
Issuing the autocon command “autocon off” causes display of this item in
the submenu while the autocon command “autocon on” removes it from
the submenu. For more information on the function, refer to chapter 6,
Using Communications Commands.
[Disconnect >] Pressing the ENTER button executes the dcon command.
can be changed by pressing the ENTER button.
<Display example> (if ENTER button is pressed):
Commands
Prog Area now: 1 (Changes the valid programming area from Area 0 to
Area 1.)
The currently selected programming area can be checked in the
[Programmer] area in the programming parameter window of the
programming GUI. The factor for dividing the programming area is the
value set in the [Progr am min g Area Sett ing] area in the Device Setup
dialog box.
R20UT2922EJ0400 Rev.4.00 Page 42 of 163
Oct 03, 2016
Page 43
PG-FP5 V2.15 USAGE IN STANDALONE MODE
4.3.2. [Type Setting] menu
The [Type Setting] menu is used to check information (target device programming environment settings) contained in
the ESF file downloaded to the FP5. The settings downloaded to the valid programming area are displayed. All the
values displayed are those downloaded last time by the programming GUI. The settings cannot be changed using this
menu.
Table 4.2 [Type Setting] Menu
Main Menu Submenu Description
[Type Setting >] [Device Port ] Displays any of the following to indicate which mode is selected for
communication between the target device and the FP5.
SIO 0, SIO 1, SIO 2, SIO H/S, IIC 0, IIC 1, IIC 2, IIC 3, UART 0, UART 1,
UART 2, UART 3, PORT 0, PORT 1, PORT 2
[Multiply Rate ] Displays the multiplication rate of the operating clock for the target
device.
[Serial CLK ] Displays the serial clock rate in Hz that is used for communication
between the target device and the FP5.
[CLK source ] Indicates either of the following as a source of the operating clock
supplied to the target device.
Programmer: Clock is supplied from the FP5.
Target: Clock is supplied from the user system.
[PG CPU CLK ] Indicates the frequency of the clock supplied from the FP5 in MHz.
[Target CPU CLK ] Indicates the frequency of the clock on the user system that is supplied
to the target device, in MHz.
[Operation Mode ] Indicates chip, area, or block as the operation mode when the [Blank
check], [Erase], [Program], [Verify], [Checksum], or
Chip
[Operation Range ] Indicates which of the areas in the target device connected to the FP5 is
to be written to. This menu shows a valid display only when the operation
mode is not Chip (when the operation mode is Area or Block).
<Display example>
Operation Range
0 to 1 *In chip mode, the display is always as follows:
<Display example>
Operation Range
0 to 127
R20UT2922EJ0400 Rev.4.00 Page 43 of 163
Oct 03, 2016
Page 44
PG-FP5 V2.15 USAGE IN STANDALONE MODE
4.3.3. [Option Setting] menu
The [Opti on Setting] menu is used to check the command options and security settings currently set for the FP5. The
settings downloaded to the valid programming area are displayed. All the values disp layed are those downloaded last
time by the programming GUI. The settings cannot be changed using this menu.
Table 4.3 [Option Setting] Menu (1)
Main Menu Submenu Description
[Option Setting >] [BLN before ERS ] Displays the setting of the [Blank check before Erase] check box in the
[Command options] area on the [Advanced] tab in the Device Setup
dialog box.
on: Selected, off: Not selected
[VRF after PRG ] Displays the setting of the [Verify after Program] check box in the
[Command options] area on the [Advanced] tab in the Device Setup
dialog box.
on: Selected, off: Not selected
[SCF after PRG ] Displays the setting of the [Security after Program] check box in the
[Command options] area on the [Advanced] tab in the Device Setup
dialog box.
on: Selected, off: Not selected
[SUM after PRG ] Displays the setting of the [Checksum after Program] check box in the
[Command options] area on the [Advanced] tab in the Device Setup
dialog box.
on: Selected, off: Not selected
[OPB after PRG ] Displays the setting of the [Set Option bytes after Program] check box in
the [Command options] area on the [Advanced] tab in the Device Setup
dialog box.
on: Selected, off: Not selected
[IDC after PRG ] Displays the setting of the [Set OCD Security ID after Program] check
box in the [Command options] area on the [Advanced] tab in the Device
Setup dialog box.
on: Selected, off: Not selected
[RUN after Disc. ] Displays the setting status of the [Run after Disconnect] check box in the
[Command options] area of the device setup dialog [Advanced] tab.
On: Checked
Off: Not checked
When on, the FP5 Manager [Reset option of Run after Disconnect]
setting will also be displayed.
<Display example>
On (Hi-Z)
[Enable TargetRes ] Displays the setting status of the [Enable target Reset] check box in the
[Command options] area of the device setup dialog [Advanced] tab.
On: Checked
Off: Not checked
[Prog Area ] Displays the valid programming area.
Display example (in the case where the valid programming area is Area
0):
Prog Area
On (0)
[Chip ERS dis. ] Displays the setting of the [Disable Chip Erase] check box in the
[Security flag settings] area on the [Advanced] tab in the Device Setup
dialog box.
on: Selected, off: Not selected
[Block ERS dis. ] Displays the setting of the [Disable Block Erase] check box in the
[Security flag settings] area on the [Advanced] tab in the Device Setup
dialog box.
on: Selected, off: Not selected
R20UT2922EJ0400 Rev.4.00 Page 44 of 163
Oct 03, 2016
Page 45
PG-FP5 V2.15 USAGE IN STANDALONE MODE
[READ disable
]
Displays the setting of the [Disable Read] check box in the [Security flag
area on the [Advanced] tab in the
[Reset Vector
]
Displays the setting of the [Reset vector:] check box in the [Reset vector
[FS area
]
Displays the setting of the [FSW Block start] and [FSW Block end] check
[ID x-y
]
Displays the setting of the [ID] box in the [ID code for authentication]
Table 4.3 [Option Setting] Menu (2)
Main Menu Submenu Description
[Option Setting >] [PRG disable ] Displays the setting of the [Disable Program] check box in the [Security
flag settings] area on the [Advanced] tab in the Device Setup dialog box.
on: Selected, off: Not selected
settings] area on the [Advanced] tab in the Device Setup dialog box.
on: Selected, off: Not selected
[Boot Blk PRG dis ] Displays the setting of the [Disable boot block cluster reprogramming]
check box in the [Securit y flag setti ng s]
Device Setup dialog box.
on: Selected, off: Not selected
settings] area on the [Advanced] tab in the Device Setup dialog box.
Display example:
Reset vector
Addr: 0x000000
[End Boot Blk ] Displays the setting of the [Boot Blo ck end] check box in the [Block
protection] area on the [Advanced] tab in the Device Setup dialog box.
Display example:
End Boot Blk
0
boxes in the [Block protection] area on the [Advanced] tab in the Device
Setup dialog box.
Display example:
FS area
0 to 127
[OCD ID xxxxxxxx ] Displays the setting of the [OCD security ID setting] box in the [OCD
security ID setting] area on the [Advanced] tab in the Device Setup
dialog box.
Display example:
If 123456789ABCDEF0123456789 ABCDEF0 is s pecified in the [OCD
security ID setting] box
OCD ID 12345678
9ABCDEF012345678
x-y = 1-8 or 9-16
area on the [Standard] tab in the Device Setup dialog box. If the [NEX T ]
button is clicked, the display changes from ID 1-8 to ID 9-16.
Display example:
If 112233445566778899AABBCCDDEEFF00 is specified in the [ID] box
ID 1-8
1122334455667788
Click the [NEXT] button
ID 9-16
99AABBCCDDEEFF00
R20UT2922EJ0400 Rev.4.00 Page 45 of 163
Oct 03, 2016
Page 46
PG-FP5 V2.15 USAGE IN STANDALONE MODE
[SetID x-y
]
Displays the setting of the [Setting] box in the [ID code for authentication]
Table 4.3 [Option Setting] Menu (3)
x-y = 1-8 or 9-16
[OPBTx
x = 0 to 12
area on the [Standard] tab in the Device Setup dialog box. If the [NEX T ]
button is clicked, the display changes from SetID 1-8 to SetID 9-16.
Display example:
If 112233445566778899AABBCCDDEEFF00 is specified in the [ID] box
SetID 1-8
1122334455667788
Click the [NEXT] button
SetID 9-16
99AABBCCDDEEFF00
] Displays the setting of the [Option bytes setting] box in the [Option bytes
setting] area on the [Advanced] tab in the Device Setup dialog box. If the
[NEXT] button is clicked, the display changes from OPBT0 to OPBTx.
Display example:
If FFFFFFE9 is specified for OPBT0 in the [Option bytes setting] area
OPBT0
FFFFFFE9
R20UT2922EJ0400 Rev.4.00 Page 46 of 163
Oct 03, 2016
Page 47
PG-FP5 V2.15 USAGE IN STANDALONE MODE
¯¯¯¯¯¯
options] area of the device setup dialog is enabled, "VDD Reset TrigIn" is
4.3.4. [Voltage Setting] menu
The [Voltage Setting] menu is used to check the voltage level setting used when programming the target device
currently con nected to the FP5. The settings downloaded to the valid programming area are displayed. The settings
cannot be changed using this men u.
Table 4.4 [Voltage Setting] Menu
Main Menu Submenu Description
[Voltage Setting>] [Vdd ] Displays the value of VDD supplied to the target device connected to the
FP5 in volts.
[Vdd2 ] Displays the value of VDD2 supplied to the target device connected to the
FP5 in volts.
[Vdd Source ] Indicates the source of VDD supplied from the target device as either of
the following.
V
DD from PG: VDD is supplied from the FP5.
DD from device: VDD is supplied from the user system.
V
[Vdd Monitoring ] Displays the setting of the [Vdd monitoring] check box in the [Supply
voltage] area in the Device Setup dialog box.
on: Selected, off: Not selected
[WideVoltage mode ] Displays the setting of the [Wide Voltage Mode] check box.
[FLMD0 Level ] The FLMD0 Level displays the voltage level of the FLMD0 signal.
[CLK Level ] Indicates the voltage level of the clock signal as either of the following.
VDD
VDD2
[RESET Level ] The Reset Level displays the voltage level of the RESET
VDD
Also, when the [Enable target RESET] check box in the [Command
signal.
displayed.
[Serial Level ] Indicates the voltage level of the serial communication signals. The high
level of the serial communication signal is indicated as either of the
following.
VDD
VDD2
[Vpp ] Indicates the value of VPP supplied to the target device connected to the
FP5 in volts.
R20UT2922EJ0400 Rev.4.00 Page 47 of 163
Oct 03, 2016
Page 48
PG-FP5 V2.15 USAGE IN STANDALONE MODE
4.3.5. [Utility/Misc.] menu
The [Utility/Misc.] menu is us e d to reset the FP5 main unit, tune the LCD contrast, check the firmware version, check
the name and version of the PR5 file downloaded, check t he na me of the program file downloaded, and check the
checksum of program files. The settings downloaded to the valid programming area are displayed. The settings cannot
be changed using this men u.
Table 4.5 [Utility/Misc.] Menu
Main Menu Submenu Description
[Utility/Misc. >] [Utility ] Displays the state of the [FP5 Manager] command in the [Programmer]
menu.
<Display example>
Std. mode Sec: A password has been registered.
Std. mode unSec: A password has not been register ed.
[Reset FP5 >] Pressing the ENTER button resets the FP5.
[Set LCD Contr. >] Tunes the contrast in the message display. After pressing the ENTER
button, the contrast can be tuned using the NEXT (darken) or CANCEL
button (lighten). To fix the contrast, click the ENTER button.
[FP5 F/W Version ] Displays the FP5 firmware version.
<Display example>
FP5 F/W Version
V1.00
[PRM Name ] Displays the name of the PR5 file stored in the FP5 valid programming
area.
<Display example>
PRM Name
78F1166
[PRM File Version ] Displays the version of the PR5 file stored in the FP5 valid programming
area.
<Display example>:
PRM File Version
V1.00
[HEX File Name ] Displays the name of the program file stored in the FP5 valid
programming area.
<Display example>
HEX File Name
Sample.hex
“n.a.” is displayed if the program file is invalid.
[File Checksum ] File Checksum will display the results of executing the programming GUI
[File] menu -> [Checksum...] command.
<Display example>
File Checksum
623E (ARITHM.)
R20UT2922EJ0400 Rev.4.00 Page 48 of 163
Oct 03, 2016
Page 49
PG-FP5 V2.15 USAGE THE REMOTE CONNECTOR
Pin
Input/
Pin name
Function
Active level
1
Output
CONN
Indicates that the remote interface is connected. When
High level
3
Output
PASS
Outputs the status indicated by the status LED “PAS S”.
High level
5
Input
Standard
CANCEL
Same as the CANCEL button function.
Low level
bit programming area
6
Input
Standard
ENTER
Same function as the ENTER button.
Low level
7
Input
Standard
NEXT
Same as the function of the NEXT button.
Low level
8
Input
VRF
Inputs the independent verify signal.
Low level
9
Input
START
Inputs the “START” (Auto-procedure (E.P.)) signal.
Low level
10
Input
CLR
Clears (disables) the “PASS” and “ERROR” signals.
Low level
11 to 15
−
GND
Grounding pin
−
5. USAGE THE REMOTE CONNECTOR
This chapter describes the use of the remote connector.
The FP5 can be remote controlled by connecting the remote connector and external control device. Remote control can
be used to operate and check writing and PASS/ERROR displays from the external control device.
5.1. Remote Interface Mode
The remote interface has a standard mode and a bank mode.
The modes are switched by using the FP5 Manager [Enable Bank mode] check box.
Standard mode: The same signals as the co ntrol buttons (NEXT, E NTER, CANCEL) o n the command men u of the
FP5 unit can be input.
Bank mode: This mode a l lows inputting of the bank signals (BANK0-2) that indicate the programming area. The
control but tons (NEXT, ENTER, CANCEL) will change their functions to those inputting bank signals, so that the
command menu displayed on the FP5 message display will b e disabled.
5.2. Remote Connector Pins
The FP5 remote connector pins have the following functions. All inputs will become active with an effective level of
50 ms or greater. Note that the pin numbers in Table 7-1 are the pin numbers on the FP5 remote connector.
Table 5.1 Remote Interface Pin Functions
number
2 Output BUSY Outputs the status indicated by the status LED
4 Output ERROR Outputs the status indicated by the status LED
Output
the FP5 power is ON, the CONN is always valid.
“BUSY”. Note that the BUSY signal differs from the
status LED and does not blink.
“ERROR”.
mode
Input Bank mode BANK0 Indicates the lowest 1 bit of the 3-
number.
mode
Input Bank mode BANK1 Indicates the middle 1 bit of the 3-bit programming
area number.
mode
Input Bank mode BANK2 Indicates the highest 1 bit of the 3-bit programming
area number.
High level
High level
Low level
Low level
Low level
R20UT2922EJ0400 Rev.4.00 Page 49 of 163
Oct 03, 2016
Page 50
PG-FP5 V2.15 USAGE THE REMOTE CONNECTOR
Programming area 1
0 0 1
Programming area 3
0 1 1
Programming area 5
1 0 1
Programming area 7
1 1 1
8
1
15
9
Table 5.2 Programming Area and Banks
BANK2 BANK1 BANK0
Programming area 0 0 0 0
Programming area 2 0 1 0
Programming area 4 1 0 0
Programming area 6 1 1 0
Note 1. 0: Low level
1: High level
2. When set in programming area 0, set in programming area 0, set BANK0, BANK1, and BANK2 to the low
level.
When set in programming area 3, set BANK0 and BANK1 to the high level, and BANK2 to the low level.
Next, the pin assignment of the remote connector is shown.
In the DC properties of the remote interface, 4.7 k-ohm pull-up processing is executed so that the output signal has
CMOS output from 74LV126A (3.3 V) and the input signal has input from 74LV126A (3.3 V).
R20UT2922EJ0400 Rev.4.00 Page 50 of 163
Oct 03, 2016
Page 51
PG-FP5 V2.15 USAGE THE REMOTE CONNECTOR
4.7
K
Ω
FP5
74LV126A
Signal_BUSY(2),PA SS( 3 ),ERRO R(4)
33
User System
EMZ6.8 E
FP5_3.3V
信号出力回路
セルフテスト回路
FP5_3.3V
EMZ6.8 E
Signal_CANCEL(5 ),EN TER(6),NEXT( 7 )
信号入力回路
ボタン回路
74LV126A
74LV126A
Signal output
Self-test circuit
Signal input
Button circuit
4.7KΩ
FP5
74L
V1
26
A
Signal_CON
N
33
User System
EMZ6.8 E
FP5_3.3V
信号出力回路
セルフテスト回路
FP5_3.3V
EM
Z6.
8 E
Signal_VRF
信号入力回路
74LV126A
74LV126A
4.7K
Ω
セルフテスト回路
EMZ6.8 E
信号入力
回路
ボタン回路
74
LV12
6A
FP5_3.3V
74LV12
6A
Signal_S
TART
FP5_3.3V
Self-test circuit
Signal input
Self-test circuit
Signal input
Button circuit
Signal output
4.7K
Ω
FP5
User System
セルフテスト回路
FP5_3.3V
EMZ6.8 E
Signal_CLR
信号入力回路
74LV126A
74LV126A
FP5_3.3V
Self-test circuit
Signal input
circuit
circuit
(a) BUSY, PASS, ERROR, CANCEL, ENTER, NEXT
circuit
Figure 5.2 Equivalence Circuit
R20UT2922EJ0400 Rev.4.00 Page 51 of 163
Oct 03, 2016
circuit
circuit
circuit
(b) CONN, VRF, START
(c) CLR
Page 52
PG-FP5 V2.15 USAGE THE REMOTE CONNECTOR
PAS S 3
ERROR 4
BUSY 2
S TART 9
GND
5.4. External Connection Example
A connection example with a remote connector, external switch and LED is sho wn.
Figure 5.3 External Switch and LED Connection Example
R20UT2922EJ0400 Rev.4.00 Page 52 of 163
Oct 03, 2016
Page 53
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Serial cable
AC adapter
Outlet
FP5
Host PC
6. USAGE COMMUNICATION COMMANDS
This chapter describes how to use communications commands from a host PC to operate the FP5.
6.1. Starting the Communications Software
In order to use communications commands for operation, communications with the FP5 must be established wit h
communications software. In this chapter, we shall describe how to use communications software to establish
communications.
(1) C onnecting the system
Connect a serial cable to the serial port on your host PC, and then connect the other end to the serial connector on the
FP5. Next, plug the AC adaptor into an outlet, then connect it to the FP5 power supply connector.
Figure 6.1 System Connections
(2) Start the FP5
After the connections are made, press the FP5 POWER button to turn the power on. If the unit starts correctly, the
POWER LED will light, and “Comma nd s >” will be displayed on the message display.
If the unit does not come on in the manner described above, then there may be a malfunction in t he FP5, so consult a
Renesas Electronics sales representative or distributor.
R20UT2922EJ0400 Rev.4.00 Page 53 of 163
Oct 03, 2016
Page 54
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
(3) Start communications software
Start communications software
Check the COM port number with Device Manager.
Figure 6.2 Checking the COM Port Number Settings
Select the data transfer conditions listed below.
Data transfer rate: 9600 bps, 19200 bps, 38400 bps, 57600 bps, 115200 bps
Data bits: 8 bit
Parity: None
Stop bit: 1 bit
Flow control: Hardware
The default data transfer rate is 9600 bps, but it may be changed by the programming GUI or terminal commands to
another rate. In such cases, use the [Setup host conne ction...] in the programming GUI [Programmer] menu to check
the transfer rate and make sure they match.
When communications software starts correctly, the main window will open. If communications are established, then a
“>” will be displayed when the Enter key on the host PC is pressed. This completes the prep ar ation for using
communications commands.
Caution Press the Enter key once after FP5 has started. Alternatively, send a linefeed code once to FP5 by using
communication software.
R20UT2922EJ0400 Rev.4.00 Page 54 of 163
Oct 03, 2016
Page 55
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command name
Description
hex
Uploads the program file in Intel HEX format.
res
Resets the FP5.
trc
Displays the communication information between the FP5 and target device.
6.2. Command List
The following is a list of FP5 control commands and device commands.
Table 6.1 List of FP5 Control Commands
autocon Selects and confirms automatic or manual execution of the processes, from “transition to flash
memory programming mode” to “signature verification”, and “the termination of the flash
memory programming mode”.
brt Confirms and changes the data transfer rate during serial communication with the host PC.
conf Displays a list of the information stored in the FP5 and changes the number of programming
area sections.
dwnprm Downloads the PR5 file.
downset Downloads the ESF file.
fcks Executes the programming GUI [File] menu -> [Checksum...] command.
files Displays the information concerning the program file that was downloaded to the FP5.
fpga_up Updates the FPGA.
hlp Displays a list of available commands, wit h simple des cri pt io n s.
lod Downloads the program file.
prm Displays the information concerning the PR5 file and ESF file that were downloaded to the FP5.
progarea Confirms, changes and deletes data in the valid programming areas.
pwr_off Turns off the FP5 power supply.
security Confirms the security state that can be set by the [FP5 Manager] command.
selftest Executes a self-test.
serno Sets the unique code for embedding in the program file.
sound Sets the buzzer.
srec Uploads the program file in Motorola HEX format.
upprm Uploads the PR5 file.
upset Uploads the ESF file.
ver Displays the FP5 version and FP5 mode.
version_up Updates the firmware.
R20UT2922EJ0400 Rev.4.00 Page 55 of 163
Oct 03, 2016
Page 56
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
con
Executes the processes from “transition to flash memory programming mode” to “signature
ep or epv
Executes the [Autoprocedure (E.P.)] command.
gdi
Get the information of blank check and flash option.
gid
Get the ID code.
gob
Get the information of option byte.
gos
Get the information of flash option.
gsc
Get the information of security.
idc
Executes the ID code setting.
otp
Executes the OTP setting.
read
Executes the [Read] command.
scf
Executes the [Set Security] command.
sid
Sets the ID code and enables ID authentication in the serial programming mod e.
slb
Executes the [Set Lock bits] command.
stm
Executes the Trusted Memory settinng.
vrf
Executes the [Verify] command.
Table 6.2 List of FP5 Device Commands
Command name Description
bln Executes the [Blank check] command.
clr Executes the Configuration clear.
verification”.
dcon Executes the termination of the flash memory programming mode.
ers Executes the [Erase] command.
ged Get the information of endian.
glb Get the information of lock bit.
gof Get the information of OFS.
got Get the information of OTP.
gtm Get the information of Trusted Memory.
opb Executes the [Set Option by te s] com mand .
prg Executes the [Program] command.
rsc Executes the Security Release command.
sed Executes the endian settinng.
sig Executes the [Signature read] command.
spd Executes the disable serial programming setting.
sum Executes the programming GUI [Device] menu -> [Checksum] command.
R20UT2922EJ0400 Rev.4.00 Page 56 of 163
Oct 03, 2016
Page 57
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
6.3. Description of Commands
Each of the commands is described using the following format.
Command name
Presents an overview of the command.
Input format
Presents the input format for the command
Description of the function
Describes t he function of the command.
Example of usage
Presents an example of using the command.
Note The symbols used to describe the input format are defined below.
Notation Description
Characters within single quotation marks ' ' Characters that must be input as displayed
Characters within angle brackets < > Information that must be provided
Characters within parentheses ( ) Optional items
Options separated by vertical bars | Opti ons where only one option c an be selected
Note
.
R20UT2922EJ0400 Rev.4.00 Page 57 of 163
Oct 03, 2016
Page 58
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Screen output
autocon off
AutoCon is off
6.4. Description of FP5 Control Commands
This section will describe the FP5 control commands.
6.4.1. autocon command
Selects and confirms automatic or manual exe cution of the processes, from “transition to flash memory programming
mode” to “signature verification”, and “the termination of the flash memory programming mode”.
Input format
'autoc on' ('on | off')
Description of the function
Selects either automatic (on) or manual (off) execution, to be executed before and after the device command completion,
of the processes from “transition to the flash memory programming mode” to “signature verification (con command)”,
and “termi nation of the flash memory programming mode (dcon command)”. The init i al value is automatic (on). If this
command is executed without an option, the current status is displayed (automatic (on) or manual (off)). The default
setting is automatic (on).
on: The con command and dcon command are executed automatically.
off: The con command and dcon command are executed manuall y. When set to manual (off), the con command is
executed, then the device command can be executed. Furthermore, various device commands can be executed multiple
times. Execute the dcon command to terminate. Note that the ep (epv) command will automatically exec ute the con
command and dcon command even if this is set to manual (off).
Example of usage
autocon AutoCon is on / off
autocon on AutoCon is on
R20UT2922EJ0400 Rev.4.00 Page 58 of 163
Oct 03, 2016
Page 59
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Screen output
6.4.2. brt command
Confirms and changes the data transfer rate for serial communication with the host PC.
This command can be used with its options to change the data transfer rate for serial communica tions with the host PC.
When the data transfer rate is changed, it will be necessary to change the data transfer rate of the COM port setting with
HyperTerminal and reconnect.
If no options are used with this command, then the current data transfer rate will be displayed.
If the serial connector is connected, then the data transfer rate will be displayed.
If a USB connector is used, then the USB version will be displayed.
• USB (HS) ... USB 2.0
• USB (FS) ... USB 1.1
The default data transfer rate is 9600 bps.
9600: Changes the data transfer rate to 9600 bps.
19200: Changes the data transfer rate to 19200 bps.
38400: Changes the data transfer rate to 38400 bps.
57600: Changes the data transfer rate to 57600 bps.
115200: Changes the data transfer rate to 115200 bps.
Example of usage
brt [When the serial connector is connected at 115200 bps]
Current Baudrate is: 115200
[When the USB connector is connected at High speed]
Current Baudrate is: USB (HS)
brt 9600 New Baudrate is: 9600
brt 19200 New Baudrate is: 19200
brt 38400 New Baudrate is: 38400
brt 57600 New Baudrate is: 57600
brt 115200 New Baudrate is: 115200
R20UT2922EJ0400 Rev.4.00 Page 59 of 163
Oct 03, 2016
Page 60
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
6.4.3. conf command
Displays a list of the information stored in the FP5 and changes the number of programming area sections.
Divides the programming area into eight, four, two, or one areas depending on the selected option.
If an option is not specified, then the following information stored in the FP5 will be displayed.
• Version information (firmware version, board hardware version, FPGA version, serial number, FP5 mode)
• Program area information (area divisions, valid programming areas, maximum size of program file information
(code area, data area))
• Program file information (file name, creation date, size, checksum)
• PR5 file and ESF file information in all programming areas (PR5 file names, PR5 file checksums, ESF file
checksums)
• Automatic connection information
• Buzzer information
• Automatic power supply OFF infor mation
• Security mode information
• FP5 manager option setting information
Progarea: Used to specify the number of programming area sections.
4x4: Divides the programming area into four sections.
8x2: Divides the programming area into eight sections.
10/6: Divides the programming area into two sections.
1x16: Divides the programming area into one section.
Example of usage
Refer to the following pages.
R20UT2922EJ0400 Rev.4.00 Page 60 of 163
Oct 03, 2016
Page 61
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
(1)
Command Screen output
conf progarea 4x4 [If there are four sections before the command is executed]
OK
INFO: Same setting. Configuration is not changed.
[If there are eight sections before the command is executed]
OK
INFO: New configuration has been set.
INFO: Progarea data is not valid any more.
Number of Program areas: 4 Active Program Area: 0
Size of Program Areas (Code / Data):
Area 0: 0x400000 / 0x020000
Area 1: 0x400000 / 0x020000
Area 2: 0x400000 / 0x020000
Area 3: 0x400000 / 0x020000
Area Filename Date Time Range CRC
*0 {unknown data}
1 {unknown data}
2 {unknown data}
3 {unknown data}
Checking Progareas.........
No invalid data found.
R20UT2922EJ0400 Rev.4.00 Page 61 of 163
Oct 03, 2016
Page 62
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Firmware Version Vx.xx
conf See below.
Board H/W Vx, FPGA Vx
Serial No.: xxxxxxxxxx
Standard mode unsecured
Number of Program areas: 4 Active Program Area: 0
Size of Program Areas (Code / Data):
Area 0: 0x400000 / 0x020000
Area 1: 0x400000 / 0x020000
Area 2: 0x400000 / 0x020000
Area 3: 0x400000 / 0x020000
Area Filename Date Time Range CRC
*0 sample.hex 2006-02-24 21:13 000000-007FFF 61D5F67C
AutoCon is off
Sound is on
AutoPowerOff is disabled
Security state is: Inactive
Authorization procedure is: Undefined
Manager option byte: 0x00
HEX file Upload enabled
Device Setup enabled
Checksum comparison off
Reset option Hi-z
(2)
Command Screen output
R20UT2922EJ0400 Rev.4.00 Page 62 of 163
Oct 03, 2016
Page 63
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Status
Status LED
Message display
Screen output
Display during downloading
BUSY
*** BUSY ***
...
Display after error ending of the
ERROR
Returns to the display before
ERROR: <text>
6.4.4. downprm command
Downloads the PR5 file.
Input format
'downprm'
Description of the function
Downloads the PR5 file. After this command is executed, the PR5 file must be downloaded to the FP5 in ASCII format
by using communications software. If you are using HyperTerminal, select Transfer(T) -> Transfer text file(T)..., and
then select the PR5 file.
Example of usage
downprm Display after execution of the
command (before downloading)
Display during downloading BUSY *** BUSY *** ...
Display after normal ending of
the download
Display after error ending of the
download
BUSY *** BUSY *** Now loading...
PASS Returns to the display before
executing the command.
ERROR Returns to the display before
executing the command.
PASS
ERROR: <text>
6.4.5. downset command
Downloads the ESF file.
Input format
'downset'
Description of the function
Downloads the ESF file. After this command is executed, the ESF file must be downloaded to the FP5 in ASCII format
by using communications software. If you are using HyperTerminal, select Transfer(T) -> Transfer text file(T)..., and
then select the ESF file. Also, be sure to execute the lod command after the downset command.
Example of usage
Command Status Status LED Message display Screen output
downset Display after execution of the
command (before downloading)
BUSY *** BUSY *** Now loading...
Display after normal ending of
the download
download
R20UT2922EJ0400 Rev.4.00 Page 63 of 163
Oct 03, 2016
PASS Returns to the display before
executing the command.
executing the command.
PASS
Page 64
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Screen output
6.4.6. fcks command
Executes the programming GUI [File] menu -> [Checksum...] command.
Executes a similar function to the programming GUI [File] men u -> [Checksum...] command.
Specifies the calculation method, starting address and number of bytes in the options.
NoteThe fcks command cannot checksum of the HCUHEX file, DDI file, or Option-Setting Memory.
type:Specifies the calculation method.
crc: 32-bit CRC method
crc16: 16-bit CRC method
ari: 16-bit subtraction calculation method (When a V850, RL78, and 78K is selected)
32-bit subtraction calculation method (When a RX, RH850, SuperH, and R8C is selected)
k0s_sp: Division method (original)
start:The starting address is specified in hexadecimal. The code area, data area, and user boot area can be specified.
end: Specifies the end address in hexadecimal. The code area, data area, and user boot area can be specified.
Checksum Data : 400000-41FFFF = 0200
Checksum Total : 63C0
R20UT2922EJ0400 Rev.4.00 Page 64 of 163
Oct 03, 2016
Page 65
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
6.4.7. files command
Displays the information concerning the program file that was downloaded to the FP5.
Input format
'files' ('check')
Description of the function
If no options are used, then information (file name, creation date, size, checksum) concerning the program file
downloaded to the FP5 is displayed.
check: The checksum of all programming areas stored in the program file, from START to END, is recalculated with
the 32-bit CRC method, and cross-checked with the checksum stored in the FP5 during download.
R20UT2922EJ0400 Rev.4.00 Page 65 of 163
Oct 03, 2016
Page 66
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Status
Status LED
Message display
Screen output
6.4.8. fpga_up command
Updates the FPGA.
Input format
'fpga_up'
Description of the function
Updates the FPGA version. After this command is executed, the FPGA file must be downloaded to the FP5 in ASCII
format using communications software. If using HyperTerminal, select Transfer(T) -> Transfer text file(T)..., and then
select the FPGA file. After the FPGA version has been updated, the FP5 power supply will be automatically turned off.
Example of usage
fpga_up Display after executing the
command (before downloading)
Press y to continue. Press n to
cancel.
Display after pressing y Off *** BUSY *** Preparing storage ...OK
Display during download Off *** BUSY *** ...
Display after end of normal
download Press y to continue.
Press n to cancel.
Display after pressing y Off Programming
<1>
OK
**** CAUTION ****
Now the FPGA will be written.
Please ensure that:
- the correct FPGA Update file has been downloaded
- the Power is NOT disconnected during this operation
- the Programmer is NOT reset during this operation
Do you want to continue (y/n)?
If a program file has been downloaded to a valid programming area, executing this command will upload the pr ogram
file in Intel HEX format. If this command is executed without any options, the upload will be executed with the address
size used during do wnloading. If a program has not been downloaded, then "Invalid a rgument" will be displayed. The
starting address and number of bytes are designated as options.
NoteThe hex command is not usab le when minimum unit programming is enabled (for the V850E2/Fx4-L,
V850E2/FF4-G, V850E2/FG4-G, V850E2/Px4-L, V850E2/PG4-S, RX, or RH850). Use the programming GUI instead.
NoteThe hex command cannot uploads of the HCUHEX file, DDI file, or Option-Setting Memory.
start address: The starting addr ess is designated as a hexadecimal number. The code area, data area, and user boot area
can be specified.
length: The number of bytes is designated as a hexadecimal number. The code area, data area, and user boot area can
be specified.
Example of usage
Command Screen output
hex Press 'return' to start/continue output.
hex 0 3fff Press 'return' to start/continue output.
hex 0 3ffff 400000 20000 Press 'return' to start/continue output.
After the command is executed, pressing the Return key will start the upload. See below.
R20UT2922EJ0400 Rev.4.00 Page 67 of 163
Oct 03, 2016
Page 68
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Screen output
6.4.10. hlp command
Lists available commands with brief descriptions.
Input format
'hlp'
Description of the function
Lists frequently-used commands with brief descriptions.
Example of usage
hlp See below.
-------------- Control commands -------------downprm/downset : Download parameter/customer settings
upprm /upset : Upload parameter/customer settings
lod : Download Intel Hex or Motorola S-record file
hex/srec : Upload Intel Hex / Motorola S-record file
progarea : Change Progam area
files : Show downloaded HEX/SREC files in FP5 memory
prm : Show Parameter file (PRM/SET) information
conf : Show / Modify FP5 configuration
security : Show / Modify FP5 Security settings
brt : Set baudrate to host
fcks : Calculate file checksum (FP5 memory)
fill : Fill memory
ver : Show firmware version
res : Reset FP5
pwr_off : Switch OFF FP5 immediately / set auto Power OFF
sound : Enable / Disable sound generation
trc : Show Device communication trace
version_up : Update firmware version
fpga_up : Update FPGA version
selftest : Perform a Selfcheck
-------------- Device commands --------------bln : Blankcheck
ers : Erase
prg : Program
vrf : Verif y
read : Read
ep : Erase and Program
sig : Show device signature
sum : Get device checksum
scf : Set security information
R20UT2922EJ0400 Rev.4.00 Page 68 of 163
Oct 03, 2016
Page 69
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Status
Status LED
Message display
Screen output
Command
Operation
6.4.11. lod command
Downloads program files.
Input format
'lod' ('add') (' f name="filename"') ('ftime="date and time"')
Description of the function
Downloads the program file to a valid programming area. After this command is executed, the program file must be
downloaded to the FP5 in ASCII format using communications software. If using HyperTerminal, select Transfer(T) ->
Transfer text file(T)..., and then select the program file. The options are to delete or not to delete the file before
downloading, the file name, and the creation date. If this command is executed without any opti ons, then the file name
and creation date will not be stored. The lod command is not usabl e when minimum unit programming is enabled (for
the V850E2/Fx4-L, V850E2/FF4-G, V850E2/FG4-G, V850E2/Px4-L, or V850E2/PG4-S). Use the programming GUI
instead.
add
Select this not to delete the data i n the valid programming area before downloading p rogram files. When t his is not
designated, the data will be deleted. Please use this option when downloading and writing two program files. Usually,
this is not designated.
NoteWhen this o ption is enabled and the lod command is executed, the PG-FP5 downloads data 512 bytes at a time
without erasing its internal flash memory. Note, however, that the download error “ERROR: NAND flash – Illegal
Write (Bit 0->1)” occurs if there is data other than FFh in the data being downloaded.
fname = “filename”
Designates the file name of the program file that is downloaded. The maximum number of characters is 31.
ftime = “date and time”
Designates the creation date and time of the downloaded program file. The form at is YYYY -MM-DD HH:MM.
YYYY: Year; MM: Mont h; DD: Date; HH: Hour; MM: Minute
Address range: 0x000000 to 0x007FFF, CRC32: 0x61D5F67C
PASS
BUSY *** BUSY *** Preparing storage ....PASS
PASS Returns to the display
before executing the
command.
ERROR Returns to the display
before executing the
command.
lod fname="sample.hex" ftime="2006-02-24 21:13" Same operation as lod
lod add Same operation as lod
Now loading...
PASS
ERROR: <text>
R20UT2922EJ0400 Rev.4.00 Page 69 of 163
Oct 03, 2016
Page 70
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Screen output
progarea
Active Program Area: 0
progarea 0
Active Program Area: 0
6.4.12. prm command
Displays the information concerning the PR5 file and ESF file that were downloaded to the FP5.
Input format
'prm'
Description of the function
Displays the information concerning the PR5 file and ESF file (PR5 file name, PR5 checksum, ESF file checksum) that
were downloaded to all the programming areas of the FP5.
The valid programming area can be changed by designating a numerical option. Also, by designating the clear option,
the data in the valid programming area (PR5 file, ESF file, and program file) can be deleted. If there are no op tions,
then the cur rent valid programming area is displayed.
clear: Clears the data in the valid programming area (PR5 file, ESF file, and program file).
0: Changes the valid programming area to 0.
1: Changes the valid programming area to 1.
2: Changes the valid programming area to 2.
3: Changes the valid programming area to 3.
Example of usage
Max. program size: 4 MByte
Max. data size: 512 kByte
progarea clear 1
R20UT2922EJ0400 Rev.4.00 Page 70 of 163
Oct 03, 2016
Turns off the FP5 power supply. Adjusts the off timing by designating the options. If options are not used, then the user
can see if automatic power supply off is enabled or disabled.
now: Turns off the power supply immediately.
auto:After the designated time has elapsed, automatic power supply off is enabled. Once this is designated, even if the
automatic power supply turns off, it will still be e nabled if set to ON.
off: After the designated time has elapsed, automatic power supply off is disabled.
time: Designates the automatic power supply off time. The time can be 1 to 35791394 (in minutes). Note that 1 to
4 are set to 5 minutes.
Example of usage
pwr_off AutoPowerOff is disabled
pwr_off now PG-FP5 Power will be switched OFF now....
pwr_off auto 10 AutoPowerOff is enabled, time is 10 min.
R20UT2922EJ0400 Rev.4.00 Page 71 of 163
Oct 03, 2016
Page 72
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Screen output
Command
Screen output
security
[When password-protection is valid]
6.4.15. res command
Resets FP5.
Input format
'res'
Description of the function
Executes a function similar to the programming GUI [Programmer] menu -> [Reset] command.
Example of usage
res FFFFFFF PPPPP 555555
F P P 5
F P P 5
F P P 55555
FFFFF PPPPP 5
F P 5
F P 5
F P 5 5
F P 5555
Firmware Version Vx.xx
Board H/W Vx, FPGA Vx
Serial No.:xxxxxxxxxx
Standard mode unsecured
6.4.16. security command
Confirms the security state that can be set by the [FP5 Manager] command.
Input format
'security'
Description of the function
Confirms the security state that can be set by the [FP5 Manager] command.
Example of usage
Security state is: Locked
Authorization procedure is: Password
[When password-protection is invalid]
Security state is: Inactive
Authorization procedure is: Undefined
R20UT2922EJ0400 Rev.4.00 Page 72 of 163
Oct 03, 2016
Page 73
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Screen output
serno 8000 00010203
OK
6.4.17. selftest command
Executes a self-test.
Input format
'selftest'
Description of the function
Executes a function similar to the programming GUI [Programmer] menu -> [Self-Test] command.
Example of usage
selftest ***** CAUTION *****
Remove any plugs from Target- and Remote-Connector before starting.
Any hardware attached to those connectors may be damaged by this test !
***** CAUTION *****
Target- and Remote-connector unplugged ?
If yes, press 's' to start the test: s
FPGA Test: PASS
Power Supply Test: PASS
Target- and Remote-Interface Test: PASS
Selftest PASSED.
6.4.18. serno command
Sets the unique code for embedding in the program file.
Input format
'serno' <start address> <pattern>
Description of the function
Sets the unique code for embedding in the program file. This command becomes available when the serial number
mode (function for embedding a unique code) is enabled by the FP5 Manager setting. Executing this command sets the
unique cod e in the body of the FP5. The next time a device command that handles the pr ogram file (such as ep, prg, and
vrf) is executed, the unique code is embedded at the specified address in the program file. T he setting of the unique
code in the FP5 is cleared on completion of the device command.
Note When minimum unit programming is enabled and the area of data flash memory in the program file specified in
the serno command is blank, embedding of the unique code in that area does not proceed.
Note The serno command cannot set of the HCUHEX file, DDI file, or Option-Setting Memory.
Start address: Specifies the start address in hexadecimal.
Pattern: Specifies the unique code in hexadecimal notation. A maximum of 64 bytes can be specified.
Example of usage
Command Screen output
R20UT2922EJ0400 Rev.4.00 Page 73 of 163
Oct 03, 2016
Page 74
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
6.4.19. sound command
Sets the buzzer.
Input format
'sound ' ( 'off' | 'on')
Description of the function
Sets the buzzer. “Enabled” or “disabled” is optionally designated. If no option is designated, the current setting is
displayed.
off: Disables the buzzer.
on: Enables the buzzer.
Example of usage
Command Screen output
sound Sound is on
sound off Sound is off
R20UT2922EJ0400 Rev.4.00 Page 74 of 163
Oct 03, 2016
If a program file has been downloaded to a valid programming area, executing this command will upload the program
file in Motorola HEX format. If this command is executed without any options, the upload will be executed with the
address size used during downloading. If a program has not been downloaded, then "Invalid argument" will be
displayed. The starting address and number of bytes are designated as options.
NoteThe srec co mmand is not usable when minimum unit programming is enabled (for the V850E2/Fx4-L,
V850E2/FF4-G, V850E2/FG4-G, V850E2/Px4-L, V850E2/PG4-S, RX, or RH850). Use the programming GUI instead.
NoteThe srec command cannot uploads of the HCUHEX file, DDI file, or Option-Se tting Memory.
start address: The starting address is designated as a hexadecimal number. The code area, data area, and user boot area
can be specified.
length: The number of bytes is designated as a hexadecimal number. The code area, data area, and user boot area can
be specified.
Example of usage
srec Press 'return' to start/continue output.
srec 0 3fff Press 'return' to start/continue output.
srec 0 3ffff 400000 20000 Press 'return' to start/continue output.
After the command is executed, pressing the Return key will start the upload.
R20UT2922EJ0400 Rev.4.00 Page 75 of 163
Oct 03, 2016
Page 76
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Screen output
After the command is executed, pressing the Return key will start the upload.
6.4.21. trc command
Displays the communication information between the FP5 and target device.
Input format
'trc'
Description of the function
Displays the communication information between the FP5 and target device stored in the FP5 trace memory. Up to
1024 lines can be stored.
The FP5 ha s ring structure trace memory.
Example of usage
trc See below.
Debug Output
Number Time us Send Rec.
:
0214 0008675924 17 -0215 0008678930 -- 02
:
Total number of transmitted bytes : 266282
Total number of received bytes : 006212
6.4.22. upprm command
Uploads the PR5 file.
Input format
'upprm'
Description of the function
If the PR5 file has been downloaded to a valid programming area, then executing this command will upload the PR5 file.
Displays the FP5 version (firmware version, board hardware version, FPGA version, and serial number).
Example of usage
Command Screen output
ver Firmware Version Vx.xx
Board H/W Vx, FPGA Vx
Serial No.:xxxxxxxxxx
Standard mode unsecured
R20UT2922EJ0400 Rev.4.00 Page 77 of 163
Oct 03, 2016
Page 78
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Status
Status LED
Message display
Screen output
6.4.25. version_up command
Updates the firmware.
Input format
'version_up'
Description of the function
Upgrades the firmware. After this command is executed, the firmware file must be downloaded to the FP5 in ASCII
format using communications software. If using HyperTerminal, select Transfer(T) -> Transfer text file(T)..., and then
select the firmware file. After the firmware version has been updated, the FP5 will be reset.
Example of usage
Refer to the following pages.
version_up Display after executing
the command (before
downloading)
Press y to continue.
Press n to cancel.
Display after pressing y Off *** BUSY *** Preparing storage ...OK
Display during download Off *** BUSY *** ...
Display after end of
normal download
Press y to continue.
Press n to cancel.
Display after pressing y Off Selfprogramming
<1>
OK
**** CAUTION ****
Now the Firmware will be written.
Please ensure that:
- the correct Firmware Update file has been downloaded
- the Power is NOT disconnected during this operation
- the Programmer is NOT reset during this operation
Do you want to continue (y/n)?
Off *** BUSY *** Are you sure, you want
Off *** BUSY *** Refer to <1> below.
to update the Firmware
(y/n)?
Now loading...
Refer to <2> below.
Firmware
R20UT2922EJ0400 Rev.4.00 Page 78 of 163
Oct 03, 2016
Page 79
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
<2>
FP5 Selfprogramming Vx.xx
Checking FLMD0 level.. OK.
Erase flash.. OK.
Blank check.. OK.
Write flash......... OK.
Margin check.. OK.
Verify......... OK.
Firmware Update succeeds.
Restarting FP5..
FFFFFFF PPPPP 555555
F P P 5
F P P 5
F P P 55555
FFFFF PPPPP 5
F P 5
F P 5
F P 5 5
F P 5555
Firmware Version Vx.xx
Board H/W Vx, FPGA Vx
Serial No.:xxxxxxxxxx
Standard mode unsecured
R20UT2922EJ0400 Rev.4.00 Page 79 of 163
Oct 03, 2016
Page 80
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
bln
Display while executing the
BUSY
Blank chk. Chip
Blank check User area:
Display after executing the
ERROR
ERROR: 051
ERROR(E051): Not Blank.
6.5. Description of The FP5 Device Commands
This section describes the FP5 device commands.
6.5.1. bln command
Executes [Blank check] command.
Input format
'bln'
Description of the function
Executes a similar function to the programming GUI [Device] menu -> [Blank check] command.
Example of usage
Command Status Status LED Message display Screen output
command [Chip mode]
Display while executing the
command [Block mode]
Display while executing the
command [Area mode]
Display after executing the
command [For blank
devices]
command [For not blank
devices]
BUSY Blank chk. Block
BUSY Blank chk. Area
PASS Returns to the display
...
...
...
before executing the
command.
Blank chk failed
ERROR
Blank check User Boot area:
Blank check Data area:
PASS
Blank check operation
finished.
Blank check operation
finished.
6.5.2. clr command
Executes the Configuration clear.
Input format
'clr'
Description of the function
Executes the Configuration clear.
Example of usage
Command Status Status LED Message display Screen output
clr Display after ex ecuting the
command [When completed
normally]
Display after executing the
command [When terminated
abnormally]
R20UT2922EJ0400 Rev.4.00 Page 80 of 163
Oct 03, 2016
Page 81
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Status
Status LED
Message display
Screen output
con
Display while executing the
BUSY
Disconnecting:
6.5.3. con command
Executes the processes from “transition to the flash memory programming mode” to “signature verification”.
Input format
'con'
Description of the function
Executes the processes from “transition to the flash memory programming mode” to “signature verification”. In order
to use this command, “manual” (off) must be set with the a utocon command beforehand.
Example of usage
Command Status Status LED Message display Screen output
con Display while executing the
command
Display after executing the
command [When completed
normally]
Display after executing the
command [When terminated
abnormally]
BUSY Connecting:
PASS Returns to the display
before executing the
command.
ERROR ERROR: xxx
xxxxxxxxxxxxxxxx
PASS
Dxxxxxxx>
ERROR(Exxx): <text>
6.5.4. dcon command
Executes the process to end the flash memory programming mode.
Input format
'dcon'
Description of the function
Executes the process to end the flash memory programming mode. In order to use this command, "manual" (off) must
be set with the autocon command beforehand.
Example of usage
command
Display after executing the
command
PASS Returns to the display
before executing the
command.
Device disconnected.
R20UT2922EJ0400 Rev.4.00 Page 81 of 163
Oct 03, 2016
Page 82
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Status
Status LED
Message display
Screen output
6.5.5. ep/epv command
Executes [Autoprocedure(E.P.)] command.
Input format
'ep' or 'epv'
Description of the function
Executes a similar function to the programming GUI [Device] menu -> [Autoprocedure(E.P.)] command.
Example of usage
ep
or
epv
Display while executing the
command
Display after executing the
command [When completed
normally]
Display after executing the
command [When terminated
abnormally]
BUSY Blank check Skipped.
Erase Chip:
PASS
Program Chip:
10%
20%
:
100%
PASS Returns to the display
before executing the
command.
ERROR ERROR: xxx
xxxxxxxxxxxxxxxx
PASS
Erase,Program operation
finished.
or
PASS
EPV operation finished.
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
F
CF2: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
UB: FF
OFS: FFFFFFFF FFFFFFFF
Endianness: Little Endian
PASS
Get Device Info operation finished.
[Format]
Blank check
CF1: The result of Blank check to Code Flash1 *
CF2: The result of Blank check to Code Flash2 *
UB: The result of Blank check to User Boot *
DF: The result of Blank check to Data Flash *
Option Bytes : OPBT0 OPBT1 … OPBT7
PASS Returns to the display
before executing the
command.
ERROR ERROR: xxx
xxxxxxxxxxxxxxxx
See below.
ERROR(Exxx): <text>
R20UT2922EJ0400 Rev.4.00 Page 84 of 163
Oct 03, 2016
Page 85
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command protection: xx
ID code : ID code (ID0,ID1,…,ID15)
Lock Bits:
CF1: Lock Bits of Code Flash-1 *
CF2: Lock Bits of Code Flash-2 *
UB: Lock Bit of User Boot *
OTP flags:
CF1: OTP of Code Flash-1 *
CF2: OTP of Code Flash-2 *
UB: OTP of User Boot *
OFS: OFS0 OFS1
Endianness: Little Endian / Big Endian
* Blank check (Not Blank = 0, Blank = 1), Lock Bits / OTP (Set = 0, Unset = 1)
Bit 0 of 1st byte : Block 0
Bit 1 of 1st byte : Block 1
:
Bit 7 of 1st byte : Block 7
Bit 0 of 2nd byte : Block 8
:
R20UT2922EJ0400 Rev.4.00 Page 85 of 163
Oct 03, 2016
Page 86
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Status
Status LED
Message display
Screen output
Display after executing the
ERROR
ERROR: xxx
ERROR(Exxx): <text>
6.5.8. ged command
Get the information of endian.
Input format
'ged'
Description of the function
Get the information of endian.
Example of usage
ged Display after executing the
command [When completed
normally]
Display after executing the
command [When terminated
abnormally]
PASS Returns to the display
before executing the
command.
ERROR ERROR: xxx
xxxxxxxxxxxxxxxx
Get Endianess
Little Endian
PASS
Get Endianess operation
finished.
[Format]
Endianness: Little Endian / Big
Endian
ERROR(Exxx): <text>
6.5.9. gid command
Get the ID code.
Input format
'gid'
Description of the function
Obtains the information set by executing the [Set ID code] command on the [Device] menu of the programming GU I.
Example of usage
Command Status Status LED Message display Screen output
gid Display after executing the
command [When completed
normally]
PASS Returns to the display
before executing the
command.
[Display example]
ID code :
xxxxxxxxxxxxxxxxxxxxxxxx
PASS
ID code operation finished.
R20UT2922EJ0400 Rev.4.00 Page 86 of 163
Oct 03, 2016
command [When terminated
abnormally]
xxxxxxxxxxxxxxxx
Page 87
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Status
Status LED
Message display
Screen output
6.5.10. glb command
Get the lock bit.
Input format
'glb'
Description of the function
Get the lock bit.
Example of usage
glb Display after executing the
command [When completed
normally]
Display after executing the
command [When terminated
abnormally]
Executes a similar function to the programming GUI [Device] menu -> [Read] command.
hex: Executes [Read] with the Intel H EX format.
srec: Executes [Read] with the Motorola HEX format.
If neither hex nor srec is designated, then the [Read] will be executed in hexadecimal format. If a 16-byte-aligned range
contains blank areas and data areas, the blank areas are indicated by '**'.
start_address: Designates the starting address with a hexadecimal number.
end_address: Designates the ending address with a hexadecimal number.
If neither the start_address nor end_address options are used, then [Read] will be executed for the range set in the
Operation mode. Use as the start addr ess and end address the start address of an arbitrary block and the end address of
an arbitrary block of the target device.
Example of usage
Command Status Status LED Message display Screen output
read Display after executing the
command
Display after pressing the
Return key
Display after [Read] ends
[When completed normally]
Display after [Read] ends
[When terminated
abnormally]
<In the case of read hex 0 1000>
:10000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00
:10001000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0
:
:100FF000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF01
:00000001FF
R20UT2922EJ0400 Rev.4.00 Page 94 of 163
Oct 03, 2016
Page 95
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Status
Status LED
Message display
Screen output
Display after executing the
ERROR
ERROR: xxx
ERROR(Exxx): <text>
6.5.22. rsc command
Executes the Security Release command.
Input format
'rsc'
Description of the function
Executes the Security Release command.
Example of usage
rsc Display after executing the
command [When completed
normally]
Display after executing the
command [When terminated
abnormally]
PASS Returns to the display
before executing the
command.
ERROR ERROR: xxx
xxxxxxxxxxxxxxxx
Release security
PASS
Release security operation
finished.
ERROR(Exxx): <text>
6.5.23. scf command
Executes [Set Se curity] command.
Input format
'scf'
Description of the function
Executes a similar function to the programming GUI [Device] menu -> [Set Security] command.
Example of usage
Command Status Status LED Message display Screen output
scf Display after ex ecuting the
command [When completed
normally]
PASS Returns to the display
before executing the
command.
Set Security Flags
PASS
Security operation finished.
or
Set command protection
PASS
Set comm. prot. operation
finished.
R20UT2922EJ0400 Rev.4.00 Page 95 of 163
Oct 03, 2016
command [When terminated
abnormally]
xxxxxxxxxxxxxxxx
Page 96
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Status
Status LED
Message display
Screen output
Display after executing the
ERROR
ERROR: xxx
ERROR(Exxx): <text>
6.5.24. sed command
Executes the endian setting.
Input format
'sed'
Description of the function
Executes the endian setting.
Example of usage
sed Display after executing the
command [When completed
normally]
Display after executing the
command [When terminated
abnormally]
PASS Returns to the display
before executing the
command.
ERROR ERROR: xxx
xxxxxxxxxxxxxxxx
Set Endianness
PASS
Set Endianness operation
finished.
ERROR(Exxx): <text>
6.5.25. sid command
Sets the ID code and enables ID authentication in the serial programming mode.
Input format
'sid' (<ID Code>)
ID Code : Specifies the ID code to be set. When the sid command is specified, the specified ID code is set for the target
device instead of the ID code stored in the ESF file.
Description of the function
Sets the ID code and enables ID authentication in the serial programming mode.
Example of usage
Command Status Status LED Message display Screen output
sid Display after ex ecuting the
command [When completed
normally]
PASS Returns to the display
before executing the
command.
Set Serial Programming ID
PASS
Serial Progr. ID operation
finished.
R20UT2922EJ0400 Rev.4.00 Page 96 of 163
Oct 03, 2016
command [When terminated
abnormally]
xxxxxxxxxxxxxxxx
Page 97
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Status
Status LED
Message display
Screen output
Command
Status
Status LED
Message display
Screen output
slb
Display after executing the
PASS
Returns to the display
Set LockBits
6.5.26. sig command
Executes [Si gnature read] command.
Input format
'sig'
Description of the function
Executes a similar function to the programming GUI [Device] menu -> [Signature read] command.
Example of usage
sig Display while executing the
command
Display after executing the
command [When completed
normally]
Display after executing the
command [When terminated
abnormally]
6.5.27. slb command
Executes the Lock bits setting.
Input format
'slb'
Description of the function
Executes the Lock bits setting.
Example of usage
BUSY Signature: Device name: Dxxxxxxxxx
Device data: xx xx xx xx
Device end addr: xxxxxxxx
Security Flag: xxxx
Boot Block Number: xxxx
Device Version: x.xx
Firmware Version: x.xx
PASS Returns to the display
before executing the
command.
ERROR ERROR: xxx
xxxxxxxxxxxxxxxx
PASS
Signature operation finished.
ERROR(Exxx): <text>
R20UT2922EJ0400 Rev.4.00 Page 97 of 163
Oct 03, 2016
command
[When completed normally]
Display after executing the
command
[When terminated
abnormally]
before executing the
command.
ERROR ERROR: xxx
xxxxxxxxxxxxxxxx
PASS
LockBits operation finished.
ERROR(Exxx): <text>
Page 98
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Status
Status LED
Message display
Screen output
6.5.28. spd command
Executes the disable serial programming setting.
Input format
'spd'
Description of the function
Executes the disable serial programming setting.
Example of usage
spd Display after executing the
command
[When completed normally]
Display after executing the
command
[When terminated
abnormally]
PASS Returns to the display
before executing the
command.
ERROR ERROR: xxx
xxxxxxxxxxxxxxxx
Set Serial Programming
Disable
PASS
Set SerProgDis operation
finished.
ERROR(Exxx): <text>
6.5.29. stm command
Executes the Trusted Memory setting.
Input format
'stm'
Description of the function
Executes the Trusted Memory setting.
Example of usage
Command Status Status LED Message display Screen output
stm Display after executing the
command
[When completed normally]
Display after executing the
command
[When terminated
abnormally]
PASS Returns to the display
before executing the
command.
ERROR ERROR: xxx
xxxxxxxxxxxxxxxx
Set Trusted Memory
PASS
Set Trusted Memory operation
finished.
ERROR(Exxx): <text>
R20UT2922EJ0400 Rev.4.00 Page 98 of 163
Oct 03, 2016
Page 99
PG-FP5 V2.15 USAGE COMMUNICATION COMMANDS
Command
Status
Status LED
Message display
Screen output
Display while executing the
BUSY
Verify Block
Display after executing the
PASS
Returns to the display
PASS
6.5.30. sum command
Executes the programming GUI [Device] menu -> [Checksum] command.
Input format
'sum'
Description of the function
Executes a similar function to the programming GUI [Device] menu -> [Checksum] command.
Example of usage
sum Display after executing the
command [When completed
normally]
Display after executing the
command [When terminated
abnormally]
PASS Checksum: xxxx 0xxxxx
PASS
Checksum operation finished.
ERROR ERROR: xxx
xxxxxxxxxxxxxxxx
ERROR(Exxx): <text>
6.5.31. vrf command
Executes [Verify] c ommand.
Input format
'vrf'
Description of the function
Executes a similar function to the programming GUI [Device] menu -> [Verify] command.
Example of usage
Command Status Status LED Message display Screen output
vrf Display while executing the
command [Chip mode]
command [Block mode]
Display while executing the
command [Area mode]
BUSY Verify Chip
Addr: 0x000000
Addr: 0x000000
BUSY Verify Area
Addr: 0x000000
Verify Chip:
10%
20%
:
100%
R20UT2922EJ0400 Rev.4.00 Page 99 of 163
Oct 03, 2016
command [When completed
normally]
Display after executing the
command [When terminated
abnormally]
before executing the
command.
ERROR ERROR: xxx
xxxxxxxxxxxxxxxx
Verify operation finished.
ERROR(Exxx): <text>
Verify operation finished.
Page 100
PG-FP5 V2.15 CONNECTORS AND CABLES
+
−
Power supply connector
7. CONNECTORS AND CABLES
This chapter explains connectors and cables.
7.1. Power Supply Connector
The power supply connector is laid out on the host interface side of the FP5.
Figure 7.1 Power Supply Connector <FP5 Host Interface Side>
Figure 7.2 Power Supply Connector Pin Assignment
Note Do not connect an AC adaptor other than the one for the PG-FP5 to the power supply connecter.
R20UT2922EJ0400 Rev.4.00 Page 100 of 163
Oct 03, 2016
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.