Application note
R20AN0654EJ0100 Rev.1.00 Page 1 of 33
Dec.20.21
RL78 Family
Renesas Flash Driver RL78 Type 01 SC version (Data Flash)
Introduction
This document explains Renesas Flash Driver RL78 Type 01 for the RL78/G2x group in the case of using
Smart Configurator(SC). It is a process which builds into a user program the functions for "the data flash
memory driver" included in RFD RL78 Type 01, and it is a method for programming data flash memory using
the attached sample program.
In this document, "Renesas Flash Driver RL78 Type 01 is described to be “RFD RL78 Type 01or “RFD”.
This document includes the contents in comparison with conventional RFD RL78 Type 01 not using SC. This
document distinguishes and expresses it.
Simple version : Conventional RFD RL78 Type 01 not using SC.
SC version : RFD RL78 Type 01 using "SC" currently explained by this document.
Target Device
The target device group by which the operation for RFD RL78 Type 01 was confirmed.
RL78/G23 group
If this application note is applied to other microcomputers, it is necessary to modify in accordance with the
specification of the microcomputer. And, be sure to evaluate enough.
RL78 Family Renesas Flash Driver RL78 Type 01 SC version (Data Flash)
R20AN0654EJ0100 Rev.1.00 Page 2 of 33
Dec.20.21
Contents
1. Specification ............................................................................................................................ 3
1.1 Operating Environment ........................................................................................................................... 3
1.2 Structure of Sample Program Folders ..................................................................................................... 4
1.3 File Structure of RFD Driver .................................................................................................................... 5
1.3.1 File Structure of RFD Common Driver (r_rfd_rl78_common) ............................................................... 5
1.3.2 File Structure for RFD Data Flash Driver (r_rfd_rl78_dataflash) ........................................................... 6
1.4 Data Flash Programming Processing Using a Sample Program ............................................................ 7
2. Creating a Sample Project for Data Flash Reprogramming...................................................... 8
2.1 Example of Creating a Sample Project ................................................................................................... 8
2.1.1 In Case of CS+ ...................................................................................................................................... 8
2.1.2 In Case of E2studio ............................................................................................................................... 8
2.1.3 In Case of IAR EW for Renesas RL78 .................................................................................................. 8
2.2 Example of Source Code Registration .................................................................................................... 9
2.2.1 In Case of CS+ ...................................................................................................................................... 9
2.2.2 In Case of E2studio ............................................................................................................................. 12
2.2.3 In Case of IAR EW for Renesas RL78 ................................................................................................ 15
2.3 Project registration of sample program ................................................................................................. 20
2.4 The Check of Operation for Sample Program ....................................................................................... 28
2.4.1 In Case of CS+ .................................................................................................................................... 28
2.4.2 In Case of E2studio ............................................................................................................................. 29
2.4.3 In Case of IAR EW for Renesas RL78 ................................................................................................ 30
3. Precautions for specifications ................................................................................................ 31
4. Reference document ............................................................................................................. 32
5. Revision History ..................................................................................................................... 33