Application note
R20AN0653EJ0100 Rev.1.00 Page 1 of 37
Dec.20.21
RL78 Family
Renesas Flash Driver RL78 Type 01 SC version (Code 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 code flash
memory driver" included in RFD RL78 Type 01, and it is a method for programming code 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 (Code Flash)
R20AN0653EJ0100 Rev.1.00 Page 2 of 37
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 Code Flash Driver (r_rfd_rl78_codeflash) ......................................................... 6
1.4 Code Flash Programming Processing Using a Sample Program ........................................................... 7
2. Creating a Sample Project for Code 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.1.1 Notes of case used at the same time in r_rfd_rl78_codeflash and r_rfd_rl78_extraarea ................. 12
2.2.2 In Case of E2studio ............................................................................................................................. 13
2.2.2.1 Notes of case used at the same time in r_rfd_rl78_codeflash and r_rfd_rl78_extraarea ................. 16
2.2.3 In Case of IAR EW for Renesas RL78 ................................................................................................ 17
2.2.3.1 Notes of case used at the same time in r_rfd_rl78_codeflash and r_rfd_rl78_extraarea ................. 22
2.3 Project registration of sample program ................................................................................................. 23
2.4 The Check of Operation for Sample Program ....................................................................................... 32
2.4.1 In Case of CS+ .................................................................................................................................... 32
2.4.2 In Case of E2studio ............................................................................................................................. 33
2.4.3 In Case of IAR EW for Renesas RL78 ................................................................................................ 34
3. Precautions for specifications ................................................................................................ 35
4. Reference document ............................................................................................................. 36
5. Revision History ..................................................................................................................... 37