Vous êtes sur la page 1sur 23

Hands-on 2: RL78 Development Tools

Department Name : System Engineering Department 1


System Engineering Division
Renesas Electronics Singapore Pte Ltd
Presenter’s Name : CHING Chek Mong

Renesas Electronics Singapore Pte. Ltd.


Renesas Distributor Training
December 2011 – Mumbai & Bangalore

© 2011 RESG Pte. Ltd. All rights reserved.


Topics

„ Overview of RL78 Development Tools


„ Software Installation
„ Hands-on Session 2
Use CubeSuite+/CG to generate application codes for
RL78/G13 TB

Pg 2 © 2011 RESG Pte. Ltd. All rights reserved.


RL78 Family Development Tool Lineup

Useful tools at every development stage

Coding Debugging Programming


Debugging Programming by
on PC
CubeSuite RL7 8 / G 1 3 Programmed
Renesas Ele.

In Renesas Electronics’s Factory


CPU Simulator
Coding/
Building/ CubeSuite
Device Driver In-line
Debugging
by OCD
E1 programming E1
IDE by OCD

On-Chip-Debugger with OCD with


Programming function programming function

Debugging In-line
OS Itron by High Function IECUBE programming PG-FP5
Compliance Emulator w/o PC
Real Time OS In-circuit Emulator Flash Memory Programmer

Pg 3 © 2011 RESG Pte. Ltd. All rights reserved.


The Flow of Basic Training

„ Let’s use CubeSuite E1.50e by reading following document.

In this training the target device is RL78/G13.


(R5F100LE : 64-pin, 64KByte ROM)

Pg 4 © 2011 RESG Pte. Ltd. All rights reserved.


Overview Of The Program

Pg 5 © 2011 RESG Pte. Ltd. All rights reserved.


Overview Of The Target Board

„ QB-R5F100LE-TB

Connector for E1
(14-pin)

RL78/G13
(R5F100LE)
(64-pin, 64KB ROM)

Evaluation LEDs

Pg 6 © 2011 RESG Pte. Ltd. All rights reserved.


Flow

Pg 7 © 2011 RESG Pte. Ltd. All rights reserved.


Create Project

Pg 8 © 2011 RESG Pte. Ltd. All rights reserved.


Generate Code – Pin Assignment

The setting is for PIOR


register (Peripheral I/O
redirection register).

Click here after


setting PIOR

Pg 9 © 2011 RESG Pte. Ltd. All rights reserved.


Generating Code – Clock Setting

Default settings

Pg 10 © 2011 RESG Pte. Ltd. All rights reserved.


Generating Code – On Chip Debug Setting

Check here

Pg 11 © 2011 RESG Pte. Ltd. All rights reserved.


Generate Cod - Port

Set Output level high (1)

Set P62 and P63 as Output port

P62 and P63 are connected LEDs

Pg 12 © 2011 RESG Pte. Ltd. All rights reserved.


Generate Code - Timer

Select channel0 “Interval timer”

Set Interval value “500ms”

Pg 13 © 2011 RESG Pte. Ltd. All rights reserved.


Generate Code – Watchdog Timer

Check here

Push this button

Pg 14 © 2011 RESG Pte. Ltd. All rights reserved.


Edit Source File – r_main.c

R_TAU0_Channel0_Start();
Add Code

Pg 15 © 2011 RESG Pte. Ltd. All rights reserved.


Edit Source File – r_timer_user.c

Add Code
uint8_t g_count;

Add Code

uint8_t inreg = 0,outreg = 0;


inreg = P6.2;
outreg = inreg ^ 1;
P6.2 = outreg;
P6.3 = inreg;
g_count++;

Pg 16 © 2011 RESG Pte. Ltd. All rights reserved.


Build Project

Pg 17 © 2011 RESG Pte. Ltd. All rights reserved.


Debug Tool (E1) Setting 1

Right-click here

Click here

Right-click here again

Click here

Pg 18 © 2011 RESG Pte. Ltd. All rights reserved.


Debug Tool (E1) Setting 2

Pg 19 © 2011 RESG Pte. Ltd. All rights reserved.


Connect E1 to PC

„ At the first time, the following dialog are upped.

Click here

Pg 20 © 2011 RESG Pte. Ltd. All rights reserved.


The Basic Operation of Debug Tool

„ Download the program

„ Go, Stop, Reset

„ Set breakpoint

„ Use watch panel

„ Setting an access break

„ Display SFR, memory

„ Disconnect debug tool

Pg 21 © 2011 RESG Pte. Ltd. All rights reserved.


Manipulating Panels

„ CubeSuite has a lot of panels, so it is important to


„ manipulate Panels as following.

„ Hiding the panel automatically

„ Displaying the hidden panel

„ Making the panel float

„ Moving the panel and docking

Pg 22 © 2011 RESG Pte. Ltd. All rights reserved.


Renesas Electronics Singapore Pte. Ltd.
© 2011 RESG Pte. Ltd. All rights reserved.

Vous aimerez peut-être aussi