Introduction
Purpose
This course explains how to use Mapview, a utility program for the High-performance Embedded Workshop (HEW) development environment for microcontrollers (MCUs) from Renesas Technology Corp.
Objectives
Learn how to generate a map file
Know how to activate the Mapview utility and identify the components Understand how to use the information provided in Mapview
Content
16 pages 3 questions
Learning Time
HEW GUI utility
Opens map files
Presents stored map-file information in easy-to-read format
Section or symbol name Start and End addresses Size
Type
Optimization
Helps with debugging and analysis
Map File Review
C File Assembly File Library File
Linker
Map File =
Final output of machine code with all related information
Creating a Map File
Go to Toolchain configuration window
Select List category
Select Enable all Select Link/Library tab
In this example, the settings apply to the Debug configuration
1 2 5 3 Click “OK” 6
Build project; Map file is created in project’s Debug sub-folder
Select Generate list
Map File Contents
Can be opened with text editor
Activating Mapview
Two methods can be used to activate Mapview GUI
Within HEW, use Tools pull-down menu
From Windows® Start menu, Select Renesas;
High-performance Embedded Workshop; then Mapview and use Start menu
Snapshot of Mapview
Title bar Menu bar Tool bar Section information view Status bar Symbol information view Optimization information viewTo load a map file, select “File” and then “Open,” or press “Control” plus “O” keys. Then select the map file you want to analyze.
Using Mapview Data
Mapview contains useful information for
analysis and debugging:
Types of optimization used
Exact location of each symbol or section
Memory space each symbol or section occupies
Number of times each symbol is accessed
With this information you can
Directly amend any symbol without
recompiling the codes
View the allocated data in each
section after compiling
Ensure that symbols do not overflow
into unused or undesired areas
Plan new sections for more efficient
memory use
Study Symbols and Make Changes
Types of optimization used
Exact location of each symbol or section
Memory space each symbol or section occupies
Number of times each symbol is accessed
With this information you can
Focus optimization on symbols or
sections with the largest code size
Determine whether data in Constant
and Initial Data areas could be
eliminated
Find Areas for Optimization
Types of optimization used
Exact location of each symbol or section
Memory space each symbol or section occupies
Number of times each symbol is accessed
With this information you can
Determine whether frequency of
access tallies with your expectations
Focus on frequently used symbols
when optimizing for speed
Review Symbol Usage
Types of optimization used
Exact location of each symbol or section
Memory space each symbol or section occupies
Number of times each symbol is accessed
With this information you can
Understand changes after compiling
Identify bugs more easily
Review affected symbols to further
optimize code
Determine Effects of Optimization
Types of optimization used
Exact location of each symbol or section
Memory space each symbol or section occupies
Number of times each symbol is accessed
PROPERTIES
On passing, 'Finish' button: Goes to Next Slide
On failing, 'Finish' button: Goes to Slide
PROPERTIES
On passing, 'Finish' button: Goes to Next Slide
On failing, 'Finish' button: Goes to Slide
PROPERTIES
On passing, 'Finish' button: Goes to Next Slide
On failing, 'Finish' button: Goes to Slide
Map file generation
Map file viewing with Mapview
Analysis using Mapview information
Course Summary
Download a free evaluation copy of HEW at: