
RL78/G14 RDK Quick Start Guide
E2STUDIO WORKSPACE AND DEMONSTRATION PROGRAMS FOR IAR
Renesas e2 studio (pronounced e-squared studio) is an Eclipse-based integrated development environment. The example projects
included on the installation CD use the IARplug-in, which allows projects for the IAR compiler to be built and debugged in e2 studio. To
learn more on how to use e2 studio, use the help documentation within e2 studio located under Help > Help Contents.
1. Launch “Renesas e2studio” from the Start Menu (All Programs > Renesas Electronics e2studio > Renesas e2studio).
2. In the “Workspace Launcher” dialog box, browse to a location for your sample project workspace. We suggest
“C:\Workspace\YRDKRL78G14”
3. If the toolchain integration dialog box pops up, select all available toolchains and click “Register.”
4. Close the Welcome window. If you want to re-open this later to explore the e2 studio tutorials, it
is located under Help > Welcome.
5. You should see an empty workspace. To import the demo projects, navigate to File > Import.
6. Under the “General” folder, select “Existing projects into workspace.” Click “Next.”
7. On the next page, choose “Select archive file:”and browse to
“c:\Renesas\workspace\YRDKRL78G14\e2_studio\e2studio_IAR_examples.zip”. Click “Finish.”
8. Browse to your IAR installation directory. The default installation is C:\Program Files\IAR
Systems\Embedded Workbench 6.5 (or for 64 bit Windows C:\Program Files (x86)\IAR
Systems\Embedded Workbench 6.5).
9. To focus on a single project, right click on the project folder and select “Close Unrelated Projects.” You can
re-open any of these projects later by selecting the project in the Project Explorer and navigating to Project
> Open Project from the top menu bar.
Build the Project
10. From the top menu bar, select “Project” then “Build all” (Ctrl+B). The “Build All” builds all open projects in the workspace, and may
take over a minute. The build is successful if you see “Build complete” in the console window at the bottom of the screen.
11. You may encounter build errors if your IAR installation directory is different from the one we used to create the projects. If this
happens, select the project folder in the Project Explorer window and navigate to “Project > Select Device”. Select any RL78 - G13
device using the Browse button, then switch back to RL78 - G14 > R5F104PJ and click “OK.” Rebuild the
project as described in step 10.
Connect to the Renesas Demonstration Kit
12. Make sure the RDK is connected to your PC as outlined in steps 1 and 2.
13. Highlight the project you are working on and select Run > Debug Configurations or use the shortcut shown to the right.
14. Select the debug configuration for the project you are working on under “Renesas GDB Hardware Debugging” and click “Debug” as
shown below.
15. If you are asked to switch to the debug perspective, click “Yes.” You
can switch back to the C/C++ perspective using the tabs in the upper
right corner.
16. You are connected when the status in the bottom right changes from
“Launching” to “Suspended.”
Download and Go!
17. To run the code, click the “Resume icon” until the debugger starts
running the code.
18. Click the “Suspend” icon to stop code execution. e2studio will display
the source code at the current program counter.
19. When you are finished, click “Terminate” to disconnect.
V1.36 (OCT.2013) © 2013 RENESAS ELECTRONICS CORP. ALL RIGHTS RESERVED. 11
R20UW0117EU0200