Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Using a Renesas Code Generation Tool for RL78 Devices.

Slides:



Advertisements
Similar presentations
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 3L02B Introduction to the RX-Arduino (Lab) Anthony.
Advertisements

©2008. Renesas Technology America., All rights reserved. Renesas Direct Drive for Connecting to TFT-LCD Panels David Hedley – Staff Applications Engineer.
VELOCITY LABTM Embedded Development Ecosystem
Introduction Purpose Objectives Content Learning Time
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Using Embedded Tools for I2C, SPI, and USB Debugging for.
Silicon Labs ToolStick Development Platform
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. RL78 Ultra Low Power MCU Lab.
ID 413C: Can Touch This: Designing Capacitive-Based Touch Solutions Mark F Rodriguez Senior Engineering 13 October 2010 Version: 1.0 Xaplos Inc.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Debugging on RX with IAR Embedded Workbench.
Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Increase the Dynamic Range and Precision of Digital Filters.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. An Introduction to e 2 studio.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Know your Precise Position with RX600 MCU.
Working with.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Sensorless Vector Control with RL78G14.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID A15C: Application Code Reprogramming Using Different Serial.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 320L: Rapid RX600 System Development Using the RPDL and.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 3L13B David Hedley, Applications Engineer Advanced.
Renesas Electronics America Inc. “© 2010 Renesas Electronics America Inc. All rights reserved ID 220L: Hands-on Embedded Ethernet Design with an Open Source.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. RX Family Overview Introduction A.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. 431L: Using a Graphics API to Create User Interface Components—Advanced.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 9L02I Software Development with an Open Source.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. LibUSB - Create a Solution Without the Class Struggle.
Renesas Electronics America Inc. ID 322C:Using HEW's Many Capabilities to Boost Software Development Productivity Axel Wolf Marketing Manager, Development.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Migrating from CubeSuite+ to Eclipse.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: RL78 Ultra Low Power MCU Lab Michael Clodfelter.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. A11L: 78K0R Low Power MCU Hands-On Lab Bob Proctor Staff.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 2L03I RL78 Bluetooth Connectivity Anthony Harris,
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
ID A16C: Outfitting Embedded Devices with Low Power Wireless Communications Design considerations for adding wireless communications to low power embedded.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. e 2 Studio – Getting Started.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Know your Precise Position with RX600 MCU Huangsheng.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Debugging on RX with IAR Embedded Workbench Micael.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. 113C: Migration to the RX600 Made Easy Life in the fast lane.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID630L: Becoming Familiar with Sensorless Vector Control.
Class ID: Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Using Virtual EEPROM and Flash API for.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 011C: VELOCITY LAB TM Embedded Development Ecosystem Amrit.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. QuantiPhi for RH850 and RL78 - The Fastest Path from Idea.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Increase the Dynamic Range and Precision of Digital.
Class ID: Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Implementing Bootloaders on Renesas MCUs.
2L01I Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 2L02I CAN In A Day Carl Stenquist, Staff.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Audio Solutions on the RX MCU Family Mitch Ferguson,
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Advanced Debugging on the RX600.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Advanced E 2 Studio Topics.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: CC05B RX Project Configuration Tips John Breitenbach,
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Low Power Design Michael Thomas, Applications Engineer.
ID 222L: Get Connected with USB on RX62N
Global Edge Ian Carvalho Architect 14 October 2010 Copyright © 2010, Global Edge Software Ltd., Bangalore, India Version 1.0 ID 730L: Getting Started with.
Renesas Technology America Inc. 1 M16C Seminars Lab 3 Creating Projects Using HEW4 14 March 2005 M16C Seminars Lab 3 Creating Projects Using HEW4 Last.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 230L: Simplify your Networked Application with CAN and.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 416C:SH-2A Graphics for Low- to Mid-level Graphics Applications.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 3L08I Migrating from CubeSuite+ to Eclipse Neelima.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 3L05I Advanced Debugging on the RX600 Fatih Peksenar.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 5L08I Using the Renesas Graphics API to Create.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 322L:Advanced Debugging on the RX600 Brandon Hussey Applications.
IAR Systems, Inc. ID 324C:Introducing the Embedded Workbench for the Renesas SH Shawn A. Prestridge Senior Field Applications Engineer 12 October 2010.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course explains how to use section setting and memory.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 421L: R8C Segment-LCD API Lab Bob Proctor Staff Engineer.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID A10L:A Flexible Flash Rewrite Application Brandon Hussey.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: QuantiPhi for RH850 and RL78 - The Fastest Path.
ID 021L: Model Based Control Design and Auto-Code Generation using the R8C Christopher Myers Director of Software Development 12 October 2010 Version:
Class ID: Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Using Software Building Blocks for Faster.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the use of the High-performance.
e2Studio – Getting Started
David Hedley Staff AE, Applications Engineering 12 Oct 2010
RX111 Promotion Board (RPB) hands on
David Hedley Staff AE, Applications Engineering 13 October 2010
ID 325L: Getting Started with CubeSuite
Presentation transcript:

Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Using a Renesas Code Generation Tool for RL78 Devices

© 2012 Renesas Electronics America Inc. All rights reserved.2 Renesas Technology & Solution Portfolio

© 2012 Renesas Electronics America Inc. All rights reserved.3 Microcontroller and Microprocessor Line-up Wide Format LCDs  Industrial & Automotive, 130nm  350µA/MHz, 1µA standby 44 DMIPS, True Low Power Embedded Security, ASSP 165 DMIPS, FPU, DSC 1200 DMIPS, Performance 1200 DMIPS, Superscalar 500 DMIPS, Low Power 165 DMIPS, FPU, DSC 25 DMIPS, Low Power 10 DMIPS, Capacitive Touch  Industrial & Automotive, 150nm  190µA/MHz, 0.3µA standby  Industrial, 90nm  242µA/MHz, 0.2µA standby  Automotive & Industrial, 90nm  600µA/MHz, 1.5µA standby  Automotive & Industrial, 65nm  600µA/MHz, 1.5µA standby  Automotive, 40nm  500µA/MHz, 35µA deep standby  Industrial, 40nm  242µA/MHz, 0.2µA standby  Industrial, 90nm  1mA/MHz, 100µA standby  Industrial & Automotive, 130nm  144µA/MHz, 0.2µA standby bit 8/16-bit

© 2012 Renesas Electronics America Inc. All rights reserved.4 Microcontroller and Microprocessor Line-up Wide Format LCDs  Industrial & Automotive, 130nm  350µA/MHz, 1µA standby 44 DMIPS, True Low Power Embedded Security, ASSP 165 DMIPS, FPU, DSC 1200 DMIPS, Performance 1200 DMIPS, Superscalar 500 DMIPS, Low Power 165 DMIPS, FPU, DSC 25 DMIPS, Low Power 10 DMIPS, Capacitive Touch  Industrial & Automotive, 150nm  190µA/MHz, 0.3µA standby  Industrial, 90nm  242µA/MHz, 0.2µA standby  Automotive & Industrial, 90nm  600µA/MHz, 1.5µA standby  Automotive & Industrial, 65nm  600µA/MHz, 1.5µA standby  Automotive, 40nm  500µA/MHz, 35µA deep standby  Industrial, 40nm  242µA/MHz, 0.2µA standby  Industrial, 90nm  1mA/MHz, 100µA standby  Industrial & Automotive, 130nm  144µA/MHz, 0.2µA standby bit 8/16-bit

© 2012 Renesas Electronics America Inc. All rights reserved.5 Challenge: “MCUs continue to become more complex especially when creating applications to enable the Smart Society, and therefore the Software becomes more complex as well. As a result Project schedules do not always scale accordingly and requires helps from the vendor to write the MCU low level driver or provide a tool which can help them to develop the MCU driver.” Solution: “This class will help you how to use Renesas code generator tool, Applilet for RL78 devices to quickly generate the MCU low level drivers and run the driver code on RL78/G14 target board ”. ‘Enabling The Smart Society’

© 2012 Renesas Electronics America Inc. All rights reserved.6 Agenda Code generation for RL78/G14 device, R5F104PJ using Applilet Tool Create e 2 studio Project Template Import Applilet generated IAR project files to e 2 studio Build and Run the project POP QUIZ

© 2012 Renesas Electronics America Inc. All rights reserved.7 Lab Objectives Main goals Learn how to use Renesas code generator tool, Applilet for RL78/G14 devices while going over the tools and peripheral configuration Build and Run the Program on the Target hardware Additional goals Become familiar with evaluation platform for RL78/G14 MCU Learn common tips and tricks for e 2 studio

© 2012 Renesas Electronics America Inc. All rights reserved.8 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 e 2 studio version RL78 IAR version 1.2 Applilet 3 Tool for RL78/G14 Family

© 2012 Renesas Electronics America Inc. All rights reserved.9 RL78/G14 RDK’s User Features Eink display LED Ring Graphics LCD Gainspan Wi-fi Application header WiFi RS-232Digital sensors Temp & Accel TRIACFET RL78/G14 MCU TK Debug

© 2012 Renesas Electronics America Inc. All rights reserved.10 Definition of Terms Software Elements e 2 studio – Eclipse based Integrated Development Environment for Renesas Microcontroller families RL78, RX, SH. Perspective – A perspective is like a page in a book which contains set of views. Debug Perspective

© 2012 Renesas Electronics America Inc. All rights reserved.11 Definition of Terms (Cont.) Software Elements (cont.) View: A perspective consists of a number of sub-windows, called views. Applilet: Renesas tools for code generation Hardware Elements TK interface – On-chip debug emulator for RL78 device. RDK– Renesas Demonstration Kit E1- On-chip debug emulator

© 2012 Renesas Electronics America Inc. All rights reserved.12 Project Phase Code Generator allows you to concentrate to create application. You can initialize and drive MCU very easily. Design Coding Programming Debugging Set GUI for each peripheral Set GUI for each peripheral Driver Software is generated. Driver Software is generated. PORTA/DTIMERUART Microcontroller Function USBSensor LEDLCDMotor Switch Application Software (You create) Driver Software (Generated) R_TAU0_Channel0_Start(); //Timer Start R_UART0_Start(); //UART Start The example of API function:

© 2012 Renesas Electronics America Inc. All rights reserved.13 Why use code generator? (1/2) C Source File Code Generator GUI: A few mouse clicks Code Generation Auto add to project HW Manual: 1000~2000 Pages Code 10K+ Lines

© 2012 Renesas Electronics America Inc. All rights reserved.14 Why use code generator? (2/2) Application source code is more portable Application code based on Code generated functions can be ported to another hardware with limited changes or no changes at all!

© 2012 Renesas Electronics America Inc. All rights reserved.15 Renesas Code Generator : Applilet Applilet: Application Leading Tool RL78 V850 78K

© 2012 Renesas Electronics America Inc. All rights reserved.16 Applilet Features Generate device driver code for on-chip peripherals Easy to use graphical user interface Quick evaluation of device Common API to all devices Example: serial module – void UARTn_SendData( UCHAR* txbuf, USHORT txnum ) – void UARTn_ReceiveData( UCHAR* rxbuf, USHORT rxnum ) Can be used in conjunction with CubeSuite+ when integrated Code Generator not available Code Generation for Cubesuite+, GHS e2studio* and IAR tool chain. Free Downloaded from the Renesas website *:under development Generate driver in Applilet and load code into IDE

© 2012 Renesas Electronics America Inc. All rights reserved.17 Applilet for RL78 Device Applilet specific to the RL78 family Generate code for Cubesuite+, e2studio*, and IAR Tool Chain Same GUI as Cubesuite+ code generator Creates the project Framework for IAR/Cubesuite+ Add files Change the function name * Under development

© 2012 Renesas Electronics America Inc. All rights reserved Applilet Function Setting Code generator function can be customized. Doesn’t generate the new file Protect the user code Lose any user modification

© 2012 Renesas Electronics America Inc. All rights reserved.19 Bring Applilet Generated IAR Code to e 2 studio Create a new project for RL78 in e 2 studio (a) Registration of IAR source files and linker files (b) Set project options (c) (a) (c) (b)

© 2012 Renesas Electronics America Inc. All rights reserved.20 Common Issues I lost my code when I re-generated the code from the Applilet. -> Make sure you select the “merge file option” in the option setting. Also, all user code must be written in the user area defined as below: /* Start user code. Do not edit comment generated here */ /* End user code. Do not edit comment generated here */ I didn’t enable the watchdog timer but Applilet generated the code for it? -> By default, the watchdog timer is enabled in the code. It is required to disabled in the Applilet under watchdog option. Can’t connect e 2 studio to RDK board for the debug session? -> Check the SW5 DIP-switch setting on the board as: 1:ON; 2:OFF; 3:ON ; 4:ON

© 2012 Renesas Electronics America Inc. All rights reserved.21 Lab Time! Please refer to the Lab Handout and let’s get started!

© 2012 Renesas Electronics America Inc. All rights reserved.22 Questions? Questions?

© 2012 Renesas Electronics America Inc. All rights reserved.23 Challenge: “MCUs continue to become more complex especially when creating applications to enable the Smart Society, and therefore the Software becomes more complex as well. As a result Project schedules do not always scale accordingly and requires helps from the vendor to write the MCU low level driver or provide a tool which can help them to develop the MCU driver.” Solution: “This class will help you how to use Renesas code generator tool, Applilet for RL78 devices to quickly generate the MCU low level drivers and run the driver code on RL78/G14 target board ”. Do you agree that we accomplished the above statement? ‘Enabling The Smart Society’ in Review…

© 2012 Renesas Electronics America Inc. All rights reserved.24 Pop Quiz Q: What is the advantage of using Applilet? a)Faster time to market b)Code portability c)No hardware changes d)Easy to switch to another device in the family Q: What is the name of the on chip debugger used on the RDK board? a)E1 b)E20 c)TK debugger d)IE Cube

© 2012 Renesas Electronics America Inc. All rights reserved.25 Pop Quiz Q: What MCU family is supported by Applilet? a)RL78 b)V850 c)RX d)78K Q: Where should you write the code in the Applilet generated project files to avoid overwriting of code during the code re-generation? a)Anywhere in the file b)Code protected area marked as “Start and End user code” c)At the beginning of the file d)At the end of the file

Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved.