Renesas H8S/2628 Informações Técnicas

Consulte online ou descarregue Informações Técnicas para Software Renesas H8S/2628. Renesas H8S/2628 Technical information Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 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
.
Vista de página 0
1 2 3 4 5 6 ... 429 430

Resumo do Conteúdo

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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,

Página 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

Página 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

Página 10 - SAFETY PAGE

81 Figure 4.16: Global Editor Column States Dialog

Página 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

Página 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

Página 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

Página 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

Página 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

Página 17

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

Página 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

Página 19

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

Página 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

Página 21

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

Página 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

Página 23

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

Página 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.

Página 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…]

Página 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

Página 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

Página 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

Página 29

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 43

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

Página 44 - .SRC .ASM .MAR .C .LIB .LPF

112 Figure 8.1: Version Control Setup Dialog Commands Tab

Página 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

Página 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”

Página 47

114 Figure 8.3: Modify System Menu Option (Example)

Página 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.

Página 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

Página 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

Página 51

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

Página 52

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

Página 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

Página 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

Página 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

Página 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

Página 57

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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->

Página 68

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

Página 70

Emulator Debugger Part

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 79

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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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

Página 90

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 101 - 4.10 Configuring Text

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 107

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 113

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

Página 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

Página 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

Página 117

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

Página 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

Página 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

Página 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

Página 121

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

Página 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

Página 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

Página 124

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

Página 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

Página 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

Página 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…]

Página 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

Página 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

Página 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

Página 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

Página 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&

Página 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

Página 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

Página 135

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

Página 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.

Página 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

Página 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

Página 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

Página 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]

Página 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

Página 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

Página 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

Página 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

Página 145

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

Página 146

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

Página 147

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

Página 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

Página 149

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

Página 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.

Página 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]

Página 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

Página 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

Página 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

Página 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

Página 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

Página 157

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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/

Página 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

Página 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

Página 183

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

Página 184

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

Página 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

Página 186

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 194

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

Página 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

Página 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

Página 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.

Página 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

Página 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:

Página 200

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

Página 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

Página 202

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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,

Página 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

Página 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

Página 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: •

Página 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

Página 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

Página 218

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

Página 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

Página 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

Página 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

Página 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

Página 223

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

Página 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

Página 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

Página 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

Página 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

Página 228

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

Página 229

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

Página 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

Página 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

Página 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

Página 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

Página 234

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 243

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

Página 244

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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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”

Página 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 [

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 281

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 297

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

Página 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

Página 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

Página 300

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

Página 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

Página 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

Página 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)]

Página 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

Página 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

Página 306

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

Página 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

Página 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

Página 309

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

Página 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

Página 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

Página 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

Página 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

Página 314

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

Página 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

Página 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

Página 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

Página 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

Página 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).

Página 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

Página 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

Página 322

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

Página 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

Página 324

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

Página 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

Página 326

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 341

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

Página 342

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 349

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 365

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

Página 366

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

Página 367

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

Página 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.

Página 369

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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 “

Página 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)

Página 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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 398

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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->

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 420

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

Página 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

Página 422

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

Página 423

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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.

Comentários a estes Manuais

Sem comentários