Suisei EFP-RC2 Instruction Manual

4th Edition
SUISEI ELECTRONICS SYSTEM CO., LTD.
Thank you very much for purchasing EFP-RC2 this time.
If you have any comments about the product, please contact us or our
distributor.
The contents of this manual are subject to change without notice . The latest
information can be viewed on our website ( http://www.suisei.co.jp ).

Front page

Index

Safety Precautions ...................................................................................................................................................................... 6
Please read this part first ....................................................................................................................................................... 7
1. Preparation needed to start using EFP-RC2 ............... 8
1.1 Check content in a package and accessories ..............................................................................8
1.2 Operation environment .................................................................................................................................8
1.3 Name of each part of the product .......................................................................................................9
1.4 How to connect .............................................................................................................................................. 11
1.5 How to install CF card ............................................................................................................................... 12
2. Procedure for using EFP-RC2 ............................................ 14
2.1 Install control software .............................................................................................................................. 15
2.2 Creation of user program ( HEX / MOT ) and script file ( PBT ) ................................ 15
2.3 Convert user program ( HEX / MOT ) to data file ( Hxw ) .............................................. 16
2.4 Download data file and script file to EFP-RC2 ....................................................................... 17
2.5 Connect the Target system and EFP-RC2 ................................................................................. 18
2.6 Execute ( write ) the script file.............................................................................................................. 18
3. Command Description ............................................................... 19
3.1 Command list that can be used with RL78 and Battery Management IC .......... 19
3.2 Command list that can be used with RX ..................................................................................... 20
3.3 Command list that can be used with SH ..................................................................................... 21
3.4 Command list that can be used with R8C .................................................................................. 22
3.5 Command list that can be used with M16C ............................................................................. 23
3.6 Command list that can be used with 720 / 4500 / 740 ............................................... 24
MCU set command ( common to all ) ............................................................................................. 25
VDD supply command ( common to all ) ..................................................................................... 27
Baudrate set command ( RL78 / Battery Management IC ) ......................................... 28
Baudrate set command ( RX / SH ) ................................................................................................. 30
Baudrate set command ( R8C ) .......................................................................................................... 34
Mode entry command ( RX / SH ) ..................................................................................................... 36
ID collation command ( RX / SH )...................................................................................................... 37
EFP-RC2 Instruction Manual 4th Edition
( 2 /143 )
ID collation command ( R8C / M16C / 720 / 4500 / 740 ) ....................................... 38
Signature command ( RL78 / Battery Management IC ) ................................................. 40
Erase command ( RL78 / Battery Management IC ) ........................................................... 41
Erase command ( RX / SH ) .................................................................................................................. 42
Erase command ( R8C / M16C ) ....................................................................................................... 43
Erase command ( 720 / 4500 / 740 ) ........................................................................................ 44
Blank check command ( RL78/RX/R8C/M16C/Battery Management IC ) ....... 45
Blank check command ( SH ) ............................................................................................................... 46
Blank check command ( 720 / 4500 / 740 ) ........................................................................ 47
All block blank check command ( RX / SH ) ............................................................................. 49
All block blank check command ( R8C ) ...................................................................................... 50
High-speed blank command ( R8C / M16C ) .......................................................................... 51
Program command ( Other than SH ) ............................................................................................ 52
Program command ( SH )........................................................................................................................ 54
Verify command ( Other than SH ) .................................................................................................. 55
Verify command ( SH ) .............................................................................................................................. 56
High-speed verify command ( M16C )........................................................................................... 57
Read command ( RX / R8C / M16C )............................................................................................ 58
Read command ( SH ) ................................................................................................................................ 59
Read command ( 720 / 4500 / 740 ) ......................................................................................... 60
Security setting command ( RL78 / Battery Management IC ) .................................... 61
Security release command ( RL78 )................................................................................................. 63
Checksum command ( RL78 / Battery Management IC ) ............................................... 64
Checksum command ( RX / SH ) ...................................................................................................... 65
Lockbit set command ( RX ) .................................................................................................................. 66
Lockbit set command ( SH ) .................................................................................................................. 67
Lockbit set command ( M16C ) .......................................................................................................... 68
Read-protect command ( 720 / 4500 / 740 ) ...................................................................... 69
Wait command ( common to all ) ....................................................................................................... 70
4. Sample script ................................................................................... 72
5. Function explanation ................................................................. 77
5.1 Menu explanation .......................................................................................................................................... 77
Switch display language of menu ...................................................................................................... 77
Change menu name .................................................................................................................................... 78
Change link destination ............................................................................................................................. 79
Copy menu file ................................................................................................................................................. 80
EFP-RC2 Instruction Manual 4th Edition
( 3 /143 )
Menu display and Initialization of link destination .................................................................. 80
5.2 Display information description............................................................................................................ 81
Firmware version and CF card free space indication ......................................................... 81
CF card ID display .......................................................................................................................................... 81
USB-PID display .............................................................................................................................................. 81
Display of cumulative execution count of PBT ........................................................................ 82
Counter display ............................................................................................................................................... 82
Property display function ......................................................................................................................... 82
Display checksum of Hxw file ............................................................................................................... 83
Dump display .................................................................................................................................................... 83
5.3 One touch write .............................................................................................................................................. 84
5.4 Hxw file conversion function ................................................................................................................ 85
5.5 Edit Hxw file ....................................................................................................................................................... 86
5.6 Quick trace ......................................................................................................................................................... 87
5.7 Counter preset function ........................................................................................................................... 88
5.8 Counter clear function .............................................................................................................................. 90
5.9 How to use user memory file ................................................................................................................. 91
5.10 Option function setting ............................................................................................................................. 94
(1) Forced reset of EFP-RC2 main unit ........................................................................................ 95
(2) Time to recover at the end of command ............................................................................. 95
(3) Display time between commands .............................................................................................. 96
(4) Startup time of EFP-RC2 ................................................................................................................ 96
(5) Automatic execution of PBT file at power on .................................................................. 97
(6) Sum check of executable file at power on ......................................................................... 97
(7) Automatic sun check at Hxw download ............................................................................. 98
(8) Hxw file match ........................................................................................................................................ 99
(9) ID code output of trace file ......................................................................................................... 100
(10) Measure download time............................................................................................................. 101
5.11 Secure function of EFP-RC2 ............................................................................................................. 102
5.11.1 How to set / cancel secure function on EFP-RC2 ................................................. 104
5.11.2 How to set / cancel secure function in RC-Downloader ................................... 109
5.11.3 Operation after secure function setting .......................................................................... 113
5.11.4 Security move function ............................................................................................................... 115
5.12 ON / OFF setting of buzzer sound................................................................................................ 117
5.12.1 How to set using EFP-RC2 ...................................................................................................... 117
5.12.2 How to set using RC-Downloader ...................................................................................... 119
5.13 Change file name ........................................................................................................................................ 120
5.14 How to create the folder ....................................................................................................................... 121
EFP-RC2 Instruction Manual 4th Edition
( 4 /143 )
5.15 How to erase the file ................................................................................................................................ 122
5.16 Firmware update ......................................................................................................................................... 124
5.17 About external control signal ............................................................................................................ 125
6. RC-Downloader Detailed explanation ........................ 126
6.1 Create Hxw file ............................................................................................................................................. 126
6.2 Calculate checksum of Hxw file....................................................................................................... 128
6.3 File download ................................................................................................................................................ 129
6.4 Uploading files ............................................................................................................................................... 130
6.5 Secure function setting .......................................................................................................................... 131
6.6 Buzzer sound setting .............................................................................................................................. 132
6.7 How to install RC-Downloader ......................................................................................................... 133
6.8 How to uninstall RC-Downloader .................................................................................................. 133
7. About handling CF card ....................................................... 134
7.1 CF card file specification ....................................................................................................................... 134
7.2 Directory structure ..................................................................................................................................... 134
7.3 Restrictions on downloading .............................................................................................................. 135
7.4 CF card error ................................................................................................................................................. 135
7.5 Precautions ..................................................................................................................................................... 136
8. Trouble shooting ........................................................................ 137
9. About supported devices .................................................... 142
10. Specification ............................................................................... 142
EFP-RC2 Instruction Manual 4th Edition
( 5 /143 )
WARNING
If the requirements shown in the "WARNING" sentences are
ignored, the equipment may cause serious personal injury or
death through improper handling.
CAUTIONS
If the requirements shown in the "CAUTION" sentences are
ignored, the equipment may cause injury or property damage
through improper handling.
IMPORTANT
It means important information on using this product.
WARNING
Warnings for Installation
Please do not install this product in a place with high humidity and where it is wet with
water etc.
If water or the like spills into the inside, it can cause an unrepairable malfunction.
Warning for Use Environment
The upper limit (maximum rated ambient temperature) of the ambient temperature when
using this product is 40.
Be careful not to exceed this maximum rated ambient temperature.
CAUTIONS
Do not disassemble or modify the product. Doing so could result in equipment failure.
Handle this product carefully, please do not give strong impact by falling etc.
Do not touch the metal terminals of each connector directly with your hand.
Do not use this product in the upright position.
If you don't plan to use the hardware for an extended period of time, place in a vinyl
bag ,etc., to control humidity, and store in a place not exposed to direct sunlight where
the temperature is 0-37.

Safety Precautions

This manual explains precautions in order of warnings, cautions, and important in order to
correctly use the product and to prevent injuries / property damage etc to the people who
use it and surroundings.
Before using the product, please understand the contents stated in the notes well.
( 6 /143 )
EFP-RC2 Instruction Manual 4th Edition

Plaese read this part first

This product is a writing device dedicated to one chip microcomputer with built-in flash
ROM made by Renesas Electronics. It can not be used for writing to other devices or for
other uses.
The warranty period of this product is one year after purchase. In the meantime, defects
caused by manufacturing problems are repaired free of charge. Please contact your
dealer or our company.
However, in the following case, it becomes for a fee.
Breakage of articles of consumption (a socket, switch, etc.)
In case of damage due to mishandling of product
Moreover, it can not guarantee the defect of MCU device written by this device and the
problem caused by it.
In domestic use, we are not subject to the Electrical Appliance and Material Control Law
and electromagnetic interference prevention measures.
In addition, this equipment does not acquire safety standards such as UL, IEC and other
standards. Therefore, please be aware of this point if you are brought overseas from
Japan.
When using in Japan, we are not subject to the Electrical Appliance and Material
Control Law and electromagnetic interference prevention measures.
Moreover, this product does not acquire safety standard such as UL, IEC etc etc.
Therefore, please be aware of this point when taking it outside of Japan.
The contents described in this document may be changed without notice for future
reasons such as performance improvement in the future. Please note that we can not
assume the responsibility for the result of the operation of the description contents.
We are accepting inquiries about the contents of this document and software by our
company e-mail.
To 6-5-24, Tsurumi, Tsurumi-ku, Osaka City 538-0053, Japan
Suisei Electronics System Co., Ltd.
E-mail : support@suisei.co.jp
http://www.suisei.co.jp/
( 7 /143 )
EFP-RC2 Instruction Manual 4th Edition

1. Preparation needed to start using EFP-RC2

1.1 Check content in a package and accessories

EFP-RC2 main unit : 1
USB cable : 1
Power cable : 1
EF1TGCB-16WXTarget interface cable, cable end is not bound: 1
CF cardattached to the main unit : 1

1.2 Operation environment

Computer environment
Please check if your computer environment satisfies the following conditions.
OS: Windows XP/Vista/7(32bit/64bit)/8(32bit/64bit)/
Windows 8.132bit/64bit/1032bit/64bit
Hard disk spaceSpace capacity more than 100M byte is necessary
MemoryMemory more than 16M byte is necessary
Power Supply Input
The power supply of EFP-RC2 canbe inputted from the following lines.
External power supply connectoroutsideGNDinsideVCC
USB_I/F connector1+5V
Target connector 1GND,4:T_VDD
When two kinds of power supplies are connected simultaneously, it is supplied from a
higher voltage side.
Please use external power supply voltage more than 4V and is less than 5.5V .
When power is turned on, please do not connect the target cable in the status of target
power ON and EFP-RC2 power OFF.
For how to connect with the target, please refer to serial unit support documentation
(MCU support documentation) on our website;
http://www.suisei.co.jp/download_e/download_e.html.
EFP-RC2 Instruction Manual 4th Edition
( 8 /143 )
Name
Description
Cursor key
Cursor keys for selecting commands and parameters
A key
Usage changes depending on the application
B key
Back key : Return operation route. Cancel the selected
command
S key
Set key : Determines the selected command or parameter
LCD display
Display commands, parameters, etc.
USB I/Fconnector
Connector to connect with USB cable
External power
supply connector
1.3mm round pin power supply connector for power supply
outside : GND , inside : Vcc
Target-connection
connector
Connector to be connected with target connection cable

1.3 Name of each part of the product

Fig. 1.1 Name of each part of EFP-RC2
Table 1.1 Each part name
EFP-RC2 Instruction Manual 4th Edition
( 9 /143 )
Signal name
In/Out
Description
1
GND
GND
2
(NC)
3
T_VPP
Out
Target programming power supply output
4
T_VDD
Out
Target power supply input ( 3.3V to 5V )
5
(NC)
6
Err
Out
External display signal : Programming execution
error
7
Exec
Out
External display signal : Under command execution
8
T_PGM/OE
Out
Target write-in read-out pulse
9
T_SCLK
Out
Clock for synchronous communication for target
10
T_TXD
Out
Serial transmission data for target
11
T_RXD
In
Serial receive data from target
12
T_Busy
In
Busy signal from target
13
Start
In
External start switch signal
14
T_Reset
Out
Target reset control signal
15
(NC)
16
GND
GND
Fig. 1.2 Target connector pin layout
Table 1.2 Target connector terminal description
EFP-RC2 Instruction Manual 4th Edition
( 10 /143 )

1.4 How to connect

Connect EFP-RC2 with computer
In case data is downloaded to EFP-RC2, please connect EFP-RC2 and computer using
USB cable as shown in Fig.1.3.
Fig. 1.3 Connection with computer
Connect EFP-RC2 with target system
When executing (writing) the script to the target system, connect EFP-RC2 and the
target system as shown in Fig. 1.4.
Fig. 1.4 Connection with target system
EFP-RC2 Instruction Manual 4th Edition
( 11 /143 )

1.5 How to install CF card

Remove the back cover
Slide and remove the back cover as shown in Fig. 1.5.
Fig. 1.5 Remove the back cover
CF card installation
Install the CF card in the EFP-RC2 as shown in Fig. 1.6.
Fig. 1.6 CF card installation
EFP-RC2 Instruction Manual 4th Edition
( 12 /143 )
Back cover installation
Attach the back cover as shown in Fig. 1.7.
Fig. 1.7 Back cover installation
EFP-RC2 Instruction Manual 4th Edition
( 13 /143 )
Step1
•Install control software (P15)
Step2
Create user program ( HEX / MOT ) (P15)
Create script file ( PBT ) (P1970)
Create each file with compiler, assembler tool , editor application
Step3
Convert user pogram to data file ( Hxw ) (P16)
Operate with control software "RC-Downloader"
Step4
Download data file ( Hxw ) and script file ( PBT ) to EFP-RC2 (P17)
Operate with control software "RC-Downloader"
Step5
Setting function of EFP-RC2 (P77122) Buzzer sound, security, display time between commands etc.
If you do not change the setting , go to the next step
Step6
Connect target system with EFP-RC2 (P18)
Step7
Execute script file (P18)
Operate with EFP-RC2

2. Procedure for using EFP-RC2

EFP-RC2 Instruction Manual 4th Edition
( 14 /143 )

2.1 Install control software

EFP-RC2 control software "RC-Downloader" is an application for creating Hxw file and
downloading it to the EFP-RC2.
Please download Product CD data from the following site and execute "install.exe".
For details of installation, refer to "6.7 How to install RC-Downloader" (P.133).
http://www.suisei.co.jp/download_e/productdata_efprc2_e.html
After the installation is completed, follow the procedure from STEP 2 to STEP 7 and
operate.

2.2 Creation of user program ( HEX / MOT ) and script file ( PBT )

Please create user program using Intel HEX or Motorola S format.
Please create script file ( PBT ) that run EFP-RC2 with an editor, etc.
For details on how to create a script file ( PBT ), refer to "3. Command Description" (P.19)
and "4. Sample script" (P.72).
All the script commands including file name should be described in English one byte
characters. (except for comment texts)
English characters are not case-sensitive.
EFP-RC2 Instruction Manual 4th Edition
( 15 /143 )

2.3 Convert user program ( HEX / MOT ) to data file ( Hxw )

Firstly start RC-Downloader.EXE and open Hxw File Exchange tab.
Enter the HEX / MOT file in the Hex file (E) and enter the Hxw file name to be created in the
Hxw file (X).
After completing the setting, please click Hex -> Hxw button.
Once progress bar reaches the right edge, Hxw file is to be completed.
For detailed usage of RC-Downloader, please refer to "6. RC-Downloader Detailed
explanation" (P.126).
Enter HEX / MOT file
② Enter Hxw file to create
After setting is completed, click
EFP-RC2 Instruction Manual 4th Edition
( 16 /143 )

2.4 Download data file and script file to EFP-RC2

Connect the personal computer and the EFP-RC2 with a USB cable.
Open the File Download tab of RC-Downloader and set the created Hxw file in the
Download File field. Please select Hxw file from Browse.
Please click the download button after setting is completed.
Download is completed when the progress bar reaches the right end.
In the same way, please select the created script file from Browse and download it.
After downloading is completed, connection with the personal computer is unnecessary.
① Set Hxw file or PBT file
② After setting is completed, click
Note
The downloaded data is saved in the directory displayed on the LCD screen of EFP-RC2.
For the directory structure of the CF card, refer to "7.2 Directory structure" (P.134).
EFP-RC2 Instruction Manual 4th Edition
( 17 /143 )
Sample.PBT
Sample.Hxw
Sample.PBT
EXECUTE THIS FILE?
Sample.PBT
A=MEMORY B=NO S=YES
Place the cursor on the PBT file and press the S key.
Display alternately
Target system
Power input
Target connection cable

2.5 Connect the Target system and EFP-RC2

Connect the target system (MS board etc.) and EFP-RC2 with the target cable.
For details of the connection method, please refer to the serial unit supplementary
materials etc on our website.
http://www.suisei.co.jp/download_e/download_e.html

2.6 Execute ( write ) the script file

Move to the folder where the PBT file is saved, move the cursor to the PBT file to be
executed and press the S key.
When you press the S key, the execution confirmation screen is displayed alternately as
shown below.
If you press the S key again, execution of the script file will start.
B key is cancel. For the memory function of A key, refer to "5.9 How to use user memory
file" (P. 91).
When an error occurs, refer to "8. Trouble shooting" (P.137).
EFP-RC2 Instruction Manual 4th Edition
( 18 /143 )
Command name
Description
Command
Summary
Page
MCU set
Set the target MCU
25
VDD supply
Supply VDD to target MCU
27
Baudrate set
Change communication speed
28
Signature
G
Check target MCU name
40
Erase
Erase MCU built-in ROM
41
Blank check
Confirm that the MCU built-in ROM is erased
45
Program
Program the contents of the Hxw file to the MCU built-in ROM
52
Verify
Collate contents of Hxw file with MCU built-in ROM
55
Security setting
L
Security setting for prohibitiong program rewriting
61
Security release
D
Disable security
63
Checksum
Confirm checksum value of MCU built-in ROM
64
Wait
Temporarily stop script action
70

3. Command Description

3.1 Command list that can be used with RL78 and Battery Management IC

Table 3.1 shows the commands and their description pages that can be used with RL78
Family / Battery Management IC.
Table 3.1 Command list that can be used with RL78 and Battery Management IC
Command of "" does not correspond to RL78 / G10.
( 19 /143 )
EFP-RC2 Instruction Manual 4th Edition
Command name
Description
Command
Summary
Page
MCU set
Set the target MCU
25
VDD supply
Supply VDD to target MCU
27
Baudrate set
N
Change communication speed
30
Mode entry
Carry out a mode entry
36
ID collation
Cancel ID code protect function
37
Erase
Erase MCU built-in ROM
42
Blank check
Confirm that the MCU built-in ROM is erased
45
All block
blank check
Confirm that all blocks of the MCU built-in ROM are erased
49
Program
Program the contents of the Hxw file to the MCU built-in ROM
52
Verify
Collate contents of Hxw file with MCU built-in ROM
55
Read
Read data of MCU built-in ROM to EFP-RC2
58
Checksum
Confirm checksum value of MCU built-in ROM
65
Lockbit set
Enable lock bit of MCU built-in ROM
66
Wait
Temporarily stop script action
70

3.2 Command list that can be used with RX

Table 3.2 shows the commands and their description pages that can be used with RX
family.
3.2 Command list that can be used with RX
EFP-RC2 Instruction Manual 4th Edition
( 20 /143 )
Command name
Description
Command
Summary
Page
MCU set
Set the target MCU
25
VDD supply
Supply VDD to target MCU
27
Baudrate set
N
Change communication speed
30
Mode entry
Carry out a mode entry
36
ID collation
Cancel ID code protect function
37
Erase
Erase MCU built-in ROM
42
Blank check
Confirm that the MCU built-in ROM is erased
46
All block
blank check
Confirm that all blocks of the MCU built-in ROM are erased
49
Program
Program the contents of the Hxw file to the MCU built-in ROM
54
Verify
Collate contents of Hxw file with MCU built-in ROM
56
Read
Read data of MCU built-in ROM to EFP-RC2
59
Checksum
Confirm checksum value of MCU built-in ROM
65
Lockbit set
Enable lock bit of MCU built-in ROM
67
Wait
Temporarily stop script action
70

3.3 Command list that can be used with SH

Table 3.3 shows the commands and their description pages that can be used with SH
family.
3.3 Command list that can be used with SH
EFP-RC2 Instruction Manual 4th Edition
( 21 /143 )
Command name
Description
Command
Summary
Page
MCU set
Set the target MCU
25
VDD supply
Supply VDD to target MCU
27
Baudrate set
Change communication speed
34
ID collation
Cancel ID code protect function
38
Erase
Erase MCU built-in ROM
43
Blank check
Confirm that the MCU built-in ROM is erased
45
All block
blank check
Confirm that all blocks of the MCU built-in ROM are erased
50
High-speed blank
Confirm with high speed that the MCU built-in ROM is erased
51
Program
Program the contents of the Hxw file to the MCU built-in ROM
52
Verify
Collate contents of Hxw file with MCU built-in ROM
55
Read
Read data of MCU built-in ROM to EFP-RC2
58
Wait
Temporarily stop script action
70

3.4 Command list that can be used with R8C

Table 3.4 shows the commands and their description pages that can be used with R8C
family.
3.4 Command list that can be used with R8C
EFP-RC2 Instruction Manual 4th Edition
( 22 /143 )
Command name
Description
Command
Summary
Page
MCU set
Set the target MCU
25
VDD supply
Supply VDD to target MCU
27
ID collation
Cancel ID code protect function
38
Erase
Erase MCU built-in ROM
43
Blank check
Confirm that the MCU built-in ROM is erased
45
High-speed blank
Confirm with high speed that the MCU built-in ROM is erased
51
Program
Program the contents of the Hxw file to the MCU built-in ROM
52
Verify
Collate contents of Hxw file with MCU built-in ROM
55
High-speed verify
Collate the check sum of the Hxw file and MCU built-in ROM
data
57
Read
Read data of MCU built-in ROM to EFP-RC2
58
Lockbit set
Enable lock bit of MCU built-in ROM
68
Wait
Temporarily stop script action
70

3.5 Command list that can be used with M16C

Table 3.5 shows the commands and their description pages that can be used with M16C
family.
3.5 Command list that can be used with M16C
EFP-RC2 Instruction Manual 4th Edition
( 23 /143 )
Command name
Description
Command
Summary
Page
MCU set
Set the target MCU
25
VDD supply
Supply VDD to target MCU
27
ID collation
Cancel ID code protect function
38
Erase
Erase MCU built-in ROM
44
Blank check
Confirm that the MCU built-in ROM is erased
47
Program
Program the contents of the Hxw file to the MCU built-in ROM
52
Verify
Collate contents of Hxw file with MCU built-in ROM
55
Read
Read data of MCU built-in ROM to EFP-RC2
60
Read-protect
Y
Enable read protect function
69
Wait
Temporarily stop script action
70

3.6 Command list that can be used with 720 / 4500 / 740

Table 3.6 shows the commands and their description pages that can be used with 740
family and 720 / 4500 series.
* When using the 720/4500 series and 740 family, it is necessary to update to the
dedicated firmware ( EFPRC 2 _ 48 Qz.fxw ).
3.6 Command list that can be used with 720 / 4500 / 740
EFP-RC2 Instruction Manual 4th Edition
( 24 /143 )

MCU set command ( common to all )

Command by which target MCU is specified.
Format T=xx ; T can also be used in lowercase t.
xx "x" is the first two digits are valid, and the rest are ignored.
Description example
T=37 ; Specify RL78 ( excluding RL78/G10 ) as the target MCU
T=0 : An error occurs. ( Designation out of range )
T=50 : An error occurs. ( Same as above )
Details
The target MCU according to the corresponding variety is specified.
Be sure to include this command at the beginning of the PBT file.
Corresponding variety
01: M16C/62,80 Group
02: M16C/62P Group
03: M32C/8x Group
04: R8C/10-13 Group
05: R8C/14-1B(1Line)
06 M37775xF Group
07 M38000 NOR
08 M38000 N.D.
09 720 QzROM
10 4500 QzROM
11: 7544 QzROM
12: 7545 QzROM
13: 7546 QzROM
14: 7547-9 QzROM
15 385x QzROM
16: 38238-A QzROM
17: 38Dx Qz 8Byte
18: 7542 Flash
EFP-RC2 Instruction Manual 4th Edition
( 25 /143 )
24: 38234-5 QzROM
25 7544 Qz 4Byyte
26: 7545-7 Qz 8Byte
27: 385x Qz 8Byte
28: 38238-A Qz 8Byte
29: 38234-5 Qz 8Byte
30 7548-9 Qz 4Byyte
31: R8C/3x,Lx(Type1) ( notesPlease use it when it does not work in T=32 )
32: R8C/3x,Lx(Type2)
33: R8C/2x (Type1) ( notesPlease see the device list for supported groups )
34: R8C/2x (Type2) ( notesPlease see the device list for supported groups )
35: R8C/2x (Type3)) ( notesPlease see the device list for supported groups )
36: R8C/Lx-SLP
37: RL78 ( notesExcept RL78/G10 )
38: RX LittleEndian
39: RX BigEndian
40: SH Family
41: RL78/G10
42: FGIC RL78Core
Note
Executing the command with the setting of the target MCU incorrectly may cause
unexpected errors and destruction of the target MCU, so pay attention to the setting
carefully.
Please refer to http://www.suisei.co.jp/devicelist_e.html for the device list.
When upgrading the firmware, the order of corresponding products may be changed.
When using the target MCU setting from 8 to 18, 24 to 30, a dedicated interface board
( EFXQZP-01-x ) is required.
EFP-RC2 Instruction Manual 4th Edition
( 26 /143 )
1: M16C/62,80 Group
31: R8C/3x,Lx(Type1)
38: RX(LittleEndian)
2: M16C/62P Group
32: R8C/3x,Lx(Type2)
39: RX(BigEndian)
3: M32C/8x Group
33: R8C/2x(Type1)
40: SH
4: R8C/10-13 Group
34: R8C/2x(Type2)
41: RL78/G10
5: R8C/14-(1Line)
35: R8C/2x(Type3)
42: FGIC RL78Core
6: M3775xF Group
36: R8C/Lx-SLP
7: M38000 NOR
37: RL78

VDD supply command ( common to all )

Command to supply VDD (+ 5V) to target MCU.
Format X=1 ; X can also be used in lowercase x.
Description example
X=1 ; Supply Vdd to the MCU.
x=0 ; An error occurs. (Designation out of range)
X ; Ignored by error. (There is no argument)
Details
VDD (+5V) is supplied from the EFP-RC2 to the user target board, enabling access such
as data read, verify and write.
Corresponding variety
Of the MCUs supported by EFP-RC2, there are 18 types of MCUs that can supply VDD.
If an MCU other than the following is specified, this command is ignored.
Note
It is only +5V that can output VDD from EFP-RC2. If it is used for an MCU with other VDD
voltage, there is a risk of damaging the MCU. Please use after confirming sufficiently.
Although the current capacity that can be supplied is possible up to 300mA, if the inrush
current of the board is large, an error occurs, and in the worst case the EFP-RC2 itself
Please describe this command after MCU set command.
will reset. In case this command is used, please do so, taking account of consumption
current of target board.
EFP-RC2 Instruction Manual 4th Edition
( 27 /143 )
Value
Baudrate [bps]
S=4
115200(Default)
S=5
250000
S=6
500000
S=7
1000000

Baudrate set command ( RL78 / Battery Management IC )

Command to change the communication speed with the target MCU.
Format S=xS can also be used in lowercase s.
x Valid from 4 to 7.
The communication speed of each setting value is as shown in the table below.
Description example
S=6 ; Set the communication speed to 500000bps.
S=8 ; An error occurs. ( Designation out of range )
S : An error occurs. ( There is no argument )
Details
RL78 family communicates at 115,200 bps (default) when accessing data read, verify,
write, etc.
By changing the setting value you can change the communication speed and reduce
processing time.
Corresponding variety
RL78 family ( This function can not be used with RL78/G10 series ),
Battery Management IC
EFP-RC2 Instruction Manual 4th Edition
( 28 /143 )
Note
If the compatibility with the mounted MCU clock oscillator is bad, an error occurs in the
MCU access and a device error occurs. Please change communication speed and use.
After setting, it operates at the baud rate set until changing the MCU setting (T
command) or turning off the power of the EFP-RC2.
Please describe this command after MCU set command.
EFP-RC2 Instruction Manual 4th Edition
( 29 /143 )

Baudrate set command ( RX / SH )

Command to change the communication speed with the target MCU.
Format N=xxxN can also be used in lowercase n.
xxx Valid from 1 to 256.
Description example
N=2 Set the communication speed to 1Mbps.
N An error occurs. ( There is no argument )
Details
RX family communicates at 9,600 bps (default) when accessing data read, verify, write,
etc.
By changing the setting value you can change the communication speed and reduce
processing time.
For the communication speed of each setting value, refer to Setting value and baudrate
(1) to (3) from the next page.
Corresponding varietyRX family, SH family
Note
If the compatibility with the mounted MCU clock oscillator is bad, an error occurs in the
MCU access and a device error occurs. Please change communication speed and use.
After setting, it operates at the baud rate set until changing the MCU setting (T
command) or turning off the power of the EFP-RC2.
Please describe this command after MCU set command.
EFP-RC2 Instruction Manual 4th Edition
( 30 /143 )
Value
Baudrate
Value
Baudrate
Value
Baudrate
Value
Baudrate
N=1
2000000
N=29
68965
N=57
35087
N=85
23529
N=2
1000000
N=30
66666
N=58
34482
N=86
23255
N=3
666666
N=31
64516
N=59
33898
N=87
22988
N=4
500000
N=32
62500
N=60
33333
N=88
22727
N=5
400000
N=33
60606
N=61
32786
N=89
22471
N=6
333333
N=34
58823
N=62
32258
N=90
22222
N=7
285714
N=35
57142
N=63
31746
N=91
21978
N=8
250000
N=36
55555
N=64
31250
N=92
21739
N=9
222222
N=37
54054
N=65
30769
N=93
21505
N=10
200000
N=38
52631
N=66
30303
N=94
21276
N=11
181818
N=39
51282
N=67
29850
N=95
21052
N=12
166666
N=40
50000
N=68
29411
N=96
20833
N=13
153846
N=41
48780
N=69
28985
N=97
20618
N=14
142857
N=42
47619
N=70
28571
N=98
20408
N=15
133333
N=43
46511
N=71
28169
N=99
20202
N=16
125000
N=44
45454
N=72
27777
N=100
20000
N=17
117647
N=45
44444
N=73
27397
N=101
19801
N=18
111111
N=46
43478
N=74
27027
N=102
19607
N=19
105263
N=47
42553
N=75
26666
N=103
19417
N=20
100000
N=48
41666
N=76
26315
N=104
19230
N=21
95238
N=49
40816
N=77
25974
N=105
19047
N=22
90909
N=50
40000
N=78
25641
N=106
18867
N=23
86956
N=51
39215
N=79
25316
N=107
18691
N=24
83333
N=52
38461
N=80
25000
N=108
18518
N=25
80000
N=53
37735
N=81
24691
N=109
18348
N=26
76923
N=54
37037
N=82
24390
N=110
18181
N=27
74074
N=55
36363
N=83
24096
N=111
18018
N=28
71428
N=56
35714
N=84
23809
N=112
17857
Setting value and boudrate (1)
Unitbps
EFP-RC2 Instruction Manual 4th Edition
( 31 /143 )
Value
Baudrate
Value
Baudrate
Value
Baudrate
Value
Baudrate
N=113
17699
N=141
14184
N=169
11834
N=197
10152
N=114
17543
N=142
14084
N=170
11764
N=198
10101
N=115
17391
N=143
13986
N=171
11695
N=199
10050
N=116
17241
N=144
13888
N=172
11627
N=200
10000
N=117
17094
N=145
13793
N=173
11560
N=201
9950
N=118
16949
N=146
13698
N=174
11494
N=202
9900
N=119
16806
N=147
13605
N=175
11428
N=203
9852
N=120
16666
N=148
13513
N=176
11363
N=204
9803
N=121
16528
N=149
13422
N=177
11299
N=205
9756
N=122
16393
N=150
13333
N=178
11235
N=206
9708
N=123
16260
N=151
13245
N=179
11173
N=207
9661
N=124
16129
N=152
13157
N=180
11111
N=208
9615
N=125
16000
N=153
13071
N=181
11049
N=209
9569
N=126
15873
N=154
12987
N=182
10989
N=210
9523
N=127
15748
N=155
12903
N=183
10928
N=211
9478
N=128
15625
N=156
12820
N=184
10869
N=212
9433
N=129
15503
N=157
12738
N=185
10810
N=213
9389
N=130
15384
N=158
12658
N=186
10752
N=214
9345
N=131
15267
N=159
12578
N=187
10695
N=215
9302
N=132
15151
N=160
12500
N=188
10638
N=216
9259
N=133
15037
N=161
12422
N=189
10582
N=217
9216
N=134
14925
N=162
12345
N=190
10526
N=218
9174
N=135
14814
N=163
12269
N=191
10471
N=219
9132
N=136
14705
N=164
12195
N=192
10416
N=220
9090
N=137
14598
N=165
12121
N=193
10362
N=221
9049
N=138
14492
N=166
12048
N=194
10309
N=222
9009
N=139
14388
N=167
11976
N=195
10256
N=223
8968
N=140
14285
N=168
11904
N=196
10204
N=224
8928
Setting value and boudrate (2)
Unitbps
EFP-RC2 Instruction Manual 4th Edition
( 32 /143 )
Value
Baudrate
Value
Baudrate
Value
Baudrate
Value
Baudrate
N=225
8888
N=233
8583
N=241
8298
N=249
8032
N=226
8849
N=234
8547
N=242
8264
N=250
8000
N=227
8810
N=235
8510
N=243
8230
N=251
7968
N=228
8771
N=236
8474
N=244
8196
N=252
7936
N=229
8733
N=237
8438
N=245
8163
N=253
7905
N=230
8695
N=238
8403
N=246
8130
N=254
7874
N=231
8658
N=239
8368
N=247
8097
N=255
7843
N=232
8620
N=240
8333
N=248
8064
N=256
7812
Setting value and boudrate (3)
Unitbps
EFP-RC2 Instruction Manual 4th Edition
( 33 /143 )
Value
Baudrate [bps]
S=0
9600
S=1
19200(Default)
S=2
38400
S=3
57600
S=4
115200
S=5
230400
S=6
460800

Baudrate set command ( R8C )

Command to change the communication speed with the target MCU.
Format S=xS can also be used in lowercase s.
x Valid from 0 to 6.
The communication speed of each setting value is as shown in the table below.
Description example
S=3 ; Set the communication speed to 57600bps.
S=7 ; An error occurs. ( Designation out of range )
S : An error occurs. ( There is no argument )
Details
R8C family communicates at 19,200 bps (default) when accessing data read, verify, write,
etc.
By changing the setting value you can change the communication speed and reduce
processing time.
Corresponding variety
R8C/14-(1Line), R8C/2x, R8C/3x, R8C/Lx
( This function can not be used with R8C/10-13 group )
EFP-RC2 Instruction Manual 4th Edition
( 34 /143 )
Note
If the compatibility with the mounted MCU clock oscillator is bad, an error occurs in the
MCU access and a device error occurs. Please change communication speed and use.
After setting, it operates at the baud rate set until changing the MCU setting ( T
command ) or turning off the power of the EFP-RC2.
Please describe this command after MCU set command.
When you use the maximum high speed of S= 4 or higher, please use what can generate
the most exact possible baud rate for the MCU clock oscillation child carried in the target
board. ( ex. 14.7456MHz )
MCUs not equipped with high-speed OCO can be set up to S=3. ( Fastest 57600 bps )
EFP-RC2 Instruction Manual 4th Edition
( 35 /143 )

Mode entry command ( RX / SH )

Command to make each command executable.
Format:M,[ Main Clock Frequency ],[ Main Clock Multiplication Ratio ],[ Peripheral Clock
Multiplication Ratio ]
; M can also be used in lowercase m.
Main Clock FrequencyWrite the main clock operating frequency in units of 0.01MHz
( Example 12.4MHz : 1240 )
Main Clock Multiplication RatioFill in the multiplication ratio according to the MCU
specification
Peripheral Clock Multiplication RatioFill in the multiplication ratio according to the MCU
specification
Description example
,800,,4;Frequency = 8MHz, Main Clock Multiplication Ratio = 8, Peripheral Clock
Multiplication Ratio = 4
Details
In order to execute each command in the RX family and SH family, it is necessary to first
execute the mode entry command.
Please describe this command after Baudrate setting command.
EFP-RC2 Instruction Manual 4th Edition
( 36 /143 )

ID collation command ( RX / SH )

Release ID code protect function.
Format i,[ Number of executions ],[ ID code ], [ ID code format ]
;i can also be used in uppercase I.
Number of executions 0 = 1 time, 1 = 3 times
ID code16 byte ID code
ID code format0 = ASCII code input, 1 = HEX code input
Description example
i,0,ESUISEIPROTECTID,0 ; Input by ASCII codes
i,0,450102030405060708090a0b0c0d0e0f,1 ; Input by HEX codes
Details
Enables access to the MCU by canceling the ID code protection function before each
command is executed.
Please describe this command after Mode entry command.
Note
The number of bytes transmitted is fixed at 16 bytes.
In case of SH family, please fill in the unnecessary part on the upper side of the ID code
with FF.
EFP-RC2 Instruction Manual 4th Edition
( 37 /143 )

ID collation command ( R8C / M16C / 720 / 4500 / 740 )

Release ID code protect function. ( Flash ROM only )
Format i,[ ID area first address ],[ ID code ],[ ID code format ]
;i can be either uppercase or lowercase letters.
ID code format0 = ASCII code input, 1 = HEX code input
Description example
i,FFFDF,SUISEIS,0 ; Input by ASCII codes
i,FFFDF,01020304050607,1 ; Input by HEX codes
Details
Enables access to the MCU by canceling the ID code protection function before each
command is executed.
Corresponding variety
Use this command only for products that support ID code protection.
Note
The MCU's corresponding ID area start address has a default value exists by MCU. An
error will occur if written incorrectly.
If ID code protection cancellation fails on MCU with ID written, all commands will not be
accepted. Please turn off MCU power once.
Reference
After ID verification is successfully completed, the following ID verification commands will
be ignored until the power to the target board (MCU) is turned off. Even if ID verification is
conducted with wrong codes, an error does not happen.
This command is ignored in case of an erased MCU (not protected). If rewriting is
frequently performed on an MCU equipped with an ID code protect function, we
recommend that you insert this command line before executing each command.
The HEX/MOT files that are created without having to worry about an ID, IDs of all zeros
are normally set.
( For details, please check each MCU's program , user manual etc. )
EFP-RC2 Instruction Manual 4th Edition
( 38 /143 )
Forced erase function
For an MCU with a forced erase function, it is possible to erase the entire area by
writing "ALeRASE" ( ASCII code input ) as ID code.
For details of the forced erase function, refer to the hardware manual of each
MCU.
Description example i,FFDF,ALeRASE,0 ; ASCII code input
Note If program and verify are executed with the same script using "ALeRASE", the
program data will be erased before the verify check.
When "ALeRASE" is used, it is recommended to execute only the ID collation
command.
( 39 /143 )
EFP-RC2 Instruction Manual 4th Edition

Signature command ( RL78 / Battery Management IC )

Command to check the type name of the target MCU.
Format: G,[ MCU type name ( up to 10 characters )] ; G can also be used in lowercase g.
Description example:
G,R5F100LE ; Confirm the MCU type name is R5F100LExxx.
G,R5F ; Confirm the MCU type name is R5Fxxxxxxxx.
Details
Confirm that the target MCU type name matches the parameter content.
Parameters can be set from 1 to 10 characters, only set characters are checked.
Corresponding variety
RL78 family ( This function can not be used with RL78/G10 series ),
Battery Management IC
Example of use
Since an error occurs when the parameters do not match, erroneous writing to a different
series MCU can be prevented.
EFP-RC2 Instruction Manual 4th Edition
( 40 /143 )

Erase command ( RL78 / Battery Management IC )

Erase the MCU built-in flash ROM.
Format e,[ erase block start address ],[ lockbit format ] ; case of block erase
e,,[ lockbit format ] ; case of all erase
; e can be either uppercase or lowercase letters
lockbit format 0valid , 1invalid
erase block start addressStart address of block to erase
Description example
e,00000000,1 ; case of block erase
E,,1 ; case of all erase ( not describing the block start address )
Details
It is possible not to erase the locked block by enabling the lock bit format.
When lock bit format is invalidated, all blocks are erased regardless of lock / unlock status.
Corresponding variety
RL78 family ( This function can not be used with RL78/G10 series ),
Battery Management IC
Note
If you all erase with the battery management IC, erase all other than erase prohibited area.
If erase prohibited area is specified by block erase, an error will occur.
EFP-RC2 Instruction Manual 4th Edition
( 41 /143 )

Erase command ( RX / SH )

Erase the MCU built-in flash ROM.
Format e,[block end address ],[ lockbit format ] ; case of block erase
e,,[ lockbit format ] ; case of all erase
; e can be either uppercase or lowercase letters
lockbit format 0valid , 1invalid
block end address End address of block to be erased
Description example
e,ffffffff,1 ; case of block erase
E,,1 ; case of all erase ( not describing the block end address )
Details
It is possible not to erase the locked block by enabling the lock bit format.
When lock bit format is invalidated, all blocks are erased regardless of lock / unlock status.
The user boot area is not erased with all erase.
Corresponding varietyRX family , SH family
Note
To erase the user boot area, execute the block erase command.
Write end block address as FF7FFFFF. ( Common to both RX and SH )
For the SH family, it is always erasable regardless of whether the lock bit format is valid or
invalid.
EFP-RC2 Instruction Manual 4th Edition
( 42 /143 )

Erase command ( R8C / M16C )

Erase the MCU built-in flash ROM.
Format e,[ block end WORD address ],[ lockbit format ] ; case of block erase
e,,[ lockbit format ] ; case of all erase
; e can be either uppercase or lowercase letters
lockbit format 0valid , 1invalid
block end WORD address Even value of end address of block to erase
Description example
e,fffe,1 ; case of block erase
E,,1 ; case of all erase ( not describing the block end address )
Details
It is possible not to erase the locked block by enabling the lock bit format.
When lock bit format is invalidated, all blocks are erased regardless of lock / unlock status.
Corresponding varietyR8C family , M16C family
Note
Please note that some MCUs ( such as M16C / 62P ) of the M16C have blocks that can
not be erased with the all erase command.
EFP-RC2 Instruction Manual 4th Edition
( 43 /143 )
M38000 special notation of NOR type MCU ( MCU type = 7 )
Please write a comma after this command only for this model and specify the start
address of the on-chip ROM in your MCU as an argument. If this is not mentioned,
a command error occurs.
Description example e,1000 ; Set the ROM start address to 1000H
Note
An error occurs if an address not supported by the MCU is described in the start
address.

Erase command ( 720 / 4500 / 740 )

Erase the MCU built-in flash ROM.
Format e,[ block end WORD address ],[ lockbit format ] ; case of block erase
e,,[ lockbit format ] ; case of all erase
; e can be either uppercase or lowercase letters
lockbit format 0valid , 1invalid
block end WORD address Even value of end address of block to erase
Description example
e,fffe,1 ; case of block erase
E,,1 ; case of all erase ( not describing the block end address )
Details
It is possible not to erase the locked block by enabling the lock bit format.
When lock bit format is invalidated, all blocks are erased regardless of lock / unlock status.
Corresponding variety720 / 4500 series and 740 family ROM built-in MCU
Note
QzROM can not be erased.
( 44 /143 )
EFP-RC2 Instruction Manual 4th Edition

Blank check command ( RL78/RX/R8C/M16C/Battery Management IC )

Confirm that the MCU built-in flash ROM is erased.
Format b,[ start address ],[ end address ]
; b can be either uppercase or lowercase letters
start address Start address of area to be executed
end address End address of area to be executed
Description example b,C0000,FFFFF
Details
Confirm that the data from the start address to the end address of the MCU built-in Flash
ROM is erased.
Corresponding variety
RL78 family , RX family , R8C family , M16C family , Battery Management IC
Note
If address other than MCU compatible address is described in start address or end
address, an error occurs.
In case of MCU of page writing, an error occurs unless you specify start address to end
address in 1 page unit (256 byte).
It can not be used in the data flash area of the RX family.
If the address of the write / erase prohibited area is specified for both the start address
and the end address in the battery management IC, an error will occur.
EFP-RC2 Instruction Manual 4th Edition
( 45 /143 )

Blank check command ( SH )

Confirm that the MCU built-in flash ROM is erased.
Format b,[ area type ],[ start address ],[ end address ]
; b can be either uppercase or lowercase letters
start address Start address of area to be executed
end address End address of area to be executed
area type 1 = User area , 3 = User boot area
Description example b,1,00000000,0013FFFF ;Blank check user area
Details
Confirm that the data from the start address to the end address of the MCU built-in Flash
ROM is erased.
Corresponding varietySH family
Note
If address other than MCU compatible address is described in start address or end
address, an error occurs.
It can not be used in the data flash area of the RX family.
EFP-RC2 Instruction Manual 4th Edition
( 46 /143 )

Blank check command ( 720 / 4500 / 740 )

Confirm that the MCU built-in ROM is erased.
Format b, [ start address ],[ end address ]
; b can be either uppercase or lowercase letters
start address Start address of area to be executed
end address End address of area to be executed
Description example b,4000,FFFF
Details
Confirm that the data from the start address to the end address of the MCU built-in ROM
is erased.
Corresponding variety
720 / 4500 series , 740 family ( QzROM 4Byte/8Byte write excluded )
Note
If address other than MCU compatible address is described in start address or end
address, an error occurs.
In case of MCU of page writing, an error occurs unless you specify start address to end
address in 1 page unit (256 byte).
EFP-RC2 Instruction Manual 4th Edition
( 47 /143 )
Special notation at the time of the QzROM 4Byte/8Byte setting
This MCU setting uses a special writing and reading method for processing at high
speed.
Format b,[ blank data Hxw file ],[ start address ],[ end address ]
blank data Hxw file
For 4Byte blank dataQzBlank_4Byte.HXW For 8Byte blank dataQzBlank_8Byte.HXW
Blank data Hxw file is stored in "\ Software \ 8bit QzROM Blank Data" folder of
Product CD Data.
Please download it in the same folder as the execution script file of EFP-RC2
when using it.
( 48 /143 )
EFP-RC2 Instruction Manual 4th Edition

All block blank check command ( RX / SH )

Confirm that the data of all blocks of MCU built-in ROM are erased.
Format: b,[ area type ] ; b can be either uppercase or lowercase letters
area type 1 = User area , 2 = Data area , 3 = User boot area
Description example: b,1 :All block blank check of user area
Details
Confirm that data of all blocks are erased in each area of the MCU built-in ROM.
The erase confirmation is executed by the boot program, so it can be checked faster than
usual blank command.
Corresponding varietyRX family , SH family
Note
An error occurs when setting the MCU type incorrectly.
EFP-RC2 Instruction Manual 4th Edition
( 49 /143 )

All block blank check command ( R8C )

Confirm that the data of all blocks of MCU built-in ROM are erased.
Format: b ; b can be either uppercase or lowercase letters
Description example: b
Details
Confirm that data of all blocks are erased in each area of the MCU built-in ROM.
The erase confirmation is executed by the boot program, so it can be checked faster than
usual blank command.
Corresponding variety
R8C/3x, Lx series ( choose MCU Type T=31, T=32 or T=36 )
Note
An error occurs when setting the MCU type incorrectly.
EFP-RC2 Instruction Manual 4th Edition
( 50 /143 )

High-speed blank command ( R8C / M16C )

Confirm with high speed that the MCU built-in ROM is erased.
Format b,[ start address ],[ end address ],1
; b can be either uppercase or lowercase letters
Description example b,C0000,FFFFF,1
Details
Confirm that the data from the start address to the end address of the MCU built-in ROM
is erased.
The erase confirmation is executed by the boot program, so it can be checked faster than
usual blank command.
Corresponding variety
M16C/63-65 ( MCU Type choose T=02 )
R8C/3x,Lx series ( MCU Type is T=31 or to choose T=32 )
R8C/2x series ( MCU Type is T=33 or to choose T=34 )
Note
If address other than MCU compatible address is described in start address or end
address, an error occurs.
In case of MCU of page writing, an error occurs unless you specify start address to end
address in 1 page unit (256 byte).
An error occurs when setting the MCU type incorrectly.
EFP-RC2 Instruction Manual 4th Edition
( 51 /143 )

Program command ( Other than SH )

( RL78 / RX / R8C / M16C / 720 / 4500 /740 / Battery Management IC )
Program the contents of the Hxw file to the MCU built-in ROM
Format p,[ Hxw file name ],[ start address ],[ end address ], [ lockbit format ]
; p can be either uppercase or lowercase letters
Hxw file name Hxw file name downloaded to the CF card of EFP-RC2
start address Start address of area to be executed
end address End address of area to be executed
lockbit format 0valid , 1invalid
Description example
p, SAMPLE.Hxw,C0000,FFFFF,0 ; Lockbit valid
P, SAMPLE.Hxw,C0000,FFFFF,1 ; Lockbit invalid
Details
Writes Hxw data from the start address to the end address in the MCU internal ROM.
Even if it is a locked area, if the data in that area has been erased, it is possible to set the
lock bit invalid and write it.
If locked area is set to lock bit enabled and written, an error occurs.
Even if it is not locked, writing to an unerased page results in an error. ( RL78 / G10 does
not apply because it automatically executes erase before programming. )
Corresponding variety
RL78 family , RX family , R8C family , M16C family , 720 / 4500 series , 740 family , Battery
Management IC
Note
If an address other than the address range of the Hxw file is described in the start / end
address, an error will occur.
In case of MCU of page writing, an error occurs unless you specify start address to end
address in 1 page unit (256 byte).
EFP-RC2 Instruction Manual 4th Edition
( 52 /143 )
If the end address of the MOT file is not xxxxxxFFh, when converting from MOT to Hxw
with RC-Downloader, set the Setting type to Manual in the Hxw data domain setting item,
set the start address to xxxxxx00h and end address to xxxxxxFFh , please convert it. At
this time, 0xFF data is embedded in the unused area of the conversion source MOT file.
Writing is not executed for the program / erase prohibited area of the battery
management IC.
EFP-RC2 Instruction Manual 4th Edition
( 53 /143 )

Program command ( SH )

Program the contents of the Hxw file to the MCU built-in ROM
Format p, [ Hxw file name ],[ area type ],[ start address ],[ end address ], [ lockbit format ]
; p can be either uppercase or lowercase letters
Hxw file name Hxw file name downloaded to the CF card of EFP-RC2
area type 1 = User area , 2 = Data area , 3 = User boot area
start address Start address of area to be executed
end address End address of area to be executed
lockbit format 0valid , 1invalid
Description example
p, SAMPLE.Hxw,1,00000000,0013FFFF,1 User area , Lockbit invalid
Details
Writes Hxw data from the start address to the end address in the MCU internal ROM.
Even if it is a locked area, if the data in that area has been erased, it is possible to set the
lock bit invalid and write it.
Even if it is not locked, writing to an unerased page results in an error.
Corresponding variety:SH family
Note
If an address other than the address range of the Hxw file is described in the start / end
address, an error will occur.
In case of MCU of page writing, an error occurs unless you specify start address to end
address in 1 page unit (256 byte).
If the end address of the MOT file is not xxxxxxFFh, when converting from MOT to Hxw
with RC-Downloader, set the Setting type to Manual in the Hxw data domain setting item,
set the start address to xxxxxx00h and end address to xxxxxxFFh , please convert it. At
this time, 0xFF data is embedded in the unused area of the conversion source MOT file.
In the SH family, it is always possible to write, regardless of whether the lock bit is locked
or unlocked.
EFP-RC2 Instruction Manual 4th Edition
( 54 /143 )

Verify command ( Other than SH )

( RL78 / RX / R8C / M16C / 720 / 4500 /740 / Battery Management IC )
Collate contents of Hxw file with MCU built-in ROM
Format v,[ Hxw file name ],[ start address ],[ end address ]
; v can be either uppercase or lowercase letters
Hxw file name Hxw file name downloaded to the CF card of EFP-RC2
start address Start address of area to be executed
end address End address of area to be executed
Description example v,SAMPLE.Hxw,C0000,FFFFF
Details
Collate the data from the start address to the end address with MCU built-in ROM and the
data of the Hxw file.
Corresponding variety
RL78 family ( This function can not be used with RL78/G10 series ) , RX family , R8C
family , M16C family , 720 / 4500 series , 740 family , Battery Management IC
Note
If an address other than the address range of the Hxw file is described in the start / end
address, an error will occur.
In case of MCU of page writing, an error occurs unless you specify start address to end
address in 1 page unit (256 byte).
It can not be used in the data flash area of the RX family.
Verify check is not executed for the program / erase prohibited area of the battery
management IC.
EFP-RC2 Instruction Manual 4th Edition
( 55 /143 )

Verify command ( SH )

Collate contents of Hxw file with MCU built-in ROM
Format v, [ Hxw file name ],[ area type ],[ start address ],[ end address ]
; v can be either uppercase or lowercase letters
Hxw file name Hxw file name downloaded to the CF card of EFP-RC2
area type 1 = User area , 3 = User boot area
start address Start address of area to be executed
end address End address of area to be executed
Description example
v,SAMPLE.Hxw,1,00000000,0013FFFF ;Verify check of user area
Details
Collate the data from the start address to the end address with MCU built-in ROM and the
data of the Hxw file.
Corresponding variety:SH family
Note
If an address other than the address range of the Hxw file is described in the start / end
address, an error will occur.
It can not be used in the data flash area.
EFP-RC2 Instruction Manual 4th Edition
( 56 /143 )

High-speed verify command ( M16C )

Collate the check sum of the Hxw file and MCU built-in ROM data
Format v,[ Hxw file name ],[ start address ],[ end address ],[ CRC sum value .]
; v can be either uppercase or lowercase letters
Description example v,SAMPLE.Hxw,C0000,FFFFF,1234
Details
Collate the CRC sum value from the start address to the end address with MCU built-in
ROM and the CRC sum value of the Hxw file.
Collation of CRC sum value is executed by MCU boot program, so it can be collated faster
than normal verify command.
Corresponding variety
M16C/63 - 65 , M16C/30P (choose MCU Type T=02)
M32C/87 , R32C/111 - 118 (choose MCU Type T=03)
Note
If an address other than the address range of the Hxw file is described in the start / end
address, an error will occur.
In case of MCU of page writing, an error occurs unless you specify start address to end
address in 1 page unit (256 byte).
An error occurs when setting the MCU type incorrectly.
EFP-RC2 Instruction Manual 4th Edition
( 57 /143 )

Read command ( RX / R8C / M16C )

The data of the MCU built-in ROM is read into EFP-RC2.
Format r,[ Hxw file name ],[ start address ],[ end address ]
; r can be either uppercase or lowercase letters
Hxw file name Hxw file name to be read to EFP-RC2
start address Start address of area to be executed
end address End address of area to be executed
Description example r, Read.Hxw,FFFFF000,FFFFFFFF
Details
The data from the start address to the end address of the MCU built-in ROM is read.
Corresponding varietyRX family , R8C family , M16C family
Note
If address other than MCU compatible address is described in start address or end
address, an error occurs.
If you write anything other than Hxw in the file extension it will result in an error.
In the RX family, it is not possible to read the data flash area.
Reference
You can upload the data you have read and save it on your computer.
Using the created Hxw file, you can write to other MCUs. Especially the Hxw file created
by reading the entire area of the MCU is not different from the data of the original MCU.
EFP-RC2 Instruction Manual 4th Edition
( 58 /143 )

Read command ( SH )

The data of the MCU built-in ROM is read into EFP-RC2.
Formatr,[ Hxw file name ],[ area type ],[ start address ],[ end address ]
; r can be either uppercase or lowercase letters
Hxw file name Hxw file name to be read to EFP-RC2
area type 1 = User area , 3 = User boot area
start address Start address of area to be executed
end address End address of area to be executed
Description example r, Read.Hxw,1,00000000,0013FFFF
Details
The data from the start address to the end address of the MCU built-in ROM is read.
Corresponding varietySH family
Note
If address other than MCU compatible address is described in start address or end
address, an error occurs.
If you write anything other than Hxw in the file extension it will result in an error.
In the SH family, it is not possible to read the data flash area.
Reference
You can upload the data you have read and save it on your computer.
Using the created Hxw file, you can write to other MCUs. Especially the Hxw file created
by reading the entire area of the MCU is not different from the data of the original MCU.
EFP-RC2 Instruction Manual 4th Edition
( 59 /143 )

Read command ( 720 / 4500 / 740 )

The data of the MCU built-in ROM is read into EFP-RC2.
Format r,[ Hxw file name ],[ start address ],[ end address ]
; r can be either uppercase or lowercase letters
Hxw file name Hxw file name to be read to EFP-RC2
start address Start address of area to be executed
end address End address of area to be executed
Description example r, Read.Hxw,4000,FFFF
Details
The data from the start address to the end address of the MCU built-in ROM is read.
Corresponding variety
720/4500 series , 740 family ( QzROM 4 Byte / 8 Byte write excluded )
Note
If address other than MCU compatible address is described in start address or end
address, an error occurs.
If you write anything other than Hxw in the file extension it will result in an error.
It can not be read in QzROM 4 Byte / 8 Byte write mode.
Reference
You can upload the data you have read and save it on your computer.
Using the created Hxw file, you can write to other MCUs. Especially the Hxw file created
by reading the entire area of the MCU is not different from the data of the original MCU.
EFP-RC2 Instruction Manual 4th Edition
( 60 /143 )
Protect
content
Rewrite of Boot
cluster 0 prohibit
Block erase
prohibit
Write prohibit
0 × ×
× 1 ○
×
×
2 × ○
× 3 ○
× 4 ×
×
5 ○ ×
○ 6 ×
○ 7 ○

Security setting command ( RL78 / Battery Management IC )

Command to set the security of the target MCU.
Format
L,[ Boot block number ],[ FSW start block ],[ FSW end block ], [ Protect content ]
; L can be either uppercase or lowercase letters
Description example
L, 3,0,0,4 ; Write disable is set. ( Boot block number is fixed to 3 )
Details
Disable write to the target MCU, prohibit block erase, prohibit rewriting of boot cluster 0,
and set the flash shield window ( FSW ).
Details of protect contents are as shown in the table below.
※ ○:Enable , ×:Disable
Corresponding variety
RL78 family ( This function can not be used with RL78/G10 series ),
Battery Management IC
Note
It can not be invalidated after setting block erase prohibition and boot cluster 0 rewrite
prohibition. After that, you can not perform block erase on the MCU, erase and write to
the boot cluster 0.
We recommend that you execute it with PBT dedicated to security setting alone after
checking target board operation.
EFP-RC2 Instruction Manual 4th Edition
( 61 /143 )
Security verification function
By adding ", v" to the end of the security setting command, it is possible to check
the state of security set in the target MCU.
Format L, [ Boot block number ],[ FSW start block ],[ FSW end block ], [ Protect content ] ,V
Description example L, 3,0,0,2,V ; Make sure erase prohibition is set.
Details
Compare the parameters described in the command with the security status set
in the target MCU.
Note
If the boot block number, FSW start block, FSW end block, and protect contents
do not all match, an error will occur.
( 62 /143 )
EFP-RC2 Instruction Manual 4th Edition

Security release command ( RL78 )

Command to initialize the security set in the target MCU.
Format: D ; D can be either uppercase or lowercase letters
Description example
D ; Initialize set write inhibit and FSW.
D=0 ; An error occurs. ( Arguments can not be used )
Details
When the security release command is executed, the set write inhibit and flash shield
window (FSW) are initialized.
It is not possible to cancel about boot cluster 0 rewrite prohibition and erase prohibition.
Corresponding variety
RL78 family ( This function can not be used with RL78/G10 series ),
Note
After executing the security setting command in the battery management IC, the security
release command can not be used.
EFP-RC2 Instruction Manual 4th Edition
( 63 /143 )

Checksum command ( RL78 / Battery Management IC )

Command to confirm the checksum value of the data in the MCU built-in ROM.
Format H,[ start address ],[ end address ],[ checksum value ]
; H can be either uppercase or lowercase letters
Description example
H,00000,0FFFF,0000
Details
Confirm that the checksum value of the data of the MCU built-in ROM matches the set
checksum value.
Corresponding variety
RL78 family , Battery Management IC
Note
Please set the start address and end address so that the address range is 256 bytes.
The checksum value is the value obtained by subtracting from the start address to the
end address in 1 byte units.
For the battery management IC, calculate the checksum value except the write / erase
prohibited area.
EFP-RC2 Instruction Manual 4th Edition
( 64 /143 )

Checksum command ( RX / SH )

Command to confirm the checksum value of the data in the MCU built-in ROM.
Format H,[ area type ],[ ROM size ],[ checksum value ]
; H can be either uppercase or lowercase letters
area type 1 = User area , 2 = Data area , 3 = User boot area
ROM size Described in KB units ( 64KB 64 , 2MB 2048 )
checksum value 4 Byte ( longword data added by byte unit )
Description example
H,1,256,1D4B59E6
Details
Confirm that the checksum value of the data of the MCU built-in ROM matches the set
checksum value.
Corresponding variety
RX family , SH family
Note
The checksum value is longword data obtained by byte-adding all data in the ROM area.
The calculated size of SUM is as follows, and if it does not satisfy the following size in
each area, SUM is calculated with the closest size over the mounting size.
Missing areas are calculated as FF.
Data area , User boot area : 8kByte × 2n ( n = 0 , 1 , 2・・・)
User area : 64kByte × n ( n = 0 , 1 , 2・・・)
If there is an unwritten area in the data area, the data becomes undefined.
EFP-RC2 Instruction Manual 4th Edition
( 65 /143 )

Lockbit set command ( RX )

A lock bit can be set for each block of the MCU built-in ROM to prevent erroneous erase,
write mistake, etc.
Format k,[ Lock block end address ]
; k can be either uppercase or lowercase letters
Lock block end address End address of area to be executed
Description example
k, FFFFFFFF ; When the end address is FFFFFFFF
Details
The lock bit is locked for each block specified by the lock block end address.
Corresponding varietyRX family
Note
To cancel locking, it is necessary to erase with lock bit invalid.
In the RX family, the lock bit protect function exists only in the user area.
If the corresponding block end address of the MCU is written incorrectly, an error will
occur.
EFP-RC2 Instruction Manual 4th Edition
( 66 /143 )

Lockbit set command ( SH )

A lock bit can be set for each block of the MCU built-in ROM to prevent erroneous erase,
write mistake, etc.
Formatk,[ area type ],[ Lock block end address ]
; k can be either uppercase or lowercase letters
area type 1 = User area
Lock block end address End address of area to be executed
Description example
k,1,0013FFFFF ; User area , When the end address is 0013FFFF
Details
The lock bit is locked for each block specified by the lock block end address.
Corresponding varietySH family
Note
To cancel locking, it is necessary to erase with lock bit invalid.
In the SH family, the lock bit protect function exists only in the user area.
If the corresponding block end address of the MCU is written incorrectly, an error will
occur.
EFP-RC2 Instruction Manual 4th Edition
( 67 /143 )

Lockbit set command ( M16C )

A lock bit can be set for each block of the MCU built-in ROM to prevent erroneous erase,
write mistake, etc.
Format k,[ Lock block end address ]
; k can be either uppercase or lowercase letters
Lock block end address Last even value of end address of area to be executed
Description example
k, CFFFE ; When the end address is CFFFF
Details
Please specify the last even value of the end address of the locked block as an argument.
Corresponding varietyM16C family
Note
If the corresponding block end address of the MCU is written incorrectly, an error will
occur.
EFP-RC2 Instruction Manual 4th Edition
( 68 /143 )
4Bit MCU
720 QzROM4500 QzROM
8Bit MCU
7544 QzROM7545 QzROM7546 QzROM7547-9 QzROM
385x QzROM38238-A QzROM38Dx Qz 8Byte

Read-protect command ( 720 / 4500 / 740 )

Command to protect the target MCU and prohibit access to the MCU.
FormatY ; Y can be either uppercase or lowercase letters
Description example
Y ; Protect MCU
Y=0 ; An error occurs ( arguments can not be used )
Details
Protect the target MCU and prohibit access such as data read, verify and write afterwards.
Corresponding variety
Note
Execution of this command makes it impossible to access data such as data read, verify
and write to the MCU afterwards.
We recommend that you run it on a single protect-only PBT after checking the operation
of the target board.
( 69 /143 )
EFP-RC2 Instruction Manual 4th Edition

Wait command ( common to all )

Command to pause script. ( While the script is stopped, MCU reset is released. )
Format:W=xx ; W can be either uppercase or lowercase letters
xx Specify the number of seconds to pause (Valid from 0 to 99, 0 waits for key input )
Description example
W=7 ; Stop script execution for 7 seconds.
w=0 ; Stop script execution until key input is made.
Details
Wait command can stop the script operation for 1 to 99 seconds or until there is a key
input.
While stopping, resetting the target MCU is released, so it is possible to operate the MCU
with the writing cable connected.
While waiting for key input, a warning sound (beeping) is generated once every 5 minutes.
If any key is pressed in the key input waiting state and released, the command after the
wait command can be continued. This command can be used many times in one PBT file.
Example of use
It is possible to perform operation check by operating simple debugging and demonstration
software without disconnecting cables, such as protect write after checking operation
with protectable MCU.
A reference example of the PBT file using the wait command is shown on the next page.
Note
The writer normally terminates without releasing the reset of the target MCU for safety
after writing is completed. To check the operation, disconnect the power supply, remove
the connection cable for writing, and then turn on the power again to the target board to
check. If resetting is canceled after writing, MCU operation may be affected by the circuit
to which the writing cable is connected.
EFP-RC2 Instruction Manual 4th Edition
( 70 /143 )
Contents of PBT file
Operating condition
t=1 i,ffffdf,,1 e,,1 b,fc0000,ffffff p,test.hxw,fc0000,ffffff,1 v,test.hxw,fc0000,ffffff w=0 i,ffffdf,,1 e,,1 b,fc0000,ffffff p,shukka.hxw,fc0000,ffffff,1 v,shukka.hxw,fc0000,ffffff w=5
Target MCU setting ( M16C/62, 80 Group ) ID setting Erase target MCU data Blank check Writing adjustment program Verify check Adjustment of the target board etc. until key input ID setting Erase target MCU data Blank check Writing shipping program Verify check Confirm target board operation for 5 seconds end
Contents of PBT file
Operating condition
t=1 i,ffffdf,,1 e,,1 p,demo1.hxw,fc0000,ffffff,1 w=60 i,ffffdf,,1 e,,1 p,demo2.hxw,fc0000,ffffff,1 w=60
Target MCU setting ( M16C/62, 80 Group ) ID setting Erase target MCU data Writing demonstration program 1 Run Demonstration program 1 for 1 minute ID setting Erase target MCU data Writing demonstration program 2 Run Demonstration program 2 for 1 minute end
As this command may cause safety problems depending on the circuit configuration of
the target circuit board, please fully consider this point and use it at your own risk.
We can not take responsibility even if any damage caused by use occurs. Also, it does not
guarantee MCU operation at reset release.
If you are using SECURITY LEVEL 2, please note that even if you press the B key while
waiting for a key input, the script will not be canceled.
Usage example of wait command
A reference example of PBT file using wait command is shown below.
Reference example for shipment inspection
Reference example for demonstration
EFP-RC2 Instruction Manual 4th Edition
( 71 /143 )
Script contents
Command description
t=37
s=6
e,,1
b,00000,0ffff
p,data.hxw,00000,0ffff,1
v,data.hxw,00000,0ffff
L,3,0,0,4
L,3,0,0,4,V
Set MCU type
Communication baud rate setting (500 kbps).
When this setting is not done, it is set to
115200 bps.
Erase all areas (lockbit invalid)
Blank check
Writing the program (lockbit invalid)
Verify check
Write-protected setting with security setting
command
Confirm security contents with security verify
command.
An error occurs if it does not match the
contents of the security setting command.

4. Sample script

Here is a reference example of a script file (extension .pbt) necessary for writing in
EFP-RC2.
For details of each command, please see "3. Command Description".
In case of RL78 / G13 (R5F100LE)
After setting the communication baud rate, when erase, blank, program, verify, and setting
security for all areas, the script is as follows.
EFP-RC2 Instruction Manual 4th Edition
( 72 /143 )
Script contents
Command description
t=38
s=3
M,3200,1,1
i,0,450102030405060708090A0B0C0D0E0F,1
e,,1
e,FF7FFFFF,1
b,FFF80000,FFFFFFFF
b,FF7FC000,FF7FFFFF
b,2
p,User_Program.hxw,FFF80000,FFFFFFFF,1
p,Data_Program.hxw,00100000,00101FFF,1
p,Boot_Program.hxw,FF7FC000,FF7FFFFF,1
v,User_Program.hxw,FFF80000,FFFFFFFF
v,Boot_Program.hxw,FF7FC000,FF7FFFFF
H,2,8,000FED0B
Set MCU type
38 : Select RX ( little endian )
Communication baud rate setting
(500 kbps).
Mode entry command
ID collation
Erase user area all
Block erase (User boot area)
Blank check
Blank check of data area is valid
for all area blank check command
only
Program to user area
Program to data area
Program to user boot area
Verify the user area
Verify the user boot area
Since the verify check is not
possible for the data area, confirm
with the checksum.
In case of RX210 (R5F52108)
After setting the communication baud rate, when erase, blank, program, and verify for all
areas, the script is as follows.
EFP-RC2 Instruction Manual 4th Edition
( 73 /143 )
Script contents
Command description
t=40
s=3
M,1600,6,2
i,0,FFFFFFFFFFFFFFFF0001020304050607,1
e,,1
e,FF7FFFFF,1
b,1,00000000,0013FFFF
b,2
b,3,00000000,00007FFF
p,User_Program.hxw,1,00000000,0013FFFF,1
p,Data_Program.hxw,2,80100000,80107FFF,1
p,Boot_Program.hxw,3,00000000,00007FFF,1
v,User_Program.hxw,1,00000000,0013FFFF
v,Boot_Program.hxw,3,00000000,00007FFF
H,2,32,003FD1E3
Set MCU type , 40 : Select SH
Communication baud rate setting
(500 kbps).
Mode entry command
ID collation
The ID code is fixed at 16 bytes.
When the ID code is less than 16
bytes, the upper side is FF.
Erase user area all
Block erase (User boot area)
Blank check ( User area )
Blank check ( Data area )
Blank check ( User boot area )
Program to user area
Program to data area
Program to user boot area
Verify the user area
Verify the user boot area
Since the verify check is not
possible for the data area, confirm
with the checksum.
In case of SH7250 (R5F72531)
After setting the communication baud rate, when erase, blank, program, and verify for all
areas, the script is as follows.
EFP-RC2 Instruction Manual 4th Edition
( 74 /143 )
Script contents
Command description
t=34
s=3
i,ffdf,SUISEIS,0
e,,0
b,4000,13fff
p,data.hxw,4000,13fff,0
v,data.hxw,4000,13fff
Set MCU type
Communication baud rate setting (57600 bps).
When this setting is not done, it is set to
19200 bps.
Cancel ID protect
Erase all areas (lockbit valid)
Blank check
Writing the program (lockbit valid)
Verify check
In case of R8C/Tiny (R5F212B)
After setting the communication baud rate, when erase, blank, program, and verify for all
areas, the script is as follows.
EFP-RC2 Instruction Manual 4th Edition
( 75 /143 )
Script contents
Command description
t=02
i,fffdf,SUISEIS,0
e,,1
b,c0000,fffff
p,data.hxw,c0000,fffff,1
v,data.hxw,c0000,fffff
r,read_data.hxw,c0000,fffff
k,cffff
k,dffff
k,effff
k,f7fff
k,f9fff
k,fbfff
k,fdfff
k,fefff
k,fffff
Set MCU type
Cancel ID protect
( Example of protect code : "SUISEIS" )
Erase all areas (lockbit invalid)
Blank check
Writing the program (lockbit invalid)
Verify check
Read written data
Enable the lock bit of each block.
In case of M16C/62P (M30624FGP)
When erase, blank, program, verify, read, and lock bit setting are performed for all areas,
the script is as follows.
EFP-RC2 Instruction Manual 4th Edition
( 76 /143 )
Display
Link destination
Remarks
1:FILES
CF ROOT
Used for file operation.
(uppermost route of CF card)
2:PROGRAM
DOWNLOAD
Folder for writing
3:MCU SET
MCU_TYPE
Folder for writing
4:USER
USER
Subfolder for writing
5:FIRM UPDATE
FIRMWARE
Save firmware version update data
English display
Japanese display
1:FILES
1:ファイル ソウサ
2:PROGRAM
2:プログラム
3:MCU SET
3:MCU セッテイ
4:USER
4:ユーザー
5:FIRM UPDATE
5:ファーム アップデイト

5. Function explanation

5.1 Menu explanation

At the time of EFP-RC2 start, the upper two rows of the following five items are displayed
on the LCD, and the display items can be switched with key and key. Move the cursor
to each item and press the key to move to the respective link destination.
For the directory structure of the CF card, refer to "7.2 Directory structure" (P.134).
Table 5.1 Display menu screen ( default )
* Since the data downloaded to the FIRMWARE folder is protected, it can not be deleted on
this machine.

Switch display language of menu

You can switch between English display and Japanese display alternately by holding down
key and pressing A, B and S key at the same time on the menu screen.
EFP-RC2 Instruction Manual 4th Edition
( 77 /143 )
MENU02 [READ]
WHICH FILE TO READ?
MENU02 [READ]
A=CANSEL S=READ
Alternate display

Change menu name

It is possible to change the display name of the menu item.
< Operation procedure >
Step1 Press the B key while holding down ↑ key on the menu screen to switch to menu
file selection mode.
Step2 Select MENU 02 to 99 with and key and press S key to set as specified file
and return to menu screen. Since MENU 01 saves the initial state, it can not be
edited.
Step3 Pressing the B key while pressing the key again displays [MEMORY FILE
CREATED] and returns to the menu screen.
Step4 When you press the B key while holding the key again, the mark is
displayed on the right side of the menu file.
When MENU 02 is selected, it is displayed as follows.
Step5 Pressing the key in the above state shifts to the menu name edit mode.
→ and key use to select the character you want to change and use ↑ and ↓
key to change the character.
Alphabetic letters are A key and it is possible to convert case.
Place the cursor on the rightmost blank and press the ↑ or ↓ key to add letters.
Pressing the A key erases the last letter.
Step6 When you press the S key, it decides name change and moves on to editing the
next item. Pressing the B key cancels the editing and moves to the next item.
When all the items are changed, the edit mode is exited and the change contents
are displayed on the menu screen.
Note
You can not edit the item number of the menu name and ": (colon)".
The number of characters that can be used for the menu name is 1 to 18 characters.
When replacing the CF card, the setting of the menu file returns to the initial state (MENU
01). Please set the menu file again.
EFP-RC2 Instruction Manual 4th Edition
( 78 /143 )
Menu item
Link destination
Modifiable
1:FILES
CF ROOT
Can not change
2:PROGRAM
DOWNLOAD
Changeable
3:MCU SET
MCU_TYPE
Changeable
4:USER
USER
Changeable
5:FIRM UPDATE
FIRMWARE
Can not change
2:PROGRAM
LINK THIS MENU?
2:PROGRAM
U/D=SEL B=NO S=YES
Alternate display

Change link destination

It is possible to freely change the folder to open directly from the menu.
The only changeable menu is the link destination of items 2 to 4.
To change the link destination, it is necessary to set it to a menu file other than MENU01 in
advance.
Table 5.2 Changeable link destination
< Operation procedure >
Step1 Open the menu item "1: FILES", move the cursor to the desired folder displayed
within "<" and ">", press the key while holding down the B key to switch to the
link destination change mode To do.
Step2 As [LINK TO MENU?] Is displayed, press the S key to specify the selected folder
as the link destination. To cancel, press the B key.
Step3 The menu items linked to the upper line of the LCD are displayed as shown
below.
Step4 Select the menu item to link with ↑ or key, and press the S key to change the
link destination. To cancel, press the B key.
Note
The link to "CF ROOT" of menu item 1 can not be changed.
When replacing the CF card, the setting of the menu file returns to the initial state (MENU
01). Please set the menu file again.
EFP-RC2 Instruction Manual 4th Edition
( 79 /143 )
MENU03 [WRITE]
WHICH FILE TO WRITE?

Copy menu file

Copy the contents of the currently used menu file to another menu file.
< Operation procedure >
Step1 Press the B key while holding down key on the menu screen to enter menu file
selection mode.
Step2 Select the copy destination menu file and press the → key to switch from [READ]
to [WRITE] as shown below.
Step3 Pressing the S key in the above state copies the menu file.

Menu display and Initialization of link destination

The changed menu name and link destination are returned to the initial state.
< Operation procedure >
Step1 Press the B key while holding down key on the menu screen to enter menu file
selection mode.
Step2 Select MENU01 with the or key and press the S key to return to the menu
screen and initialization is completed.
EFP-RC2 Instruction Manual 4th Edition
( 80 /143 )
EFPRC2 Ver.1.xx.xx
xxxxxxxxxx BYTE FREE
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxx BYTE FREE
USB PID:xxxx xxsct
CRC:xxxx 201x/xx/xx
Firmware version
CF card free space indication
CF card ID
CF card free space indication
USB-PID
CRC sum value of the firmware and creation date

5.2 Display information description

Information on the EFP-RC2 and various files is displayed.

Firmware version and CF card free space indication

Pressing the key while the menu screen is displayed displays the firmware version of
EFP-RC2 in the upper row of the LCD, and the free space of the CF card in the lower row.

CF card ID display

When the key is pressed while the firmware version and free space of the CF card are
displayed, the CF card ID is displayed in the upper row of the LCD and the free space of the
CF card is displayed in the lower row.

USB-PID display

When the key is pressed on the CF card ID and CF card free space display screen,
USB-PID is displayed at the upper row of the LCD, CRC sum value of the firmware and
creation date are displayed at the lower row.
EFP-RC2 Instruction Manual 4th Edition
( 81 /143 )
Total count:
xx Count
PBT EXECUTED: xx
ERR.OCCURRED: xx
201x/xx/xx 00:00:00
xxKbyte a-----
Cumulative execution count of PBT
PBT execution count
Error occur count
Creation date
Data size

Display of cumulative execution count of PBT

When the key is pressed on the display screen of USB-PID, CRC sum value and creation
date of firmware, the cumulative execution count of PBT is displayed.

Counter display

When the S key is pressed on the screen displayed the firmware version and the free space
of the CF card, the PBT execution count is displayed in the upper row and the error
occurrence count is displayed in the lower row.
In the above state, pressing the A key shifts to the counter clear mode ( P.90 ), and
pressing the key shifts to the preset mode ( P.88 ). Press the B key to return to the
menu screen.

Property display function

With the file or folder selected, pressing the B key displays the creation date and time and
the size, and continues to display as long as you press the B key.
Release the B key to return to the file or folder display screen.
EFP-RC2 Instruction Manual 4th Edition
( 82 /143 )
xxxxxx.HXW
SUM CHECK OR EDIT?
xxxxxx.HXW
A=EDIT B=CAN. S=SUM
Alternate display

Display checksum of Hxw file

If you press the S key while Hxw file is selected, it will be in checksum display and edit
selection mode. If you press S key again, the checksum will be displayed.
Pressing the A key transitions to the Hxw edit mode, and pressing the B key cancels it.

Dump display

If you press the S key with something other than the following files selected, dump display
will start.
Press the B key to cancel.
< Excluded files >
PBT file, Hxw file, MOT file, HEX file
EFP-RC2 Instruction Manual 4th Edition
( 83 /143 )
Sample
Ready to Start...
Name of the PBT file to be executed

5.3 One touch write

When you turn on the power, you can determine the execution script automatically, and
you can execute the script with just one touch.
When executing the script with this function, it automatically creates a trace file
( RESULT.TXT ).
< Operation procedure >
Step1 Set [ Auto Execute = on ] in automatic execution of PBT file at power on ( P.97 )
in option function setting.
Step2 Download one pair of PBT file and HXW file to be used on the CF ROOT.
( Select FILES on the menu screen and save to the root moved with key. )
Step3 If Step1 and Step2 are already set up, the following screen will be displayed
when turning on the power supply.
Step4 Pressing the S key on the above screen starts executing the displayed PBT file.
Pressing the B key or the ← key will cancel and the menu screen will be displayed.
Step5 After the script is finished, the execution result is displayed. Since the screen of
Step3 is displayed again with any key input, it is possible to execute the script
continuously.
Note
This function requires that a pair of PBT file and HXW file is stored on the CF ROOT.
Even if [ Auto Execute = on ] is set, if the file is insufficient, a normal menu screen will be
displayed.
The created trace file is automatically overwritten every time.
EFP-RC2 Instruction Manual 4th Edition
( 84 /143 )
[■■■■ ]
Converting Now!
Execution is completed when progress bar reaches the
right end.

5.4 Hxw file conversion function

It is possible to convert from Motorola S format and Intel HEX format to Hxw file by
operation of EFP-RC2.
< Operation procedure >
Step1 Select the file of Motorola S format or Intel HEX format downloaded to
EFP-RC2.
Step2 When you press the S key, the following display is displayed and creation of the
Hxw file is started.
Step3 After completion, an Hxw file with the same name as the original file is created in
the same folder.
Note
If an Hxw file with the same name already exists, this function will be canceled, so please
execute it after deleting the Hxw file with the same name.
When using an MCU in which the data flash area, program area, and boot area are
arranged separately, program data for each area must be created. If you convert from
one data you can not convert correctly with over capacity.
EFP-RC2 Instruction Manual 4th Edition
( 85 /143 )
Set Adrs: 000000
Set Data: 00
Start address of Hxw file
The data of the displayed address

5.5 Edit Hxw file

It is possible to edit the Hxw file by operating the EFP-RC2.
< Operation procedure >
Step1 Move the folder from FILES and select the Hxw file to edit.
Step2 When you press the S key, a selection screen for checksum display and Hxw file
edit is displayed.
Step3 When you press the A key, the following display is displayed and you can edit the
Hxw file.
Step4 Use the and key to manipulate the digit position of the address, and
change the address value with and key. The displayed data follows the
changed address.
Step5 After setting the address, pressing the A key moves the cursor to the data side
and you can change the data. Like the address, change the data digit position
with and key, and change the data with and key.
To return the cursor to the address side, press the A key again.
Step6 Press the S key to display the next address. If the cursor is at the least significant
digit of the address, the previous address is displayed each time the key is
pressed.
Step7 When you press the B key, recalculate the CRC, write it to the CF card, and finish
editing the Hxw file.
Note
Since you will directly change the data of the Hxw file, please be careful when using it.
The data is changed when the value is changed with the or key. There is no
cancellation function, so please manually restore the original data.
It can not be edited if the folder is being moved using a link other than FILES.
EFP-RC2 Instruction Manual 4th Edition
( 86 /143 )
RL78_EBPV.PBT [TRACE START]
1:<t=37> RL78 Group T COMMAND OK!
2:<s=6> Set 500Kbps!
3:<e,,1> MCU ERASING NOW! E COMMAND OK! TIME = 1.129sec.
4:<b,0000,FFFF> BLANK CHECKING NOW! B COMMAND OK! TIME = 1.135sec.
5:<p,RL78_sample.hxw,0000,FFFF,1> DATA PROGRAMING NOW! P COMMAND OK! TIME = 3.147sec.
6:<v,RL78_sample.hxw,0000,FFFF> DATA VERIFING NOW! V COMMAND OK! TIME = 3.084sec.
[TRACE END]
Execution file name Start tracing
Command executed Processing content Success or failure of execution
Command executed Processing content
Command executed Processing content Success or failure of execution Processing time
Command executed Processing content Success or failure of execution Processing time
Command executed Processing content Success or failure of execution Processing time
Command executed Processing content Success or failure of execution Processing time
End tracing

5.6 Quick trace

Create the command execution result og the PBT file to be executed as a trace file.
< Operation procedure >
Step1 Select the PBT file to be executed and hold down the key and press the S
key.
Step2 Since execution confirmation screen is displayed, press S key to start execution.
Step3 After the script is finished, RPT_xxx.TXT is created in the same folder.
( xxx is a three-digit number )
The trace file when running RL78/G13 is shown below.
Sample trace file
EFP-RC2 Instruction Manual 4th Edition
( 87 /143 )
COUNTER-MODE CHANGE?
S=CHANGE B=CANSEL
Set PBT COUNT:00000
U/D=chg. B=CAN S=SET
PBT execution count setting value

5.7 Counter preset function

Set the execution count of PBT, and decrement the counter by 1 each time PBT is
executed. When the counter reaches 0, each counter value blinks for confirmation and an
alarm sound is generated.
< Operation procedure >
Step1 Press the key on the menu screen, and shift to the firmware version display
screen.
Step2 Press the S key, and shift to the execution times counter display screen.
Step3 When the key is pressed, the following counter mode change screen is
displayed. Press S key to shift to the setting screen of PBT execution count. If you
press the B key, it will be canceled and you will return to the counter display
screen.
Step4 On the setting screen below, it is possible to set the execution count of PBT from
0 to 59999.
Use the and keys to select the digit to be changed, press the and ↓ keys
to change the value, then press the S key to set the number of times to execute.
If you press the B key, it will be canceled and you will return to the counter display
screen.
When it is set to 0, it operates with the normal integration counter.
When it is set to 1 or more, it operates in preset mode.
EFP-RC2 Instruction Manual 4th Edition
( 88 /143 )
PBT REMAINS : xx
ERR.OCCURRED: xx
Remaining PBT execution count
Number of error occurrences
Step5 After setting to the preset mode, the counter display screen switches to the
display of the number of remaining execution and the number of error
occurrences as shown below.
Note
When set to preset mode, the counter clear function is invalid.
After the counter value of PBT becomes 0, it needs to set again the execution count.
EFP-RC2 Instruction Manual 4th Edition
( 89 /143 )
COUNTER CLEAR?
S=CLEAR B=CANSEL

5.8 Counter clear function

Initialize accumulated PBT execution counter. ( It returns to 0. )
< Operation procedure >
Step1 Press the key on the menu screen to shift to the firmware version display
screen.
Step2 Press the S key to move to the execution counter display screen.
Step3 Press the A key to display the following counter clear screen.
Step4 When S key is pressed, PBT execution count and error count are initialized. If you
press the B key, it will be canceled and you will return to the counter display
screen.
Note
When the counter preset function is used, the counter can not be initialized.
EFP-RC2 Instruction Manual 4th Edition
( 90 /143 )
xxxxxx.PBT
EXECUTE THIS FILE?
xxxxxx.PBT
A=MEMORY B=NO S=YES
MEMORY01
WHICH SET MEMORIES?
MEMORY01
U/D=SEL. B=CAN S=SET
User memory files
Memory channel
Alternate display
Alternate display

5.9 How to use user memory file

By storing the PBT file in the memory channel in the user memory file, it is possible to
execute the PBT file immediately without searching the file or moving the folder.
There are 99 user memory files ( USER01 - 99 ), and memory channels can be saved up
to 30 ( MEMORY01 - 30 ), respectively.
Multiple users can use individual user memory files by switching user memory files.
< Operation procedure >
(1)Save to memory channel
Step1 Select the PBT file to be stored and press the S key, the following screen will be
displayed, press the A key.
Step2 Use the ↑ and ↓ keys to select the memory channel, and use the S key to decide
to save the PBT file. Press the B key to cancel.
Note
A file with on the right side of the file name indicates that data is saved.
If you save another data in a file marked with , the data will be overwritten.
Once you overwrite the stored PBT file with download etc., the memory will be deleted.
EFP-RC2 Instruction Manual 4th Edition
( 91 /143 )
MEMORY01
xxxxxx
A=DELETE B=CAN S=SET
xxxxxx
MEMORY01
DELETE THIS MEMORY?
MEMORY01
B=CANSEL / S=YES
PBT file name
Alternate display
Alternate display
(2)Execution of memory
Step1 Pressing the S key on the menu screen will display the saved memory channel
number and PBT file name as shown below.
Step2 Use the ↑ and keys to select the memory channel and press the S key to start
script execution.
Step3 After the script is finished, the execution result is displayed. Since you return to
the memory file selection screen of Step1 with one of the key inputs, you can
execute it continuously. Press the B key to return to the menu screen.
(3)Erase memory
Step1 In the menu screen press S key to move to the memory file selection screen.
Step2 Select the memory file to erase with and keys and press the A key.
Step3 The following erase confirmation screen will be displayed, so when you press the
S key, the memory file will be erased. Press the B key to return to the menu
screen.
Note
If you are loading a user file with no data, pressing the S key is also invalid.
EFP-RC2 Instruction Manual 4th Edition
( 92 /143 )
USER01 [READ]
FILE READ? DELETE?
USER02 [READ]
WHICH FILE TO READ?
USER01 [WRITE]
WHICH FILE TO WRITE?
(4)Switch user memory file
Step1 When you press the B key on the menu screen, the user memory file being used
is dislplayed. ( Initial setting is USER01 )
Step2 Select the user memory file to switch with and keys and press the S key to
decision.
A file with on the right of the file name indicates that there is saved data of
the PBT file.
When there is saved data When there is no saved data
(5)Copy user memory file
Step1 In the menu screen press Bkey to shift to the user memory file selection screen.
Step2 If there is saved data in the user memory file, pressing key will switch from
[READ] to [WRITE] as shown below. ( If there is no data, the key is invalid. )
Step3 Use the and keys to select the copy destination user memory file and
press the S key to copy the stored contents.
Note
If you replace the CF card, the settings will be canceled so you need to set it again.
When using memory execution, do not set the MCU type with EFP-RC2. Please set with
T command in PBT file.
EFP-RC2 Instruction Manual 4th Edition
( 93 /143 )
Setting items
(1) Forced reset of EFP-RC2 main unit
(2) Time to recover at the end of command
(3) Display time between commands
(4) Startup time of EFP-RC2
(5) Automatic execution of PBT file at power on
(6) Sum check of executable file at power on
(7) Automatic sun check at Hxw download
(8) Hxw file match
(9) ID code output of trace file
(10) Measure download time
If (5) is off, skip the item.

5.10 Option function setting

You can set optional functions by pressing the key and S key on the menu screen.
Every time you press the S key, the items to be set change in the following order. Please
press the S key up to the item you want to set.
If you change the setting other than the forced reset of item 1, you will be stored in the
EFP-RC2 main unit by pressing the S key.
Pressing the B key will exit the setting mode and return to the menu screen.
If there is no key input for 10 seconds for each item, exit setting mode and return to the
menu screen.
Even if you turn off the power, this setting will be saved.
EFP-RC2 Instruction Manual 4th Edition
( 94 /143 )
GO TO RESET?
A=RESET S=CANSEL
Remain time = 60sec.
Set Remain time?
Remain time = 60sec.
U/D=SEL. B=CAN S=SET
Alternate display

(1) Forced reset of EFP-RC2 main unit

It is possible to reset and restart the EFP-RC2 main unit.
Step1 When entering the setting, the LCD flashes with the following display.
Step2 Pressing the A key restarts the EFP-RC2 after reset. If automatic execution is
permitted, it will wait for execution.
Step3 Press the S key to move to the next setting. Also, even if 5 seconds elapse
without pressing anything, it will shift to the next setting.

(2) Time to recover at the end of command

It is possible to change the time to return to the original screen after PBT execution.
Normally, the return time is set to 60 seconds, and the execution result of the final
command is displayed during this time.
Step1 When the setting is started, it is displayed on the LCD as follows. ( initial state )
Step2 It is possible to set from 0 to 60 seconds with the and keys. If it is set to 0
second, the execution result is displayed until any key input is made.
Step3 Press the S key to complete the setting and move to the next setting. Pressing
the B key cancels the setting and returns to the menu screen.
EFP-RC2 Instruction Manual 4th Edition
( 95 /143 )
Interval time=Normal
Set interval time?
Interval time=Normal
U/D=SEL. B=CAN S=SET
Power on = Normal
Power-on time set?
Power on = Normal
U/D=SEL. B=CAN S=SET
Alternate display
Alternate display

(3) Display time between commands

It is possible to shorten the execution time by omitting the execution result display time of
each command.
Step1 When the setting is started, it is displayed on the LCD as follows. ( initial state )
Step2 It is possible to set it to "Normal", "Short", "Non" with the and keys.
NormalDisplay execution result for 1 second
ShortNo execution result display, only sound effects occurred
NonNo execution result display, no sound effects
Step3 Press the S key to complete the setting and move to the next setting. Pressing
the B key cancels the setting and returns to the menu screen.

(4) Startup time of EFP-RC2

It is possible to shorten the time to start up by omitting display of the free space of the CF
card and display of the MCU type setting of the main unit when the power of this machine is
turned on.
Step1 When the setting is started, it is displayed on the LCD as follows. ( initial state )
Step2 It is possible to set it to "Normal", "Short" with the and keys.
NormalDisplayed CF card free space etc. at startup
ShortOmit display of CF card free space etc. at startup
Step3 Press the S key to complete the setting and move to the next setting. Pressing
the B key cancels the setting and returns to the menu screen.
EFP-RC2 Instruction Manual 4th Edition
( 96 /143 )
Auto Execute = off
Start-up Mode?
Auto Execute = off
U/D=SEL. B=CAN S=SET
Root Check = on
Root CRC Check?
Root Check = on
U/D=SEL. B=CAN S=SET
Alternate display
Alternate display

(5) Automatic execution of PBT file at power on

It is possible to automatically execute the PBT file on CF route at power on.
Step1 When the setting is started, it is displayed on the LCD as follows. ( initial state )
Step2 It is possible to set it "on" or "off" with the and keys.
onEnable automatic execution of PBT file
offDisable automatic execution of PBT file
Step3 Press the S key to complete the setting and move to the next setting. Pressing
the B key cancels the setting and returns to the menu screen.

(6) Sum check of executable file at power on

It is possible to set the automatic sum check of the Hxw file on the route of the CF card at
power on.This item can be set only when automatic execution of PBT file is enabled.
Step1 When the setting is started, it is displayed on the LCD as follows. ( initial state )
Step2 It is possible to set it "on" or "off" with the and keys.
onallow sum check at startup
offprohibit sum check at startup
Step3 Press the S key to complete the setting and move to the next setting. Pressing
the B key cancels the setting and returns to the menu screen.
Note
When you set Sum check to permission, Sum check is executed every time when turning
on the power, so if you use a large file, the startup time will be longer.
EFP-RC2 Instruction Manual 4th Edition
( 97 /143 )
Auto check = off
HXW Download check?
Auto check = off
U/D=SEL. B=CAN S=SET
Alternate display

(7) Automatic sun check at Hxw download

It is possible to execute sum check automatically when downloading Hxw file.
Step1 When the setting is started, it is displayed on the LCD as follows. ( initial state )
Step2 It is possible to set it "on" or "off" with the and keys.
onExecute sum check at download
offDo not execute sum check at download
Step3 Press the S key to complete the setting and move to the next setting. Pressing
the B key cancels the setting and returns to the menu screen.
Note
If the setting of "(6) Sum check of executable file at power on" is off, checksum is
executed even if this item is set to off.
EFP-RC2 Instruction Manual 4th Edition
( 98 /143 )
Content described in PBT file
Hxw file name
Executability
P,abcd.hxw,F000,FFFF ( The same applies to the V
command )
abcd.hxw abcd012.hxw abcdefg.hxw abc.hxw abc01.hxw xyz.hxw
◎ ◎ ◎ × × ×
HXW match up = off
HXW Top Matching ?
HXW match up = off
U/D=SEL. B=CAN S=SET
Alternate display

(8) Hxw file match

It is possible to omit the Hxw file name specified by the program and verify command.
Step1 When the setting is started, it is displayed on the LCD as follows. ( initial state )
Step2 It is possible to set it "on" or "off" with the and keys.
onHxw file name matching enable
offHxw file name matching disable
Step3 Press the S key to complete the setting and move to the next setting. Pressing
the B key cancels the setting and returns to the menu screen.
Behavior of " HXW match up = on "
Search the file that matches the specified Hxw file name from the execution folder and
execute the first matching Hxw file as the target file. ( Ignores the character following the
specified Hxw file name. )
The contents of the PBT file and the executable Hxw file at that time are shown below.
◎:Executable ×:Not executable
Note
Please note that if there are multiple matching files in the execution folder, the first file
found will be used.
EFP-RC2 Instruction Manual 4th Edition
( 99 /143 )
ID print = Yes
Trace ID printout?
ID print = Yes
U/D=SEL. B=CAN S=SET
Alternate display

(9) ID code output of trace file

When using the quick trace function, it is possible to output a trace file by hiding the ID
code.
Step1 When the setting is started, it is displayed on the LCD as follows. ( initial state )
Step2 It is possible to set it "Yes" or "No" with the and keys.
YesDisplay ID code
NoHide ID code ( All "5Fh". ( "_" underscore code ))
Step3 Press the S key to complete the setting and move to the next setting. Pressing
the B key cancels the setting and returns to the menu screen.
EFP-RC2 Instruction Manual 4th Edition
( 100 /143 )
Loading...