Renesas H8S/2628 Technical Information

Browse online or download Technical Information for Software Renesas H8S/2628. Renesas H8S/2628 Technical information User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 430
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
To our customers,
Old Company Name in Catalogs and Other Documents
On April 1
st
, 2010, NEC Electronics Corporation merged with Renesas Technology
Corporation, and Renesas
Electronics Corporation took over all the business of both
companies.
Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Renesas Electronics website: http://www.renesas.com
April 1
st
, 2010
Renesas Electronics Corporation
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry
.
Page view 0
1 2 3 4 5 6 ... 429 430

Summary of Contents

Page 1 - To our customers

To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology C

Page 2

IV SAFETY PAGE READ FIRST • READ this user's manual before using this emulator product. • KEEP the user's manual handy for future reference

Page 3 - H8S/2628 E6000

74 4.9 Splitting a Window The High-performance Embedded Workshop editor allows you to split a text window into two. Figure 4.9 shows the split bar b

Page 4

75 4.10 Configuring Text The following sections detail how to change the appearance of the text displayed in the editor windows. 4.10.1 Changing t

Page 5 - Cautions

76 4.11 Syntax Coloring To enhance code readability, the HEW editor can display specific strings (i.e. keywords) in different colors. For instance, C

Page 6

77 Figure 4.12: Format Views Dialog Keywords Tab 4. Click the “Add…” button to add a keyword. Then the “Add Keyword” dialog (figure 4.13) will be l

Page 7 - IMPORTANT INFORMATION

78 4.12 Templates When developing software it is often necessary to enter the same text repeatedly, for instance, when typing a function definition,

Page 8 - DISCLAIMER

79 Figure 4.14: Define Template Dialog 4.12.2 Deleting a Template To delete a template: 1. Select [Edit->Templates->Define Templates...], s

Page 9

80 4.13 Editor Column Management The editor in HEW has the ability to manage columns apart from the main editor column. These can be added and used

Page 10 - SAFETY PAGE

81 Figure 4.16: Global Editor Column States Dialog

Page 12 - CAUTION

83 5. Tools Administration You control the components, which can be used by the High-performance Embedded Workshop via the “Tools Administration” dia

Page 13 - Introduction

V WARNING Observe the precautions listed below. Failure to do so will result in a FIRE HAZARD and will damage the user system and the emula

Page 14 - About This Manual

84 5.1 Tool Locations The HEW maintains the locations of HEW compatible components automatically as each new tool is installed. After installation, t

Page 15 - Contents

85 5.3 Registering Components The HEW will automatically attempt to register any new components installed since the last time it was invoked. However

Page 16

86 5.3.2 Registering a Single Component The HEW allows you to navigate directly to a single component in order to register it. The HEW Registration

Page 17

87 5.5 Viewing and Editing Component Properties To view information regarding a component, select it from the “Registered components” list and then

Page 18

88 Select the “Environment” tab, if it exists, to view and edit a component’s environment settings (figure 5.6). This dialog is most commonly used to

Page 19

89 5.6 Uninstalling Components The HEW provides a built in uninstaller method, which can remove unregistered components. To uninstall a compone

Page 20

90 Figure 5.9: Unable to Uninstall Tool If a tool is not registered with the HEW then the dialog shown in figure 5.10 will be displayed when the “Un

Page 21

91 5.7 Technical Support Issues The “Tools Administration” dialog is also capable of displaying information regarding “hidden” system components. T

Page 22

92 5.8 Custom Project Types The [Project->Create Project Type…] menu item in HEW allows you to create a template for your project. This menu ite

Page 23

93 6. Customizing the Environment 6.1 Customizing the Toolbar The High-performance Embedded Workshop provides 2 standard toolbars as detailed in ch

Page 24

VI CAUTION This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC Rules.

Page 25 - HEW Part

94 When a new toolbar is created it will appear undocked (i.e. “floating”) and empty. To add buttons to a toolbar: 1. Select [Tools->Customize…]

Page 26

95 To remove buttons from a toolbar: 1. Select [Tools->Customize…]. The dialog shown in figure 6.1 will be displayed. Select the “Commands” tab

Page 27 - 1. Overview

96 6.2 Customizing the Tools Menu The “Tools” menu can be customized to include your own menu options. To add a new menu option: 1. Select [Tools

Page 28 - 1.2 The Main Window

97 Figure 6.5: Add Tool Dialog New menu options are added to the bottom of the list (i.e. bottom of the tools menu) by default. The order of menu op

Page 29

98 6.3 Configuring the Help System The High-performance Embedded Workshop provides context sensitive help within the editor window. In other words,

Page 30

99 To make a help file the default choice, select it from the “Default help file” drop-down list or set it to “(None)” if you would like to be prompt

Page 31

100 6.4.3 Display workspace information dialog on opening workspace When many workspaces are being used, it is sometimes difficult to remember exact

Page 32

101 6.4.6 Default directory for new workspaces When a new workspace is created the High-performance Embedded Workshop invokes the “New Workspace” di

Page 33

102 6.5 Using an External Editor The High-performance Embedded Workshop allows you to use an external editor. Once an external editor has been speci

Page 34

103 2. Check the “Use external editor” check box. The “External Editor” dialog will be displayed (figure 6.12). Figure 6.12: External Editor Dia

Page 35 - 1.3 The Help System

i Introduction The E6000 emulator is an advanced realtime in-circuit emulator, which allows programs to be developed and debugged for the H8S family

Page 36 - 1.5 Exiting the HEW

104 6.7 Using an External Debugger The High-performance Embedded Workshop can launch an external debugger tool. If you want to use another debugger

Page 37 - 2. Build Basics

105 6.8 Using Custom Placeholders Throughout the High-performance Embedded Workshop the user can use a number of pre-defined placeholders for dir

Page 38 - 2.2 Project Files

106 Figure 6.14: New Custom Placeholder Dialog 6.9 Using Confirmation Dialog Boxes The HEW allows users to specify many items for confirmation eve

Page 39

107 7. Version Control The High-performance Embedded Workshop provides facilities for connecting to a version control tool. Some of the reasons why v

Page 40

108 7.1 Selecting a Version Control System Initially, the version control sub-menu will appear as shown in figure 7.2. At this time only the [Versio

Page 41

109 Note: Only those version control systems which have been installed with the HEW will appear in the “Select Version Control System” dialog (figur

Page 43

111 8. Using the Custom Version Control System The custom version control system is a configurable addition to the High-performance Embedded Worksho

Page 44 - .SRC .ASM .MAR .C .LIB .LPF

112 Figure 8.1: Version Control Setup Dialog Commands Tab

Page 45

113 The “Commands” tab contains two lists of menu options. The first list, “System menu options and toolbar buttons”, represents those menu options w

Page 46

ii About This Manual This manual is comprised of two parts: HEW Part and Emulator Debugger Part. HEW Part: Information on the basic “look and feel”

Page 47

114 Figure 8.3: Modify System Menu Option (Example)

Page 48

115 8.1.2 User menu options You can create as many user defined menu options as you like, name them how you want and define their order in the menu.

Page 49

116 To remove an existing version control menu option: 1. Select [Version Control->Configure…]. The dialog shown in figure 8.1 will be displayed

Page 50 - 2.5 Build Configurations

117 8.2 Defining Version Control Commands Commands are defined when the “Add…” or “Modify…” buttons are clicked on the dialogs shown in figure 8.3 a

Page 51

118 8.3 Specifying Arguments It is obvious that arguments must be specified correctly, otherwise the version control tool executed will not function

Page 52

119 Table 8.2: Arguments Field Placeholders Placeholder Value and How its Determined User login name Current user login (“General” tab) User login

Page 53 - 2.6 Building a Project

120 Figure 8.7: Version Control Setup Dialog Projects Tab To define a new mapping: 1. Select [Version Control->Configure…]. The dialog shown i

Page 54

121 To modify an existing mapping: 1. Select [Version Control->Configure…]. The dialog shown in figure 8.1 will be displayed. Select the “Proje

Page 55

122 C:\work\application\project1 \ file1.c$(VCDIR) \ $(FILENAME)X:\vc\sw\app\project1 \ file1.cArguments:Project File:Command:(1) (2) Figure 8.10: Ex

Page 56 - 2.7 File Dependencies

123 8.3.3 Specifying Comments If a command contains the placeholder “$(COMMENT)” then the HEW will request that you enter the comment when the comman

Page 57

iii Contents HEW Part 1. Overview... 1 1.1 Workspaces, Projec

Page 58

124 8.3.4 Specifying a User Name and Password Most version control tools will require you to pass a user name and password on the command line in or

Page 59

125 In order to give the $(USERNAME) and $(PASSWORD) fields a value you will first need to login. If you have not logged in before a command is execu

Page 60

126 8.4 Controlling Execution The “General” tab of the “Version Control Setup” dialog (figure 8.13) allows you to control the way in which the versio

Page 61

127 To import a version control set-up: 1. Select [Version Control->Configure…]. The dialog shown in figure 8.1 will be displayed. 2. Click the

Page 63 - 3. Advanced Build Features

129 9. Using Visual SourceSafe The High-performance Embedded Workshop provides specific support for the Visual SourceSafe version control system. At

Page 64

130 Figure 9.2: Create SourceSafe Project The HEW has now created the necessary projects within Visual SourceSafe and sets-up the version control to

Page 65

131 9.2 Visual SourceSafe Commands The following 8 operations are available: • Add a file to version control • Remove a file from version control

Page 66

132 9.2.4 Checking In a Writable Copy of a File into Version Control Visual SourceSafe protects your source files and ensures that only one user can

Page 67

133 9.3 Visual SourceSafe Integration Options You can control the way in which the history and status commands are displayed by selecting [Tools->

Page 68

iv 3.1 The Build Process Revisited...37 3.1.1 What is a Buil

Page 70

Emulator Debugger Part

Page 72

135 Section 1 Overview 1.1 Features • The breakpoint, memory map, performance, and trace can be set through the dialog box.  Intuitive user inter

Page 73

136 1.2 Warnings CAUTION READ the following warnings before using the emulator product. Incorrect operation will damage the user system and the e

Page 74

137 1.3 Environmental Conditions CAUTION Observe the conditions listed in table 1.1 when using the emulator. Failure to do so will cause illegal

Page 76

139 Section 2 Preparation before Use 2.1 Emulator Preparation Unpack the emulator and prepare it for use as follows: WARNING READ the reference

Page 77

140 2.3 Connecting to the User System To connect the emulator to a user system, proceed as follows: • Connect the user system interface cable head

Page 78 - 3.5 File Mappings

141 • Screw the cable head to the socket with the screws provided. Progressively tighten the screws in the sequence shown in figure 2.4 until all ar

Page 79

v 5. Tools Administration ... 83 5.1 Tool Locations...

Page 80 - 3.6 Controlling the Build

142 2.4 Power Supply 2.4.1 AC Adapter The AC adapter supplied with the emulator must be used at all times. 2.4.2 Polarity Figure 2.6 shows the polari

Page 81 - 3.7 Logging Build Output

143 2.6 Hardware Interface All signals are directly connected to the MCU in the emulator with no buffering with the exception of those listed in sect

Page 82

144 The interface circuit for the external probe 1 is shown in figure 2.8. 10 kExternal probe 1, 2, 3, 4HD15101522VccΩΩ Figure 2.8 Interface Circui

Page 83

145 2.6.6 Voltage Follower Circuit CAUTION 1. Do not connect the user system interface cable to the emulator without user system connection.

Page 84 - 3.10 Generating a Makefile

146 2.7 System Check When the software is executed, use the procedure below to check that the emulator is connected correctly. Here, use the works

Page 85 - 4. Using the Editor

147 5. The [Welcome!] dialog box is displayed. Figure 2.12 [Welcome!] Dialog Box To use a workspace for the tutorial, select the [Browse to anot

Page 86

148 When no compiler package or that of a different version is installed, the following message box will be displayed. Figure 2.14 Message Box 6.

Page 87

149 7. Set up the emulator. During this process, the following dialog box is displayed. Figure 2.16 [Connecting] Dialog Box 8. When "Conn

Page 88

150 2.8 Communication Problems The following message box will be displayed when the emulator power is turned off or the PC interface cable is not cor

Page 89

151 Section 3 E6000 Emulator Functions 3.1 Debugging Features 3.1.1 Breakpoints The emulator provides a comprehensive range of alternative types of

Page 90

vi 9.1.1 Selecting Visual SourceSafe...129 9.1.2 Adding files to Visual S

Page 91 - 4.4 Editing a File

152 3.1.5 Bus Monitoring The emulator incorporates a bus monitoring function that monitors and displays the contents of the accessed area in HEW wind

Page 92

153 3.2.3 Breaks Use breaks to interrupt program execution when a specified event, or sequence of events, is activated. For example, you can set up a

Page 93

154 3.3.2 Clocks The clock can be specified as emulator internal clock or target clock. The frequencies that can be specified as the emulator intern

Page 94

155 Section 4 Preparation before Use 4.1 Workspaces, Projects, and Files Just as a word processor allows you to create and modify documents, HEW a

Page 95

156 4.2 Method for Activating HEW To activate the HEW, follow the procedure listed below. 1. Connect the emulator to the host computer. 2. Connect

Page 96 - 4.7 Printing a File

157 4.2.1 Creating a New Workspace (Toolchain Not Used) 1. In the [Welcome!] dialog box that is displayed when the HEW is activated, select [Create

Page 97 - 4.8 Configuring Text Layout

158 2. Creation of a new workspace is started. The following dialog box is displayed. Figure 4.4 [New Project Workspace] Dialog Box [Workspace N

Page 98

159 3. Make the required setting for the toolchain. When the setting has been completed, the following dialog box is displayed. Figure 4.5 [New

Page 99

160 4. Set the configuration file name. The configuration file saves the state of HEW except for the emulator. Figure 4.6 [New Project – Step 8

Page 100 - 4.9 Splitting a Window

161 4.2.2 Creating a New Workspace (Toolchain Used) 1. In the [Welcome!] dialog box that is displayed when the HEW is activated, select [Create a

Page 101 - 4.10 Configuring Text

vii 3.2 Complex Event System (CES)...152 3.2.1 Event Channels.

Page 102 - 4.11 Syntax Coloring

162 2. Creation of a new workspace is started. The following dialog box is displayed. Figure 4.8 [New Project Workspace] Dialog Box [Workspace N

Page 103

163 3. Make the required setting for the toolchain. When the setting has been completed, the following dialog box is displayed. Figure 4.9 [New

Page 104 - 4.12 Templates

164 4. Set the configuration file name. The configuration file saves the state of HEW except for the emulator. Figure 4.10 [New Project – Step

Page 105

165 4.2.3 Selecting an Existing Workspace 1. In the [Welcome!] dialog box that is displayed when the HEW is activated, select [Browse to another p

Page 106

166 4.3 Setting at Emulator Activation When the emulator is activated, the command chain can automatically be executed. It is also possible to regi

Page 107

167 Figure 4.14 [Debug Settings] Dialog Box ([Options] Page) The command chain that is automatically executed at the specified timing is registere

Page 108

168 4.4 Debugger Sessions The HEW stores all of your builder options into a configuration. In a similar way, the HEW stores your debugger options in

Page 109 - 5. Tools Administration

169 4.4.2 Adding and Deleting Sessions A new session can be added by copying settings from another session or deleting a session. • To add a new em

Page 110 - 5.1 Tool Locations

170 • To import an existing session into a new session file 1. Select [Options -> Debug Sessions…] to display the [Debug Sessions] dialog box (f

Page 111 - 5.3 Registering Components

171 • To make a session read-only 1. Select [Options -> Debug Sessions…] to display the [Debug Sessions] dialog box (figure 4.16). 2. Select th

Page 112 - 5.4 Unregistering Components

Notice 1. All information included in this document is current as of the date this document is issued. Such information, however, is subject to chang

Page 113

viii 5.4.4 Using Register Contents ...190 5.5 Operating Memory...

Page 114

172 4.5 Connecting the Emulator Select either of the following two ways to connect the emulator: (a) Connecting the emulator after the setting at e

Page 115

173 4.6 Ending the Emulator When using the toolchain, the emulator can be exited by using the following two methods: • Canceling the connection of

Page 117

175 Section 5 Debugging This section describes the debugging operations and their related windows and dialog boxes. 5.1 Setting the Environment fo

Page 118 - 5.8 Custom Project Types

176 [General] page [Device] Selects the MCU to be emulated. To use an MCU not included in the list, select CUSTOM to specify the functions required

Page 119 - 6.1 Customizing the Toolbar

177 5.1.2 Selecting an MCU Not Included in the List Selecting [Custom] in [Device] of the [Configuration Properties] dialog box adds the [Custom Dev

Page 120

178 5.1.3 Selecting the Interface to be Connected Checking [Change driver in start up] on the [Configuration Properties] dialog box allows a selecti

Page 121

179 5.1.4 Opening the [Memory Mapping] Dialog Box Selecting [Options -> Emulator -> Memory Resource…] or clicking the [Emulator Memory Resourc

Page 122

180 5.1.5 Changing the Memory Map Setting Clicking the [Add…] button on the [Memory Mapping] dialog box or clicking the [Modify…] button after selec

Page 123

181 5.2 Downloading a Program This section describes how to download a program and view it as source code or assembly-language mnemonics. Note: Aft

Page 124

ix 5.13 Elf/Dwarf2 Support...219 5.13.1 C/C++

Page 125

182 5.2.2 Viewing the Source Code Select your source file and click the [Open] button to make the HEW open the file in the integrated editor. It is

Page 126

183 Source address column When a program is downloaded, an address for the current source file is displayed on the Source address column. These addre

Page 127

184 To switch off a column in all source files 1. Click the right-hand mouse button on the [Editor] window. 2. Click the [Define Column Format…]

Page 128

185 5.2.3 Viewing the Assembly-Language Code Click the right-hand mouse button on the [Source] window to open the popup menu and select [Go to Disas

Page 129 - 6.6 Customizing File Save

186 The address, machine code, and disassembled instruction are displayed. Enter the new instruction or edit the old instruction in the [Mnemonic] fi

Page 130

187 5.3 Debugging with the Command Line Interface Use the [Command Line] window to enter text-based commands instead of window menus and commands. 5

Page 131

188 5.3.3 Executing a Command File Click the [Play] button in the [Set Batch File] dialog box or choose [Play] from the popup menu to execute the co

Page 132

189 5.4 Viewing the Registers If you are debugging at assembly-language level, then you will probably find it useful to see the contents of the CPU&

Page 133 - 7. Version Control

190 5.4.3 Modifying Register Contents To change a register's content, open the [Edit Register] dialog box in one of the following methods: • D

Page 134

191 5.5 Operating Memory This section describes how to look at memory areas in the CPU's address space. How to look at a memory area in differen

Page 135

x 5.19.2 Automatically Updating the Window Contents...285 5.19.3 Updating the Window Contents...

Page 136

192 5.5.2 Displaying Data in Different Formats If you want to change the display format of the [Memory] window, select [Format] from the popup menu.

Page 137

193 5.5.5 Modifying the Memory Contents The memory contents can be modified via the [Edit Memory] dialog box. Move the cursor on the memory unit (ac

Page 138

194 5.5.7 Finding a Value in Memory To find a value in memory, open the [Memory] window and select [Search] from the popup menu. The [Search Memory

Page 139

195 5.5.8 Filling a Memory Area with a Value A value can be set as the contents of a memory address range using the memory fill function. To fill a

Page 140

196 The source start address and end address selected in the [Memory] window will be displayed in the [Begin] and [End] fields. Checking the [Verify]

Page 141

197 5.5.11 Disabling Update of the Window Contents Automatic update of the [Memory] window contents, which is performed when user program execution

Page 142

198 5.5.14 Loading a Memory Area from a File A file can be loaded to the debugging platform’s memory. Select [Load…] from the popup menu of the [Mem

Page 143

199 5.6 Viewing the I/O Memory A microcomputer contains on-chip peripheral modules. The exact number and type of peripheral modules differ between d

Page 144 - 8.3 Specifying Arguments

200 5.6.3 Modifying the I/O Register Contents To edit the value in an I/O register, double-click or press the [Enter] key on the register to open a

Page 145

201 5.8 Reading and Displaying the Emulator Information Regularly Use the [Extended Monitor] window to know the changing information on the emulator

Page 146

xi 7.1.1 Supported MCUs and User System Interface Cables...349 7.1.2 Operating Voltage and Frequency Specific

Page 147

202 5.8.2 Selecting Items to be Displayed Selecting [Properties…] from the popup menu displays the [Extended Monitor Configuration] dialog box. Fig

Page 148

203 5.9 Displaying Memory Contents in Realtime Use the [Monitor] window to monitor the memory contents during user program execution. In the Monitor

Page 149

204 [Name]: Decides the name of the monitor window. [Options]: Sets monitor conditions. [Address]: Sets the start address for monitoring. [Siz

Page 150

205 Figure 5.33 [Monitor] Window During user program execution, the display is updated according to the setting value of the auto-update interval.

Page 151

206 5.9.6 Hiding the [Monitor] Window When using the Monitor function to monitor the value of a variable from the [Watch] window, hide the [Monitor]

Page 152 - 8.4 Controlling Execution

207 [Add]: Adds a new monitoring condition. [Edit]: Changes the settings of the selected [Monitor] window (disabled when selecting multiple items

Page 153

208 5.10 Viewing the Labels Symbol information is included in the debugging information, which is used when the HEW links the user program source co

Page 154

209 5.10.2 Adding a Label Choose [Add..] from the popup menu and open the [Add Label] dialog box to add a label: Figure 5.37 [Add Label] Dialog B

Page 155 - 9. Using Visual SourceSafe

210 5.10.4 Deleting a Label To delete a label, select the label and choose [Delete] from the popup menu. A confirmation message box appears: Figure

Page 156

211 5.10.6 Loading Labels from a File A symbol file can be loaded and merged into the HEW's current symbol table. Choose [Load...] from the pop

Page 157

xii H.1 System Set-Up for Test Program Execution ...395 H.2 Diagnostic Test Procedur

Page 158

212 Enter all or part of the label name that you wish to find into the edit box and click [OK] or press the [Enter] key. The HEW searches the label l

Page 159

213 5.11 Executing Your Program This section describes how you can execute your program's code. You will learn how to do this by either running

Page 160

214 5.11.4 Running from a Specified Address The [Run Program] dialog box allows the user to run the program from any address. Choose [Debug -> Ru

Page 161 - Emulator Debugger Part

215 5.11.5 Single Step To debug your code it is very useful to be able to step a single line or instruction at a time and examine the effect of that

Page 162

216 5.11.6 Multiple Steps You can step several instructions at a time by using the [Step Program] dialog box. The dialog box also provides an automat

Page 163 - Section 1 Overview

217 5.12 Stopping Your Program This section describes how you can halt execution of your application's code. This section describes how to do t

Page 164 - 1.2 Warnings

218 • To set a PC breakpoint by using the [Breakpoints] dialog box Selecting [Edit -> Source Breakpoint…] displays the [Breakpoints] dialog box.

Page 165 - 1.3 Environmental Conditions

219 5.13 Elf/Dwarf2 Support The HEW supports the Elf/Dwarf2 object file format for debugging applications written in C/C++ and assembly language for

Page 166

220 5.13.3 Supporting Duplicate Labels In some languages, for example C++ overloaded functions, a label may represent more than one address. When suc

Page 167 - 2.1 Emulator Preparation

221 Setting a Function Click the [OK] button to set the functions displayed in the [Set Function Name] list box. The functions are set and the [Selec

Page 169 - User system interface cable

222 Â Setting section group When using the overlay function, the highest-priority section group must be selected in the [Overlay] dialog box; otherwi

Page 170 - 2.5 SIMM Memory Module

223 5.14 Viewing the Variables This section describes how you can look at variables in the source program. 5.14.1 Tooltip Watch The quickest way to

Page 171 - 2.6 Hardware Interface

224 5.14.3 [Watch] Window You can view any value in the [Watch] window. Opening a [Watch] Window To open a [Watch] window, choose [View->Symbol-&g

Page 172 - Trigger output

225 The [R] mark shows that the value of the variable can be updated during user program execution. For updating of the content of the variable that

Page 173

226 Adding a Watch Item Use the [Add Watch] dialog box in the [Watch] window to add Watch items to the [Watch] window. Â To use Add Watch from a [Wat

Page 174 - 2.7 System Check

227 Editing a Watch Item's Value You may wish to change the value of a watch variable, e.g. for testing purposes or if the value is incorrect du

Page 175

228 Deleting a Watch Item To delete a watch item, select it and choose [Delete] from the popup menu. The item is deleted and the [Watch] window is up

Page 176

229 5.14.4 [Locals] Window The local variables and their values can be displayed in the [Locals] window. Opening the [Locals] Window To open the [Loc

Page 177 - Figure 2.17 HEW Window

230 5.15 Using the Event Points The emulator has the event point function that performs breaking, tracing, and execution time measurement by specify

Page 178 - 2.8 Communication Problems

231 Range Channels (Ch9 to Ch12): The emulator has 4 range channels. The range channel can be defined as a combination of one or more of the followi

Page 180

232 Table 5.2 Area Signals Acquired by the Emulator Area Trace Display (Status) Description On-chip ROM ROM ROM On-chip RAM RAM RAM On-chip I/

Page 181 - 3.3 Hardware Features

233 Select [Add...] or the PC breakpoint displayed in this window and then select [Edit...] from the popup menu to display the [Breakpoint/Event Prop

Page 182 - 3.5 Online Help

234 5.15.7 Setting Event Points On the [Event] sheet, the settings for event points are displayed, modified, and added. Figure 5.59 [Event] Window

Page 183

235 (1) [General] page The address and data conditions are set. Figure 5.60 [Breakpoint/Event Properties] Dialog Box ([General] Page) [Type]: S

Page 184

236 [Data Compare]: Sets the data condition. [Compare]: Checking this box compares data. [Use Mask]: Sets a mask condition (available when [Compar

Page 185

237 (2) [Bus/Area] page Use this page to set the bus status and the memory area being accessed. Figure 5.61 [Breakpoint/Event Properties] Dialog

Page 186

238 (3) [Signals] page Use this page to set external signals. Figure 5.62 [Breakpoint/Event Properties] Dialog Box ([Signals] Page) [Probe4]: D

Page 187

239 [Probe1]: Detects the status of the input probe signal 1 [High]: Detects the high level of the input probe signal [Low]: Detects the low l

Page 188

240 [Required number of event occurrences]: Allows a 16-bit pass count to be set. The event must occur the specified number of times before the actio

Page 189

241 The state where the condition is satisfied is retained until the user program is stopped or the event point is reset. When the condition on the e

Page 190

1 1. Overview This chapter describes the fundamental concepts of the High-performance Embedded Workshop. It is intended to give users who are new to

Page 191

242 5.15.8 Setting Trigger Points The trigger point is an event to output a trigger when the specified address has been accessed. Up to four trigger

Page 192

243 Notes: 1. When the condition set for the trigger output (1 to 4) is satisfied, the high-level signal will be output from the corresponding pin

Page 193

244 5.16 Viewing the Trace Information The emulator acquires the results of each instruction execution into the trace buffer as trace information an

Page 194

245 [Status]: Bus status during this cycle; DTC operation, PROG (prefetch), Data (CPU data access cycle), Refresh (refresh cycle), or DMAC (DMAC cyc

Page 195

246 5.16.3 Specifying Trace Acquisition Conditions The capacity of the trace buffer is limited. When the buffer becomes full, the oldest trace infor

Page 196 - 4.4 Debugger Sessions

247 [Suppress]: Acquires no trace information of the specified types of bus cycle. [Time Stamp]: Sets a condition for time stamping. [Clock]: Sele

Page 197

248 (2) [Stop] page Sets trace stop conditions. It is possible to set trace stop conditions with and without delay, with both allowed simultaneously.

Page 198

249 (3) [Delayed Stop] page Sets trace stop conditions. It is possible to set trace stop conditions with and without delay, with both allowed simulta

Page 199

250 (4) [1] to [4] pages Sets a range trace. This is only available when the free trace mode is disabled. Select either of the following four modes:

Page 200

251 • Point to Point Acquires trace information in the specified range. Figure 5.72 Range Trace Setting (Point to Point) [Start Address]: Addr

Page 201 - 4.6 Ending the Emulator

2 1.2 The Main Window The HEW main window appears as shown in figure 1.2. Figure 1.2: HEW Main Window There are three main windows; the workspace

Page 202

252 • Range Only acquires the trace information that satisfies the specified condition. Figure 5.73 Range Trace Setting (Range) [Range Event]:

Page 203 - Section 5 Debugging

253 • Event Acquires trace information, controlling the start and end of trace acquisition with the specified condition. Figure 5.74 Range Trace

Page 204 - [General] page

254 5.16.4 Searching for a Trace Record Use the [Trace Find] dialog box to search for a trace record. To open this dialog box, choose [Find...] from

Page 205

255 (1) [General] page Set the range for searching. Figure 5.75 [Trace Find] Dialog Box ([General] Page) [Trace search range]: Sets the range for

Page 206

256 (2) [Address] page Set an address condition. Figure 5.76 [Trace Find] Dialog Box ([Address] Page) [Don't care]: Detects no address when

Page 207

257 (3) [Data] page Set a data condition. Figure 5.77 [Trace Find] Dialog Box ([Data] Page) [Don't care]: Detects no data when this box is c

Page 208

258 (4) [R/W] page Select the type of access cycles. Figure 5.78 [Trace Find] Dialog Box ([R/W] Page) [Don't care]: Detects no read/write co

Page 209 - 5.2 Downloading a Program

259 (5) [Area] page Select the area being accessed. The selection is not available when a time stamp is acquired. Figure 5.79 [Trace Find] Dialog

Page 210

260 (6) [Status] page Select the status of a bus. The selection is not available when a time stamp is acquired. Figure 5.80 [Trace Find] Dialog Bo

Page 211

261 (7) [Probes] page Select the status of four probe signals. The selection is not available when a time stamp is acquired. Figure 5.81 [Trace Fi

Page 212

3 1.2.3 The Toolbars The toolbars provide a shortcut to the options, which you will use the most often. There are eight default toolbars: Bookmarks,

Page 213

262 (8) [IRQ7-0] page Select the status of IRQ signals. The selection is not available when a time stamp is acquired. Figure 5.82 [Trace Find] Dia

Page 214

263 (9) [Timestamp] page Specify the time stamp value for bus cycles. The specification is not available when a time stamp is acquired. Figure 5.83

Page 215

264 5.16.7 Viewing the [Source] Window The [Source] window corresponding to the selected trace record can be displayed in the following two ways: •

Page 216

265 5.16.12 Extracting Records from the Acquired Information Use the filtering function to extract the records you need from the acquired trace info

Page 217 - 5.4 Viewing the Registers

266 (1) [General] page Set the range for filtering. Figure 5.84 [Trace Filter] Dialog Box ([General] Page) [Don't care other pages]: Only se

Page 218

267 (2) [Address] page Set address conditions. Figure 5.85 [Trace Filter] Dialog Box ([Address] Page) [Don't care]: Detects no address when

Page 219 - 5.5 Operating Memory

268 (3) [Data] page Set a data condition. Figure 5.86 [Trace Filter] Dialog Box ([Data] Page) [Don't care]: Detects no data when this box is

Page 220

269 (4) [R/W] page Select the type of access cycles. Figure 5.87 [Trace Filter] Dialog Box ([R/W] Page) [Don't care]: Detects no read/write

Page 221

270 (5) [Area] page Select the area being accessed. The selection is not available when a time stamp is acquired. Figure 5.88 [Trace Filter] Dialo

Page 222

271 (6) [Status] page Select the status of a bus. The selection is not available when a time stamp is acquired. Figure 5.89 [Trace Filter] Dialog

Page 223

H8S/2628 E6000 EmulatorUser’s ManualUser’s Manual Rev.1.0 2003.12H8S/2628 E6000 HS2628EPI61HE-U2Renesas Microcomputer Development Environment Syste

Page 224

4 Figure 1.8: Standard Toolbar Figure 1.9: Templates Toolbar Figure 1.10: Version Control Toolbar When the Standard toolbar or a toolbar is docked

Page 225

272 (7) [Probes] page Select the status of four probe signals. The selection is not available when a time stamp is acquired. Figure 5.90 [Trace Fi

Page 226

273 (8) [IRQ7-0] page Select the status of IRQ signals. The selection is not available when a time stamp is acquired. Figure 5.91 [Trace Filter] D

Page 227 - 5.6 Viewing the I/O Memory

274 (9) [Timestamp] page Specify the time stamp value for bus cycles. The specification is not available when a time stamp is acquired. Figure 5.92

Page 228

275 5.16.13 Calculating the Difference in Time Stamping Select [Timestamp Difference…] from the popup menu to calculate the time difference between

Page 229

276 5.16.14 Analyzing Statistical Information Choose [Statistic] from the popup menu to open the [Statistic] dialog box and analyze statistical info

Page 230

277 This dialog box allows the user to analyze statistical information concerning the trace information. Set the target of analysis in [Item] and the

Page 231

278 5.17 Viewing the Function Call History The [Stack Trace] window shows the function call history. 5.17.1 Opening the [Stack Trace] Window To ope

Page 232

279 5.17.3 Specifying the View Choose [View Setting...] from the popup menu to open the [Stack Trace Setting] dialog box, which allows the user to s

Page 233

280 5.18 Displaying Memory Contents as an Image The memory contents can be displayed as an image in the [Image View] window. 5.18.1 Opening the [Im

Page 234

281 The following items are to be specified: [Color Information]: Specifies the color information of the image to be displayed. [Mode]: Specifies

Page 235

5 1.2.4 The Workspace Window The “Workspace” window when the HEW is launched only has a single pane. This is the “Projects” tab. If a workspace i

Page 236 - 5.10 Viewing the Labels

282 [Position]: Specifies the start position of the image where part of the image is to be displayed. (Valid when [Part Size] is selected) [X P

Page 237

283 5.18.3 Updating the Window Contents Selecting [Refresh Now] from the popup menu immediately updates the window contents. 5.18.4 Displaying the

Page 238

284 5.19 Displaying Memory Contents as Waveforms Memory contents can be displayed as waveforms in the [Waveform View] window. 5.19.1 Opening the Wa

Page 239

285 Figure 5.102 [Waveform View] Window Displays the memory contents as waveforms. The X axis shows the number of sampling data and the Y axis sho

Page 240

286 5.19.9 Non-Display of Cursor Selecting [Clear Cursor] from the popup menu hides the cursor display. 5.19.10 Displaying the Sampling Information

Page 241 - 5.11 Executing Your Program

287 5.20 Analyzing Performance Use the performance analysis function to measure the rate of execution time. The performance analysis function does no

Page 242

288 Table 5.8 Mode Settings for Measurement Point Page 1 2 3 4 5 6 7 8 Time Of Specified Range Measurement Ο Ο Ο Ο Ο Ο Ο Ο Start Point To En

Page 243

289 5.20.1 Opening the [Performance Analysis] Window Choose [View -> Performance -> Performance Analysis] or click the [PA] toolbar button ()

Page 244

290 5.20.2 Setting Conditions for Measurement Conditions for measurement can be displayed and changed in the [Performance Analysis] window. Select a

Page 245 - 5.12 Stopping Your Program

291 (1) Time Of Specified Range Measurement Figure 5.107 Time Of Specified Range Settings [Range Name]: The name of the range to be measured [Ran

Page 246

6 Figure 1.14: Workspace Window, Docked and Floating When the “Workspace” window or the “Output” window is docked, it has a control bar as shown in

Page 247 - 5.13 Elf/Dwarf2 Support

292 (2) Start Point To End Point Measurement Figure 5.108 Start Point To End Point Measurement Settings [Range Name]: The name of the range to be

Page 248

293 Notes: 1. When [Time Out] is selected in the Start Point To End Point Measurement mode, the execution time will not be measured correctly. 2.

Page 249

294 (3) Start Range To End Range Measurement Figure 5.109 Start Range To End Range Measurement Settings [Range Name]: The name of the range to be

Page 250

295 (4) Access Count Of Specified Range Measurement Figure 5.110 Access Count Of Specified Range Measurement Settings [Range Name]: The name of t

Page 251 - 5.14 Viewing the Variables

296 (5) Called Count Of Specified Range Measurement Figure 5.111 Called Count Of Specified Range Measurement Settings [Range Name]: The name of t

Page 252

297 5.20.3 Selecting the Address Detection Mode and Resolution In measurement of hardware performance, there are two types of address detection mode

Page 254

299 Section 6 Tutorial 6.1 Introduction The following describes the main functions of the emulator by using a tutorial program. The tutorial prog

Page 255

300 6.2 Running the HEW Open a workspace by following the procedure listed in section 4.2.3, Selecting an Existing Workspace. Select the following

Page 256

301 6.3 Downloading the Tutorial Program 6.3.1 Downloading the Tutorial Program Download the object program to be debugged. • Select [Download m

Page 257

7 To float the “Workspace” window or the “Output” window: [Allow Docking] must be checked on the pop-up menu of the window to float the “Workspace”

Page 258 - 5.15 Using the Event Points

302 6.3.2 Displaying the Source Program The HEW allows the user to debug a user program at the source level. • Double-click [Tutorial.cpp] under [

Page 259

303 6.4 Setting a PC Breakpoint A PC breakpoint is a simple debugging function. The [Source] window provides a very simple way of setting a PC brea

Page 260

304 6.5 Setting Registers Set a value of the program counter before executing the program. • Select [Registers] from the [CPU] submenu of the [Vie

Page 261

305 6.6 Executing the Program Execute the program as described in the following: • To execute the program, select [Go] from the [Debug] menu, or c

Page 262

306 The user can see the cause of the break that occurred last time in the [Status] window. • Select [Status] from the [CPU] submenu of the [View] m

Page 263

307 6.7 Reviewing Breakpoints The user can see all the breakpoints set in the program in the [Event] window. • Select [Eventpoints] from the [Code

Page 264

308 6.8 Referring to Symbols The [Label] window can be used to display the information on symbols in modules. Select [Label] from the [Symbol] subm

Page 265

309 6.9 Viewing Memory When the label name is specified, the user can view the memory contents that the label has been registered in the [Memory] w

Page 266

310 6.10 Watching Variables As the user steps through a program, it is possible to watch that the values of variables used in the user program are

Page 267

311 The user can also add a variable to the [Watch] window by specifying its name. • Click the [Watch] window with the right-hand mouse button and s

Page 268

8 The editor window can be customized via the “Format Views” dialog box, which can be invoked via the [Tools->Format Views…] menu option. This dia

Page 269

312 The user can click mark ‘+’ at the left side of array a in the [Watch] window to watch all the elements. Figure 6.18 [Watch] Window (Displayin

Page 270

313 6.11 Displaying Local Variables The user can display local variables in a function using the [Locals] window. For example, we will examine the

Page 271

314 6.12 Stepping Through a Program The HEW provides a range of step menu commands that allow efficient program debugging. Table 6.1 Step Option

Page 272

315 Figure 6.21 [Source] Window (Step In) • The highlighted line moves to the first statement of the sort function in the [Source] window.

Page 273

316 6.12.2 Executing the [Step Out] Command The [Step Out] command steps out of the called function and stops at the next statement of the calling

Page 274

317 6.12.3 Executing the [Step Over] Command The [Step Over] executes a function call as a single step and stops at the next statement of the main

Page 275

318 6.13 Forced Breaking of Program Executions The HEW can force a break in the execution of a program. • Cancel all the breaks. • To execute the

Page 276

319 6.15 Break Function The emulator’s break functions are of two types: PC breaks and breaks at event points. PC breakpoints and event points are

Page 277

320 Figure 6.31 [Breakpoint/Event Properties] Dialog Box • Check the [PC Break] radio button in the [Type] group box. • Use the [Source] window

Page 278

321 • Close the [Event] window. • To stop the tutorial program at the breakpoint, select [Reset Go] from the [Debug] menu. The program runs until i

Page 279

9 1.3 The Help System The help menu is the rightmost menu on the HEW menu bar. It contains the menu option “Contents” which, when selected, takes yo

Page 280

322 6.15.2 Breaking Execution at Event Points Setting up of an event point on event channel 1 (Ch1) such that a break is triggered when the event p

Page 281

323 Figure 6.36 [General] Page ([Breakpoint/Event Properties] Dialog Box) • Click the [OK] button. The [Event] window is displayed, as shown belo

Page 282

324 Figure 6.38 [Source] Window at Execution Stop The [Status] window displays the following contents. Figure 6.39 Displayed Contents of the [S

Page 283

325 6.16 Trace Functions The trace functions of the emulator use the realtime trace buffer, which is able to store the information on up to 32,768

Page 284

326 6.16.1 Displaying a Trace (when Time Stamping is not Available) The method used to specify an address as an event condition for the tracing of

Page 285

327 (2) Register an address as an event condition for trace acquisition. Click the [Add…] button in the [Trace Events] group box on the [General] pag

Page 286

328 (4) The event that has been set is now displayed in the [Event] combo box of the [Trace Events] group box on the [General] page of the [Trace Acq

Page 287

329 (5) To enable the event condition that has been set, uncheck the [Free Trace] check box on the [General] page. This will add pages [1] to [4] to

Page 288

330 (6) Select page [1] and click the [Range] radio button in the [Conditions] group box. This will display the [Range Event] combo box and the [Edit

Page 289

331 (7) Select the event you have registered from the [Range Event] combo box. The event is now enabled. Click the [OK] button to complete the trace

Page 290

10 1.4 Launching the HEW To run the HEW, open the “Start” menu of Windows®, select “Programs”, select “High-performance Embedded Workshop” and then

Page 291

332 6.16.2 Displaying a Trace (when Time Stamping is Available) The following procedure is for obtaining and displaying, with time stamps, trace i

Page 292

333 (5) The event that has been set in the [Event] combo box of the [Trace Events] group box on the [General] page of the [Trace Acquisition] dialog

Page 293

334 (7) To enable the event condition that has been set, uncheck the [Free Trace] check box on the [General] page. This will add pages [1] to [4] (se

Page 294

335 (12) Remove the event points that have been set and clear the trace information. Clicking the right-hand mouse button on the [Breakpoints] windo

Page 295

336 (4) Select R/W in the [Item] combo box and enter WR in the [Start] edit box. After that, click the [New] button. “R/W=WR” is now displayed in th

Page 296

337 (5) Then, select Area from the [Item] combo box and enter RAM in the [Start] edit box. After that, click the [Add] button; the new condition is

Page 297

338 (6) To start statistical analysis of the specified condition, press the [Result] button. The number of write operations that satisfy the conditi

Page 298

339 6.16.4 Function Calls This mechanism is used to only collect trace information on the function calls. (1) Make the setting such that a break occ

Page 299

340 6.17 Stack Trace Function The emulator uses the stack’s information to display the function call history. Notes: 1. This function can be used

Page 300

341 6.18 Performance Measurement Function Performance measurement by the emulator is in the following modes: • Time Of Specified Range Measurement

Page 301

11 2. Build Basics This chapter explains the general functions of the HEW whilst the more advanced features can be found in chapter 3, “Advanced Buil

Page 302

342 (3) Select the line of the [Performance Analysis] window that has 1 in its [No] column and click the right-hand mouse button to display a popup m

Page 303

343 (6) Click the [Settings…] button in the [Common Settings of Performance(PA1-8)] group box to display the [Common Settings of Performance(PA1-8)]

Page 304

344 6.19 Monitor Function The emulator allows monitoring of the content of specified addresses in memory during execution of the user program. In t

Page 305

345 (2) Set the items in the [Monitor Setting] dialog box as follows: • Enter monitor1 in the [Name] edit box. • Set the parameters in the [Options

Page 306

346 (3) Click the [OK] button to open the [Monitor] window. Figure 6.71 [Monitor] Window

Page 307

347 (4) Select [Reset Go] from the [Debug] menu. When the content of the address range changes with execution, the updated values are red (i.e. the c

Page 308

348 6.20 What Next? This tutorial has described the major features of the emulator and the use of the HEW. Sophisticated debugging can be carried o

Page 309

349 Section 7 Hardware Specifications Specific to This Product This section describes the hardware specifications on the H8S/2628 E6000 emulator. 7

Page 310

350 7.2 User System Interface All user system interface signals are directly connected to the MCU in the emulator with no buffering except for thos

Page 311

351 PF0: User system interface cableMCU47 VccΩPF0CBTS330647 kΩ Figure 7.3 User System Interface Circuit for PF0 PC0-PC7: User system interface cabl

Page 312

12 2.2 Project Files In order for the HEW to be able to build your application, you must first tell it, which files should be in the project, and how

Page 313

352 7.3 Differences between MCU and Emulator When the emulator is turned on or initialized, or the system is reset, there are some differences in th

Page 314

353 Section 8 Software Specifications Specific to This Product This section describes the software specifications of the H8S/2628 E6000 emulator. 8

Page 315 - 5.20 Analyzing Performance

354 8.1.3 [Configuration Properties] Dialog Box ([General] Page) Items that can be set in this dialog box are listed below. Figure 8.1 [Configura

Page 316

355 [General] page [Device] Selects the MCU to be emulated. To use an MCU not included in the list, select [Custom] to specify the functions require

Page 317

356 [General] page (cont) [Enable internal ROM area write] When this box is checked, writing to the internal ROM area is enabled. For the result of

Page 318

357 8.1.4 [Configuration Properties] Dialog Box ([Custom] Page) Items that can be set in this dialog box are listed below. Figure 8.2 [Configurat

Page 319

358 [Custom Device] page [ROM] Specify the internal ROM area size. None: - 48kB: Sets the internal ROM area to be 48 kbytes (H’000000 to H’00BFFF).

Page 320

359 [Custom Device] page (cont) [Modules] Check this box to validate on-chip peripherals. Enable DTC: Uses a part of the internal RAM as DTCRAM. Ena

Page 321

360 8.1.5 Memory Mapping Function This emulator supports four blocks of user memory. These can be 256 kbyte or 1 Mbyte each, depending on the SIMM f

Page 322

361 (2) [Platform] Sheet Selecting the [Platform] tab on the [Status] window displays this sheet. Table 8.4 [Platform] Sheet Items [Item] Column [

Page 323

13 2.2.1 Adding Files to a Project Before you can build your application you must first inform the High-performance Embedded Workshop, which files i

Page 324

362 8.1.7 Extended Monitor Function Selecting [View -> CPU -> Extended Monitor] or clicking the [Extended Monitor] toolbar button displays the

Page 325

363 8.1.8 Signals to Indicate Bus States and Areas The following tables show examples of signals to indicate the bus states and areas that can be ac

Page 326

364 8.1.11 Trace Information Selecting [View -> Code -> Trace] or clicking the [Trace] toolbar button displays the [Trace] window. Trace inform

Page 327 - Section 6 Tutorial

365 8.1.12 Searching for a Trace Record While using the emulator, the [Trace Find] dialog box has the following pages: Table 8.9 [Trace Find] Dialo

Page 328 - 6.2 Running the HEW

366 [Don't care]: Detects no IRQ input condition when this box is checked. [Setting]: Detects the specified IRQ input condition. [IRQ5] to [IR

Page 329

367 • [IRQ5-0] page Select the status of IRQ signals. The selection is not available when a time stamp is acquired. Figure 8.4 [Trace Filter] Dia

Page 330

368 8.2 Notes on Usage of the H8S/2628 E6000 Emulator There are the following notes on usage of the emulator. 8.2.1 Environment for Execution of th

Page 331

369 8.2.6 HCAN When the CPU accesses the HCAN register and the operating frequency is 20 MHz or lower, the access counts are the same as those of the

Page 333 - 6.6 Executing the Program

371 Appendix A Troubleshooting • I have a text file in the editor but it does not show any syntax coloring. Ensure that you have named the file (i

Page 335 - 6.7 Reviewing Breakpoints

14 There are a number of other ways to add new files to the project. These are described below: • Clicking right button on an open file in the edit

Page 337 - 6.9 Viewing Memory

373 Appendix B Regular Expressions The HEW editor allows you to include special characters in search strings when performing a find or replace oper

Page 338 - 6.10 Watching Variables

374 • Symbol: \t Meaning: This character matches the tab character. Example 1: \t8 Finds every occurrence of a tab character followed by an 8. E

Page 339

375 Appendix C Placeholders This appendix describes how to use the placeholders, a feature provided by several of the HEW components. C.1 What is

Page 340

376 Figure C.3 Placeholder Combo Box In the fourth example, type the placeholder into the field directly. Ensure that you type the placeholder nam

Page 341

377 C.3 Available Placeholders Table C.1 lists the placeholders and their meanings. Table C.1 Placeholders Placeholder Meaning $(FULLFILE) Filenam

Page 342

378 For example, the placeholders will be expanded as shown in table C.2. Table C.2 Placeholder Expansions (Example) Placeholder Expanded placeho

Page 343

379 Note: Not all of the placeholders are relevant in every field. For example, the $(LINE) placeholder has no meaning when specifying a dependent f

Page 345

381 Appendix D I/O File Format HEW formats the [IO] window based on information it finds in an I/O Register definition file. When you select a debu

Page 346 - 6.14 Resetting the MCU

15 2.2.2 Removing Files from a Project Files can be individually removed from a project, selections of files can be removed or all files can be remo

Page 347 - 6.15 Break Function

382 Example: ; H8S/2655 Series I/O Register Definitions File [Modules] BaseAddress=0 Module1=Power_Down_Mode_Registers Module2=DMA_Channel_Common

Page 348

383 D.2 File format (Bit Field Supported) Each module name must be defined in the [Modules] definition section and the numbering of each module must

Page 349

384 Example: ; H8S/2655 Series I/O Register Definitions File [Modules] FileVersion=2 BaseAddress=0 Module1=Power_Down_Mode_Registers Module2=DMA_

Page 350

385 Appendix E Symbol File Format In order for HEW to be able to understand and decode the symbol file correctly, the file must be formatted as a P

Page 352

387 Appendix F Menus Table F.1 shows GUI menus. Table F.1 GUI Menus Menu Option Shortcut Toolbar Button Remarks View Disassembly Ctrl + D

Page 353 - 6.16 Trace Functions

388 Table F.1 GUI Menus (cont) Menu Option Shortcut Toolbar Button Remarks View (cont) Gra-phic Image… Shift + Ctrl + G Opens the [Image] wind

Page 354

389 Table F.1 GUI Menus (cont) Menu Option Shortcut Toolbar Button Remarks Debug Reset CPU Resets the target hardware and sets the PC to the

Page 355

390 Table F.1 GUI Menus (cont) Menu Option Shortcut Toolbar Button Remarks Debug (cont) Halt Program Esc Stops the execution of the user prog

Page 356

391 Appendix G Command Lines Table G.1 lists the HEW commands. Table G.1 HEW Commands No. Command Name Abbreviation Function 1 ! - Comment 2 A

Page 357

16 2. Select the file or files which you want to remove from the “Project files” list. 3. Click the “Remove” button to remove the selected files or

Page 358

392 Table G.1 HEW Commands (cont) No. Command Name Abbreviation Function 27 GO GO Executes user program 28 GO_RESET GR Executes user program

Page 359

393 Table G.1 HEW Commands (cont) No. Command Name Abbreviation Function 60 SUBMIT SU Executes a command file 61 SYMBOL_ADD SA Defines a symb

Page 361

395 Appendix H Diagnostic Test Procedure This section describes the diagnostic test procedure using the E6000 test program. H.1 System Set-Up for

Page 362

396 H.2 Diagnostic Test Procedure Using Test Program Insert the CD-R (HS2628EPI61SR supplied with the emulator) into the CD-ROM drive of the host co

Page 363

397 The following messages are displayed during test. This test consists of steps 1 to 19. Message Description E6000 H8S/2628 Emulator Tests Vx.x Tes

Page 364

398 3) Test Firmware RAM A) Decode Test page[H'700 - H'71f] ...OK Shows the results of decoding test for the firmware RA

Page 365

399 8) Test Emulation RAM STEP Operation A) Step Operation ...OK Shows the check results for the step executio

Page 366

400 16) Test PERFM G/A A) Time Measurement ...OK B) RESERVED C) Subroutine Count Measurement ...

Page 367

H8S/2628 E6000 Emulator User's ManualPublication Date: Rev.1.00, December 19, 2003Published by: Sales

Page 368 - 6.17 Stack Trace Function

17 2.2.3 Excluding a Project File from Build A file in a project can be individually excluded from build on a configuration by configuration basis.

Page 369

1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 JapanH8S/2628 E6000 EmulatorREJ10B0100-0100HUser’s Manual

Page 370

18 The “File Extensions” list shown in figure 2.7 is divided into two columns. On the left are the file extensions themselves, whilst on the right ar

Page 371

19 To create a new file extension in a new file group: 1. Select [Project->File Extensions...] from the menu bar. The “File Extensions” dialog w

Page 372 - 6.19 Monitor Function

20 If you want to create a new extension because your project uses a different extension from those accepted by the HEW. For example, a phase might

Page 373

21 Figure 2.11: File Groups and Applications To associate an application with a file group: 1. Select the file group to be associated from the “F

Page 374

22 Figure 2.13: Add Application Dialog 5. Enter the name of the tool into the “Name” field. Enter the full path to the tool in the “Command” field

Page 375

23 2.4 Specifying How to Build a File Once you have added the necessary files to the project the next step is to instruct the HEW on how to build ea

Page 376 - 6.20 What Next?

Cautions Keep safety first in your circuit designs! 1. Renesas Technology Corp. puts the maximum effort into making semiconductor products better and

Page 377

24 2.5 Build Configurations The HEW allows you to store all of your build options into a build configuration (figure 2.14). This means that you can “

Page 378 - 7.2 User System Interface

25 2.5.1 Selecting a Configuration The current configuration can be set in two ways: Either: 1. Select it from the drop down list box (figure 2.15)

Page 379

26 2.5.2 Adding and Deleting Configurations You can add a new configuration by copying settings from another configuration or delete a configuration

Page 380

27 2.6 Building a Project The outline of the build process is shown in figure 2.1. 2.6.1 Building a Project The build option only compiles or assem

Page 381 - Debugging Platform Remark

28 2.6.3 Stopping a Build The High-performance Embedded Workshop allows you to halt the build process. To stop a build: 1. Select [Build->Stop

Page 382

29 2.6.6 Controlling the Content of the Output Window It is often useful to display low-level information (such as the command line options that are

Page 383

30 2.7 File Dependencies A typical project will contain dependencies between files, for example, one C file may “#include” one or more header files.

Page 384

31 2.8.2 Show Standard Library Includes By default, any dependent files found in standard include paths will not be shown (figure 2.21.i). For examp

Page 385

32 2.9 Setting the Current Project A workspace can contain more than one project but only one of the projects can be active at any time. This acti

Page 386 - [Custom Device] page

33 To insert an existing project into a workspace: 1. Select [Project->Insert Project…]. The “Insert Project” dialog will be displayed. 2. Set

Page 388

34 2.12 Removing a Project from a Workspace To remove a project from a workspace: 1. Select the project from the “Projects” tab of the “Workspace

Page 389

35 2.14 Relative Projects Paths in the Workspace In the High-performance Embedded Workshop when you add a project to the workspace you can choose to

Page 391

37 3. Advanced Build Features This chapter explains the more advanced build concepts. 3.1 The Build Process Revisited Chapter 2, “Build Basics” beg

Page 392 - 8.1.11 Trace Information

38 The High-performance Embedded Workshop provides the ability to change this build process via its “Build Phases” dialog, which can be, accessed via

Page 393

39 3.2 Creating a Custom Build Phase If you want to execute another tool before, during or after a standard build process then this can be achieved

Page 394

40 The second step (figure 3.3b) asks what type of phase you would like to create. There are two choices: multiple or single. When a multiple phase i

Page 395

41 Once this choice has been made the input file group selection is displayed as “Multiple Groups…” This dialog allows the user to choose multiple in

Page 396

42 The fourth and final step (figure 3.3e) allows you to specify any environment variables, which the phase requires. Figure 3.3e: New Build Phase D

Page 397

43 3.3 Ordering Build Phases In a standard build (shown in figure 3.5), you could add a phase at four different positions: before the compiler, befo

Page 398

I IMPORTANT INFORMATION READ FIRST • READ this user's manual before using this emulator product. • KEEP the user's manual handy for future

Page 399 - Appendix A Troubleshooting

44 3.3.1 Build Phase Order The “Build Order” tab (figure 3.6) displays the current order in which phases will be executed when the build () or build

Page 400

45 To modify a custom phase: 1. Select the custom phase that you would like to modify. 2. Click the “Modify…” button. The modify phase dialog wi

Page 401

46 3.3.2 Build File Phase Order If you were to select a C source file from the “Workspace” window and then activate [Build->Build File] (or press

Page 402

47 3.4 Setting Custom Build Phase Options Once you have defined a custom phase, you will want to specify the command line options that should be use

Page 403 - Appendix C Placeholders

48 3.4.1 Options Tab The “Options” tab (figure 3.11) allows you to define the command line options that will be passed to the phase. The “Command” fi

Page 404

49 3.4.2 Output Files Tab The “Output Files” tab (figure 3.12) is where you can specify the output file or files that will be produced by the phase.

Page 405 - C.3 Available Placeholders

50 To modify an output file: 1. Select the output file that you would like to modify. 2. Click “Modify…”. The “Modify Output File” dialog, which

Page 406

51 To add a dependent file: 1. Click “Add…”. The “Add Dependent File” dialog will be invoked (figure 3.15). 2. Enter the file path or browse to i

Page 407 - C.4 Placeholder Tips

52 3.5 File Mappings By default, the files input to a phase are only taken from the project, i.e. all project files of the type specified in the “Sel

Page 408

53 A file mapping states that you would like the HEW to pass output files of a certain type produced by one phase (referred to as the source phase) t

Page 409 - Appendix D I/O File Format

II LIMITED WARRANTY Renesas warrants its emulator products to be manufactured in accordance with published specifications and free from defect

Page 410

54 3.6 Controlling the Build By default, the High-performance Embedded Workshop will execute all of the phases in a build and only stop if a fatal e

Page 411

55 3.7 Logging Build Output If you would like to write the results of each build to file then invoke the “Customize” dialog by selecting [Tools->

Page 412

56 3.8 Changing Toolchain Version If two or more versions of the same toolchain are registered in the HEW, you can choose a version of the toolchain

Page 413

57 3.9 Using an External Debugger The High-performance Embedded Workshop can launch an external debugger tool. If you want to use another debugger

Page 414

58 3.10 Generating a Makefile The HEW allows you to generate a makefile, which can be used to build parts of your workspace without HEW. This is pa

Page 415 - Appendix F Menus

59 4. Using the Editor This chapter describes how to use the editor that is provided with the High-performance Embedded Workshop. 4.1 The Editor Wi

Page 416 - Table F.1 GUI Menus (cont)

60 4.2 Working with Multiple Files The file area is where you will work with the files of your project. The editor allows you to have many files ope

Page 417

61 4.2.2 Editor Toolbar Buttons New File The new file button creates a new source file window with a default name. When you save the file, you can s

Page 418

62 Insert Template To insert a pre-defined template at the current cursor position, click this toolbar button. The “Insert Template” dialog box wil

Page 419 - Appendix G Command Lines

63 4.2.5 Templates Toolbar Buttons Define Template Specify template text for subsequent insertion. Insert Template Insert the template selected in

Page 420

III State Law: Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages, so

Page 421

64 4.3.4 Opening a File To open a file: 1. Select [File->Open...] or click the open file toolbar button () or press CTRL+O. 2. An open file dia

Page 422

65 4.4 Editing a File The High-performance Embedded Workshop editor supports standard editing functionality. This is available through the usual met

Page 423

66 4.5 Searching and Navigating through Files The High-performance Embedded Workshop editor provides find, replace and file navigation functionality

Page 424

67 4.5.2 Finding Text in Multiple Files To search for text in many files: 1. Select [Edit->Find in Files...], select [Find in Files...] from th

Page 425 - Message Description

68 4.5.3 Replacing Text Replacing text is similar to finding text, as discussed in the previous section. The difference is that when the text is fou

Page 426

69 4.5.4 Jumping to a Specified Line To jump to a line in a file: 1. Ensure that the window, whose contents you want to replace, is the active wi

Page 427

70 4.6 Bookmarks When working with many large files at a time, it can become difficult to locate specific lines or areas of interest. Bookmarks enabl

Page 428

71 4.8 Configuring Text Layout The following sections detail how to set-up the layout of the text within the editor windows. 4.8.1 Page Set-up Whe

Page 429

72 4.8.2 Changing Tabs To change tab size: 1. Select [Tools->Options...]. The “Options” dialog will be displayed. Select the “Editor” tab (figur

Page 430 - User’s Manual

73 4.8.3 Auto Indentation When you press return in a standard editor the insertion cursor will move to the next line down, at the first column (i.e.

Comments to this Manuals

No comments