Introduction
Purpose
This training course provides an overview of the High-performance
Embedded Workshop (HEW), a key tool for developing software for
embedded systems that use microcontrollers (MCUs) from Renesas
Technology Corp.
Objectives
Review aspects of the development process for embedded programming.
Learn about the basic characteristics of HEW and the management and
debugging tools it provides.
Gain a basic understanding of the components HEW contains and the
toolchains and debuggers used with it.
Discover the multiple-window design of the HEW user interface.
Content
15 pages
2 questions
2
© 2008, Renesas Technology America, Inc., All Rights Reserved
CODE
BUILD
DEBUG RUN
Programs for Embedded Systems
Are becoming very complex and can have a major
impact on overall product development cycle
Are produced by an iterative process: (create,
run, and test; then modify if required and repeat)
Are developed on different system than the
platform on which the application will run
Must be compact and efficient, due to limited
MCU resources (RAM and ROM)*
Require in-depth knowledge of MCU used*
Mandate a concise definition of the
system architecture*
Generally run on specialized operating
systems (typically RTOS types)*
Must handle specific operating conditions
(power-up, low-power modes, interrupt events, etc.)*
May have dynamic requirements (initialization after a
system reset, persistence of data through a reset, etc.)*
CODE
BUILD
DEBUG RUN
Embedded Platforms vs. PC Types
Much lower: 0.5 MIPs to few 100 MIPS Very high
Processing Power
Bound to MCU features and performance
Many OS products can be used
(T-engine, Win-CE, etc.)
Generally bound to a common operating system standard, such as Microsoft® Windows
Other
Can be very limited: As little as 256 bytes of RAM and 4KB of ROM Almost unlimited
Resources
Typically a proprietary, application-dependent system design
Readily available: PC architecture System Hardware
4 to 64-bit microcontroller PentiumTM or equivalent
Processor
Embedded System Platforms Desktop PC Platforms
10 to 400MHz GHz range
CPU Speed
Code is written on a PC to run on a target system with a different processor and operating system (cross development) Code is written on a PC to run
on a PC Development
4
© 2008, Renesas Technology America, Inc., All Rights Reserved
Tools for Embedded Programming
Editor Assembler, Compiler
Debugger, Simulator Linker Source code = C, asm Machine Code = obj mot, abs, map The Editor is used for
firmware coding.
HEW enables coding, building, linking, and debugging embedded applications within an integrated
development environment
The Assembler and Compiler are used for syntax checking of code and for generating relocatable machine code for system MCU.
The Linker is used to generate final machine code image.
The Debugger or Simulator is used for troubleshooting.
Basic Characteristics of HEW
Implements a powerful, yet easy-to-use software development solution that
shortens system development time
Has a familiar Graphical User Interface (GUI) that simplifies operations
Allows users to select right tool for each process and fully exploit
the tool’s advanced capabilities
Eliminates need to switch environments between coding and
debugging operations or between target devices
Provides — as an Integrated Development Environment (IDE) —
many essential functions, including:
-
Graphical project file management and navigation
- Graphical toolchain option management
- A configurable build engine
System Development
Cycle
6
© 2008, Renesas Technology America, Inc., All Rights Reserved
Other Features of HEW
Code and debugging support for Renesas MCUs — devices in the SuperH, M32R, M16C, R8C, H8SX, H8S, H8, and 740 families
Visual display of CPU hardware set-up
Automatic generation of start-up code for every supported CPU Single environment for toolchain and debug component support Integration with third-party software development tools
User-definable Custom Build Steps to integrate additional command-line based tools Choice of Network or Node-locked toolchain for Renesas and IAR compilers
Integrated Editor with color keyword functionality
Double-click capability for jumping into integrated Editor from Build Error and Warnings
Full instruction-simulation capability
Graphical display of Number of Execution Cycles per Function Display of Cache Hit Rate and Pipeline State
Comprehensive Breakpoint functionality
Visual Debug functions, including Picture and Waveform displays
Support for advanced debugging features such as Code Profiling, Performance Analysis, Code Coverage, and Trace
Single-session Save for Build and Debug AutoUpdate utility
Workspace Configuration Configuration Session Session Project Project Project
Management and Debugging
Advanced Project Management Tools
Workspace and Project management
Configurations and Sessions
Version control
Modular interface for third-party
tool integration
Intuitive GUI with toolbar, shortcuts,
and virtual desktop
Advanced Debugging Tools
Map-viewer
Call-walker
Coverage
Profiler
Image Viewer / Waveform Viewer
Workspace Configuration Configuration Session Session Project Project Project Profile Chart
PROPERTIES
On passing, 'Finish' button: Goes to Next Slide
On failing, 'Finish' button: Goes to Slide
Allow user to leave quiz: After user has completed quiz
User may view slides after quiz: After passing quiz
HEW Components
Editor
Project Generator
Version Tracking
Workspace
Command-Line
…
Toolchain
C/C++ Compiler
Linkage Editor/
Optional Linker
Assembler
Librarian
Simulator
Debugger
Memory
Trace
Register
Break
…
On-Line Help
AutoUpdater
Third-Party Tools
…
…
Manual Navigator
…
…
…
Visit www.renesas.com10
© 2008, Renesas Technology America, Inc., All Rights Reserved
Toolchain/Compiler Packages
Toolchain
Product Line Toolchain
SuperH family C/C++ compiler package
M32R family C compiler package (CC32R)
H8, H8S, and H8SX families C/C++ compiler package
M16/70/80 and M32C families C compiler package (NC308WA)
M16C family C compiler package (NC30WA)
Five Renesas toolchain versions are currently available for our MCU product lines.
C/C++ or C compiler package (Standard
package)
Must be purchased from an authorized Renesas dealer
Full capabilities
Optimized for specific MCU
C/C++ or C compiler package (Evaluation
version)
A no-cost download at renesas.com
Full capabilities for 60 days, then code-size limited
Debugger (Target) Platforms
Simulator
Software component — usually included in
compiler packages/ toolchains
Executes user program in a software engine that models instruction operation of target MCU
Normally used to check logic flow of the embedded program being developed
Emulator (Hardware Debug Target)
Hardware component — included
in Renesas starter kits or purchased separately
Could be a monitor-code based, JTAG-type or full In-Circuit
Emulator (ICE) product
Device-specific; can only be used to perform debugging for actual target MCU
12
© 2008, Renesas Technology America, Inc., All Rights Reserved
Elements of Typical HEW Screen
Project Manager Output Window Built-in Editor Local Variable Watch
Full-trace Bus Virtual Desktop Memory View
Stack Trace Complex Break Conditions C/C++ Variable Watch
PROPERTIES
On passing, 'Finish' button: Goes to Next Slide
On failing, 'Finish' button: Goes to Slide
Allow user to leave quiz: After user has completed quiz
User may view slides after quiz: After passing quiz