All rights reserved.7 About e2Studio An Integrated Development Environment for cross-platform development targeting Renesas processors Based on the Eclipse workbench Extendable ope
Trang 1Renesas Electronics America Inc.
© 2012 Renesas Electronics America Inc All rights reserved.
Trang 2Renesas Technology & Solution Portfolio
Trang 3© 2012 Renesas Electronics America Inc All rights reserved.
3
Microcontroller and Microprocessor Line-up
Wide Format LCDsIndustrial & Automotive, 130nm
350µA/MHz, 1µA standby
44 DMIPS, True Low Power Embedded Security, ASSP
25 DMIPS, Low Power
10 DMIPS, Capacitive Touch
Industrial & Automotive, 150nm
190µA/MHz, 0.3µA standby
Industrial, 90nm
200µA/MHz, 1.6µA deep 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
200µA/MHz, 0.3µA deep standby
Industrial, 90nm
1mA/MHz, 100µA standby
Industrial & Automotive, 130nm
144µA/MHz, 0.2µA standby
Trang 4 Solution:
‘Enabling The Smart Society’
Trang 5© 2012 Renesas Electronics America Inc All rights reserved.
5
Introduction to e2Studio
Tools and Installation
Workspaces and Projects
Trang 6INTRODUCTION AND INSTALLATION
Trang 7© 2012 Renesas Electronics America Inc All rights reserved.
7
About e2Studio
An Integrated Development Environment for cross-platform development targeting Renesas processors
Based on the Eclipse workbench
Extendable open source tooling technology
Large ecosystem of compatible components
Widespread user community
Incorporates C/C++ Development Tooling (CDT) components
Code editor
Build system
Basic debug capabilities
Extensive support for Renesas processors
Project creation wizards
Toolchain integrations
Remote launch and advanced debug capabilities
Trang 8e2Studio With Eclipse/CDT
Eclipse Platform
C/C++ Development Tooling (CDT)
e 2 Studio Features FeaturesOther FeaturesOther
Trang 9© 2012 Renesas Electronics America Inc All rights reserved.
9
Project wizards
Create skeleton projects targeting Renesas processors
Projects build and run without modification
Integration with KPIT GNU toolchains
Cross-platform launchers
Download to remote hardware via debug probe
Simulator alternative where hardware unavailable
Advanced debug capabilities
Simplified access to I/O registers
Non-invasive inspection and tracing of target state
Trang 10e2Studio Download and Setup Procedure
Complete KPIT
Cummins registration form
Download KPIT GNU Tools
Install KPIT GNU
Tools
Download e 2 Studio
Install e 2 Studio
Trang 11© 2012 Renesas Electronics America Inc All rights reserved.
11
KPIT Cummins Registration
Register at the KPIT GNU Tools web site
http://www.kpitgnutools.com
Select Register link and complete registration form
Receive toolchain activation code by email
Trang 12KPIT GNU Tools Download
Download KPIT GNU Tools from the KPIT GNU Tools web site
http://www.kpitgnutools.com
Select Free Downloads tab and complete login form if
necessary
Locate toolchain for appropriate target architecture in the
Windows Hosted ELF Toolchains section
Trang 13© 2012 Renesas Electronics America Inc All rights reserved.
13
KPIT GNU Tools Installation
Double click on downloaded executable file to launch installer
Default installation options are appropriate
Trang 14e2Studio Download
Download e2Studio from the Renesas web site
http://www.renesas.com
Select Development Tools tab
Select IDEs and Project Managers category
Select e2Studio
Trang 15© 2012 Renesas Electronics America Inc All rights reserved.
Trang 16e 2 Studio Project Creation and Build
Trang 17© 2012 Renesas Electronics America Inc All rights reserved.
17
e2Studio prompts for a Workspace folder at launch
Multiple related projects created in each Workspace
Projects of selected workspace presented in Project Explorer
view
One project per application under development
Workspaces also store global e2Studio preferences
Avoid workspace paths containing spaces
Workspace Preferences
Project B Project A Project Folder
Project Folder
Trang 18e2Studio Projects
Projects created using a New Project Wizard
Project folder typically created within workspace folder
Project content created within project folder
Build Output (config A) Source Code
Build Output (config B)
Sub-Folders
Trang 19© 2012 Renesas Electronics America Inc All rights reserved.
19
Launch from workbench File menu or Project Explorer
context menu
Select the C Project or C++ Project wizard from the tree
C project wizard for C source code application
C++ project wizard for C and/or C++ code application
Toolchain Target-Specific Build Settings
Library Generator Default Debug Settings Finish
Start C/C++
Project Wizard
Trang 20Project Name, Type and Toolchain
Enter new project name
Select Executable (Renesas)
>> Sample Project type
New project will include
startup code and skeleton
main()
Project builder will generate
a fully linked application
Select toolchain
Toolchain architecture will
influence subsequent wizard pages
Trang 21© 2012 Renesas Electronics America Inc All rights reserved.
21
Target-Specific Settings
Select toolchain version if multiple versions installed
Select CPU series, type
and endianness where
applicable
Selections may affect
processor instruction set
Critical for correct
execution on target hardware
Select other CPU options
Trang 22Library Generator Settings
Select library source
Newlib library – complete
ISO C library supporting C/C++ code
Optimized library – subset
of ISO C library supporting
C code
Select required library
modules
Select library generation
Pre-built for convenience
Project-built for
source-level debugging
Trang 23© 2012 Renesas Electronics America Inc All rights reserved.
23
Default Debug Settings
Select default debug mode
Hardware Debug
– debug probe and target device must be specified
Trang 24e2Studio Project Layout
Project source files typically located
Trang 25© 2012 Renesas Electronics America Inc All rights reserved.
25
Project Editing
Create new source files via context menu wizards
New >> Source File – for C or C++ files (*.c, *.cpp)
New >> Header File – for header files (*.h, *.hpp)
New >> Source Folder
Trang 27© 2012 Renesas Electronics America Inc All rights reserved.
27
C/C++ Managed Build System
All source files under src folder are built
C source (*.c)
C++ source (*.cpp)
Assembly source (*.asm)
Select active build configuration prior to build
Build on demand via workbench menu items
Project >> Build Project (builds currently selected project)
Project >> Build All (builds all projects in workspace)
Monitor build progress in Console view
Review build issues in Problems view
Double click to open related source code in C/C++ Editor
Build options
Build Automatically (not recommended for C/C++)
Save automatically before build
Trang 28Extended Project Properties
Toolchain-related properties specific to a project or file
First select a project or file in Project Explorer
Project >> Renesas Tool Settings
Code generation, linking and archiving options
Standard C library generation and usage options
Linker script editing
Trang 29© 2012 Renesas Electronics America Inc All rights reserved.
29
Frequently Used Project Properties
Limited set of options
available via quick settings
control of warning groups
List files – compiler,
assembler, linker listings
Trang 30Execution In Simulator
Immediate execution of applications in the absence of target hardware
Run As >> Renesas GDB Simulator Running
Standard I/O channels accessible via Console view
Limitations
Instruction set simulation only
No peripheral emulation
Trang 31© 2012 Renesas Electronics America Inc All rights reserved.
31
E 2 STUDIO BASIC DEBUGGING
Trang 32e2Studio Cross Development Launchers
Launchers enable the execution and debugging of non-native code
Support for simulators and remote hardware using the GNU debugger (GDB)
Download and debug via on-chip debug hardware
Support for a number of debug probes
Trang 33© 2012 Renesas Electronics America Inc All rights reserved.
33
e2Studio Launch Configurations
One launch configuration per application and per debug target
Encapsulates all launch-related parameters
Launch type (hardware or simulator)
Application executable file
Connection parameters
Debug probe details
Launch configuration for default debug mode generated by project wizard
Other configurations generated on initial launch within
e2Studio
Customization possible but seldom necessary
Run >> Debug Configurations
Trang 34Launching e2Studio Debug Sessions
Specify launch type at point of launching
First select a project or executable file in Project Explorer view
Run >> Debug As >> Renesas GDB Hardware Launch
Run >> Debug As >> Renesas GDB Simulator Launch
Open Renesas Debug Perspective
Alternative presentation of views within Eclipse workbench
Views for inspection and manipulation of target state
Standard CDT views updated when execution suspends
C/C++ editor presents source code at program counter
Variables (local variables only)
Expressions (including global variables)
Registers
Memory
Trang 35© 2012 Renesas Electronics America Inc All rights reserved.
35
Renesas Debug View
Control execution of code on target
Select stack frame to inspect related local variables
One active debug session only
Terminate any existing session before launching another
Use Reload to avoid termination within edit/build/debug cycle
Trang 37© 2012 Renesas Electronics America Inc All rights reserved 37
Summary
Trang 38Questions?
Trang 39© 2012 Renesas Electronics America Inc All rights reserved.
39
Challenge:
“MCUs continue to become more complex especially when creating applications to enable the Smart Society, and
therefore the tools become more complex as well As a
result we must create tools that enable complete debug
capability at minimal cost.”
Solution:
“OpenSource IDE’s with custom layers must be developed to enable engineers to create applications for the 2010’s”
Do you agree that we accomplished the above statement?
‘Enabling The Smart Society’