Professional Documents
Culture Documents
2012
1200 DMIPS, Performance
Automotive, 40nm 500A/MHz, 35A deep standby
32-bit
Agenda
e2studio Project wizard Configuration Project Template configuration
Clock Interrupt Other Peripheral Initialization
Eink display
LED Ring
FET
TRIAC
Lab Platform
Hardware Platform
RL78/G14 RDK R5F104PJ device, 256KB Flash, 8KB Data Flash, 24KB SRAM. USB cable for power and debug communication OCD Debugger (TK debugger)
Software Platform
e2studio version 1.1
http://www.renesas.com/products/tools/ide/ide_e2studio/downloads.jsp
Definition of Terms
Software Elements
e2studio Eclipse based Integrated Development Environment for Renesas Microcontroller families RL78, RX, V850, SH.
Debug Perspective
Option Byte: Four bytes which configure the RL78 at boot-up. Security ID: A 10 bytes code provides on-chip debug security ID to prevent third parties from reading RL78 memory content.
Hardware Elements
TK interface On-chip debug emulator for RL78 device. RDK Renesas Demonstration Kit
9 2012 Renesas Electronics America Inc. All rights reserved.
Select toolchain
Toolchain architecture will influence subsequent wizard pages
10
Target-specific Settings
Select toolchain version if multiple versions installed Select Debug hardware Select Target
11
Project Configuration
Select configuration
Hardware Debug Simulator Debug Custom Debug Release
12
Library Configuration
Select library source
Newlib library complete ISO C library supporting C/C++ code Optimized library subset of ISO C library supporting C code
13
14
Hardware Configuration
Add the clock initialization Add peripheral initialization
15
16
Option byte
Location0xC0H to 0xC3H 0xC0H: WDT setting 0xC1H: LVD voltage setting 0xC2H: Oscillator speed selection 0xC3H: Enable/Disable on-chip debug function
17
Section Configuration
List all the sections in the project in the sections Viewer Easy to add a new section
Add expression/label Defines the start addess Follow from the previous section
18
Optimization Configuration
Limited set of options available via quick settings dialog
Optimisation for speed, size or both Debug information no effect on generated code Warnings simplified control of warning groups List files compiler, assembler, linker listings
19
Common Issues
Can t find the TK interface under hardware debug configuration in e2studio? -> There is no TK interface options available in the e2studio . E1 debug option serves for both TK interface and E1 emulator connection. I started the debugger but cant see the code on the debug window? -> Check if you have switch to the debug perspective from the C/C++ perspective. Cant connect e2studio to RDK board for the debug session? -> Check the SW5 DIP-switch setting on the board as: 1:OFF; 2:ON; 3:OFF ; 4:OFF
20 2012 Renesas Electronics America Inc. All rights reserved.
Lab Time!
Please refer to the Lab Handout and lets get started!
21
Questions?
22
23
Pop Quiz
Q: what configuration can be done using Renesas quick setting dialogue?
a) optimization b) Warning level setting c) Linker output files d) None of the above
24
Pop Quiz
Q: Name the perspectives available in the e2studio ?
a) C/C++ Perspective b) Renesas Debug Perspective c) None of the above d) Linker file setting
25