Renesas SH7641 Technical Information

Stöbern Sie online oder laden Sie Technical Information nach Vernetzung Renesas SH7641 herunter. Renesas SH7641 Technical information Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 250
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
.
Seitenansicht 0
1 2 3 4 5 6 ... 249 250

Inhaltsverzeichnis

Seite 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

Seite 2

VI Warnings on Emulator Usage Be sure to read and understand the warnings below before using this emulator. Note that these are the main warnings, no

Seite 3 - Emulator

78 The following is an example of the display in the SH7751 E10A emulator. Figure 3.57 [Trace] Window in the SH7751 E10A Emulator

Seite 4 - Cautions

79 3.19.3 VP_MAP Translation The MCU, which has an MMU, translates internal addresses (virtual addresses) to actual memory addresses (physical addres

Seite 5 - IMPORTANT INFORMATION

80Virtual address Physical addressH'10000H'10FFFH'11000H'11FFFH'12000H'12FFFH'12000H'12FFFH'4000000H&apos

Seite 6 - DISCLAIMER

81 Table 3.5 Address Translation Tables VP_MAP MMU Radio Button* Enabled/Disabled Within/ Outside the range Enabled/Disabled Within/Outsi

Seite 7

82 3.20 Stack Trace Function The emulator uses the stack’s information to display the name of the calling function for a function at which the progr

Seite 8 - SAFETY PAGE

83 Figure 3.60 [Stack Trace] Window Figure 3.60 shows that the position of the program counter is currently at the selected line of the sort() fun

Seite 9

84 3.21 Profiling Function The profile function can measure performance for each function. Notes: 1. Realtime operation is not possible while this

Seite 10 - Warnings on Emulator Usage

85 • The profile function is now enabled. Place the mouse cursor on an entry in the [Profile-List] window, click the right-hand mouse button, then s

Seite 11 - Preface

86 • Data to be measured for the selected function is now set. Select [Select Data] from the pop-up menu by clicking with the right mouse button.

Seite 12

87 Figure 3.64 [Source] Window (Software Break Setting) • Set the same program counter and stack pointer values (PC = H’0c00006c and R15 = H’0c00

Seite 13 - Contents

i Preface Thank you for purchasing the E10A emulator. CAUTION READ section 2, Preparation before Use, of this User’s Manual before using the e

Seite 14

88 • Figures 3.66 and 3.67 show the [Profile-Tree] and [Profile-Chart] windows, respectively. Figure 3.66 [Profile-Tree] Window Figure 3.67 [P

Seite 15

89 3.22 Download Function to the Flash Memory Area The E10A emulator enables downloading to the flash memory area. This function requires a progra

Seite 16 - Figures

90  Flash memory download method It is required to perform necessary settings on the [Loading flash memory] page in the [Configuration] window for

Seite 17

91 Table 3.7 shows the options for the [Loading flash memory] page. Table 3.7 [Loading flash memory] Page Options Option Description [Loading flash

Seite 18

92  Examples of downloading to the flash memory The following shows examples of downloading to the flash memory manufactured by Intel Corporation (

Seite 19

93 Table 3.9 Sample Program Specifications Item Contents RAM area to be used H'0C001000 to H'0C0015BF Write module start address H&apos

Seite 20

94 Notes: 1. When the data has already been written in the flash memory, be sure to select [Enable] for [Erasing flash memory]. If [Disable] is se

Seite 21

95 3.23 What Next? This tutorial has described the major features of the emulator and the use of the HDI. Sophisticated debugging can be carried out

Seite 23 - Section 1 Overview

97 Section 4 Descriptions of Windows 4.1 HDI Windows HDI window menu bars and the corresponding pull-down menus are listed in table 4.1. Where a

Seite 24

ii Related Manuals: • SuperH RISC Engine C/C++ Compiler, Assembler, Optimizing Linkage Editor User's Manual • Hitachi Debugging Interface Use

Seite 25 - 1.1 Warnings

98 Table 4.1 HDI Window Menus and Related Manual Entries (cont) Menu Bar Pull-Down Menu Hitachi Debugging Interface User's Manual T

Seite 26 - 1.2 Environmental Conditions

99 Table 4.1 HDI Window Menus and Related Manual Entries (cont) Menu Bar Pull-Down Menu Hitachi Debugging Interface User's Manual

Seite 27

100 4.2 Descriptions of Each Window This section describes each window. Figures in this section are used as examples. Each E10A emulator type ha

Seite 28 - 1.3 Components

101 Description: The [Configuration] dialog box consists of the [General] page listed in table 4.2. Table 4.2 [Configuration] Dialog Box Page Pag

Seite 29 - PROGRAM will be LOST

102 (1) [General] Page ([Configuration] Dialog Box) Function: This page sets the emulator operation conditions, displays the device name, sets the

Seite 30 - 2.2 HDI Installation

103 Description: Table 4.3 [General] Page Options Option Description [Mode] combo box Displays the device name. [Emulation mode] combo box Sele

Seite 31

104 When a driver is to be changed with the [Change..] button, the following message is displayed. Figure 4.3 Warning Message Box When the [Ye

Seite 32

105 (2) [E10A Driver Details] Dialog Box Function Function: When the [Change] button in the [Driver] group box is clicked on the [General] page in

Seite 33

106 (3) [Loading flash memory] Page ([Configuration] Dialog Box) Function: Downloading to the flash memory is set on the [Loading flash memory] pag

Seite 34

107 Description: Table 4.5 [Loading flash memory] Page Options Option Description [Loading flash memory] radio button Sets Enable for flash memor

Seite 35

iii Contents Section 1 Overview...1 1.1 Warnings...

Seite 36

108 4.2.2 [Breakpoints] Window Function: This window lists all break conditions that have been set. Window: Figure 4.6 [Breakpoints] Window

Seite 37 - 2.5 System Check

109 Description: The [Breakpoints] window displays breakpoint setting information. The items listed in the following tables are displayed. Table 4

Seite 38

110 The pop-up menu, which is opened by clicking the right mouse button, can be used to set, change, and clear breakpoints, and to enable or disabl

Seite 39

111 4.2.3 [Break] Dialog Box Function: This dialog box displays the break condition settings. Window: Figure 4.7 [Break] Dialog Box

Seite 40

112 Description: The [Break] dialog box consists of the pages listed in table 4.8. Table 4.8 [Break] Dialog Box Pages Page Name Description [Poi

Seite 41

113 (1) [Point] Page ([Break] Dialog Box) Function: This page displays software breakpoint settings. In this page, software breakpoints can be set

Seite 42

114 Description: Table 4.9 [Point] Page Options Option Description [Break point] list box Lists the software breakpoints currently being set. Th

Seite 43 - 2.6 Ending the HDI

115 (2) [Condition] Page ([Break] Dialog Box) Function: This page displays the Break Condition settings. These conditions can also be set or clear

Seite 44

116 Description: Table 4.10 [Condition] Page Options Option Description [Break Condition] list box Displays the Break Condition settings. The d

Seite 45 - 2.9 Support

117 4.2.4 [Break Point] Dialog Box Function: This dialog box sets software breakpoints. Window: Figure 4.10 [Break Point] Dialog Box Note: The

Seite 46

iv 3.14.3 Executing [Step Over] Command...50 3.15 Forced Breaking of Program E

Seite 47 - Section 3 Tutorial

118 Description: The [Break Point] dialog box consists only of the [Address] page. This dialog box sets address conditions and address areas. The

Seite 48

119 4.2.5 [Break Condition] Dialog Box Function: This dialog box sets hardware break conditions. Window: Figure 4.11 [Break Condition] Dialog B

Seite 49 - 3.2 Running the HDI

120 Description: The [Break Condition] dialog box consists of multiple pages. A condition to halt the program can be set in each page. Contents to

Seite 50 - 3.3 [HDI] Window

121 4.2.6 [Break Condition] Dialog Box Pages Function: The [Break Condition] dialog box pages allow a number of hardware break conditions to be se

Seite 51 - 3.4 Setting up the Emulator

122 Table 4.13 shows all the [Break Condition] dialog box pages. Table 4.13 [Break Condition] Dialog Box Pages Page Name Function [Address] Set

Seite 52

123 (1) [Address] Page ([Break Condition] Dialog Box) Function: This page sets the address bus conditions. Window: Figure 4.12 [Address] Page ([

Seite 53

124 Description: Table 4.14 [Address] Page Options Option Description [Don’t Care] check box Does not set address conditions. [Address] radio bu

Seite 54

125 (2) [Data] Page ([Break Condition] Dialog Box) Function: This page sets the data bus conditions. Window: Figure 4.13 [Data] Page ([Break Con

Seite 55

126 Description: Table 4.16 [Data] Page Options Option Description [Don’t Care] check box Does not set data conditions. [Value] edit box Sets t

Seite 56

127 (3) [ASID] Page ([Break Condition] Dialog Box) Function: This page sets the ASID conditions. Window: Figure 4.14 [ASID] Page ([Break Conditi

Seite 57

v 5.2.8 BREAKPOINT: BP ...158 5.2.9 BREAKPOINT_CLEAR: BC...

Seite 58

128 (4) [Bus State] Page ([Break Condition] Dialog Box) Function: This page sets bus state conditions and read/write cycle conditions. Window: Fig

Seite 59 - 3.9 Setting Registers

129 Description: Table 4.18 [Bus State] Page Options Group Box Option Description [Bus State] group box [All] radio button Sets the bus state

Seite 60

130 (5) [Count] Page ([Break Condition] Dialog Box) Function: This page sets the conditions for Break Condition 1. Window: Figure 4.16 [Count] P

Seite 61 - 3.10 Executing the Program

131 (6) [General] Page ([Break Condition] Dialog Box) Function: This page sets the conditions for Break Condition 3. Window: Figure 4.17 [General

Seite 62

132 Description: Table 4.20 [General] Page Options Group Box Option Description [LDTLB] group box [Don’t Care] radio button Does not set break

Seite 63 - 3.11 Reviewing Breakpoints

133 4.2.7 [Trace] Window Function: This window displays the trace buffer contents. Window: Figure 4.18 [Trace] Window Note: The types of inform

Seite 64 - 3.12 Viewing Memory

134 Description: This window displays the trace buffer contents. The items listed in table 4.21 are displayed. Table 4.21 [Trace] Window Display

Seite 65 - 3.13 Watching Variables

135 4.2.8 [Trace Acquisition] Dialog Box Function: This dialog box sets trace acquisition conditions. When the [Acquisition] menu is selected fro

Seite 66

136 (1) [Trace Mode] Page ([Trace Acquisition] Dialog Box) Function: This page sets the conditions for trace mode. Window: Figure 4.19 [Trace mo

Seite 67

137 Description: Table 4.23 [Trace mode] Page Options Option Description [AUD trace] radio button Uses AUD trace functions. By default, this bo

Seite 68

vi Figures Figure 1.1 System Configuration with the Emulator (PCMCIA Card Emulator Used)...1 Figure 1.2 System Configuration with the E

Seite 69

138 4.2.9 [System Status] Window Function: This window lists information, such as conditions that have been set to the emulator and execution resu

Seite 70

139 The items listed in the following table are displayed in the [System Status] window. Table 4.24 [System Status] Window Display Items Page Ite

Seite 72

141 Section 5 Command-line Functions 5.1 Table and Symbol Description This section describes the format used in section 5.2, Command Descriptions

Seite 73

142 These are actual input examples. For commands whose execution results in a specific display output, an example of the display is given. 5.1.

Seite 74

143 5.2 Command Descriptions The command list of the E10A emulator is shown below. Table 5.1 E10A HDI Commands No. Command Abb. Function 1 A

Seite 75

144 Table 5.1 E10A HDI Commands (cont) No. Command Abb. Function 16 REFRESH RF Updates the HDI memory information to the latest contents.

Seite 76 - 3.17 Break Function

145 5.2.1 AUD_CLOCK:AUCL Description: Sets or displays the AUD clock (AUDCK) values that have been set. Format: aucl [<option>] <option&g

Seite 77

146 Examples: To set AUD clock (AUDCK) to 15 MHz: >AUD_CLOCK 2 (RET) AUD CLOCK = 15MHz The AUD clock (AUDCK) is displayed: >AUD_CL

Seite 78 - • Click the [OK] button

147 5.2.2 AUD_MODE:AUM Description: Sets or displays AUD trace acquisition conditions. Format: aum [<option1>] [<option2>] <option1

Seite 79

vii Figure 3.21 [Add Watch] Dialog Box...44 Figure 3.22 [Wat

Seite 80

148 Examples: To select realtime trace mode and set continue option: >aum mode R full c (RET) To display settings: >aum (RET) mode

Seite 81

149 5.2.3 AUD_TRACE:AUT Description: Displays the trace information. Format: aut [<option1>] [<option2>] <option1> = start<st

Seite 82

150 Related Item: [Trace] dialog box

Seite 83

151 5.2.4 BREAKCONDITION_CLEAR: BCC Description: Clears hardware breakpoints that have been set. Format: bcc [<channel>] <channel> = c

Seite 84

152 5.2.5 BREAKCONDITION_DISPLAY: BCD Description: Displays hardware breakpoints that have been set. The display contents include a hardware break

Seite 85

153 5.2.6 BREAKCONDITION_ENABLE: BCE Description: Enables or disables hardware breakpoints that have been set. Format: bce [<channel>] <mo

Seite 86

154 5.2.7 BREAKCONDITION_SET: BCS Description: Sets hardware breakpoints. Note: The function will differ according to the devices used. For funct

Seite 87

155 Table 5.8 BREAKCONDITION_SET Command Parameters Parameter Type Description <channel_number> Numerical value Hardware break conditio

Seite 88

156 Table 5.8 BREAKCONDITION_SET Command Parameters (cont) Parameter Type Description <datawidth> Keyword Data bus access conditions Se

Seite 89

157 Examples: To set the following conditions for channel 1 hardware breakpoint: <addropt> item: An address bus value of H'1000000,

Seite 90

viii Figure 3.64 [Source] Window (Software Break Setting)...87 Figure 3.65 [Profile-List]

Seite 91

158 5.2.8 BREAKPOINT: BP Description: Sets software breakpoints. Note: The function will differ according to the devices used. Format: bp <addr

Seite 92

159 Examples: To set a software breakpoint at physical address H'10002C8: >bp H'10002C8 space physical (RET) To set a software breakp

Seite 93

160 5.2.9 BREAKPOINT_CLEAR: BC Description: Clears software breakpoints that have been set. Format: bc [<address> [<address_space> [<

Seite 94

161 Examples: To clear all breakpoints: >bc (RET) To clear all software breakpoints whose address value is H'1000000: >bc H'10000

Seite 95 - 3.19 Trace Functions

162 5.2.10 BREAKPOINT_DISPLAY: BD Description: Displays software breakpoints that have been set. Format: bd Table 5.11 BREAKPOINT_DISPLAY Comman

Seite 96

163 5.2.11 BREAKPOINT_ENABLE: BE Description: Enables or disables software breakpoints that have been set. Format: be <address> <address_

Seite 97

164 Related Items: BC, BD, BP, VC, VD, VE, and VS commands [Breakpoints] window [Break] dialog box

Seite 98

165 5.2.12 DEVICE_TYPE: DE Description: Displays the currently selected device. Format: de Table 5.13 DEVICE_TYPE Command Parameter Parameter T

Seite 99

166 5.2.13 GO_OPTION: GP Description: Displays or sets the emulation mode. Format: Displays emulation mode. gp Sets emulation mode. gp <eml_o

Seite 100

167 Examples: To display the currently set emulation mode for user program execution: >gp (RET) Emulator execution mode = Sequential break C

Seite 101

ix Figure 6.10 [Trace mode] Page...203 Figure 6.11

Seite 102

168 5.2.14 JTAG_CLOCK: JCK Description: Displays or sets the JTAG clock (TCK) frequency. Format: Displays the JTAG clock (TCK) frequency. jck Se

Seite 103

169 JTAG Clock 15MHz (when PCI used): To set the JTAG clock (TCK) frequency: >jck 16 (RET) JTAG Clock 16.5MHz To display the JTAG cloc

Seite 104 - 3.20 Stack Trace Function

170 5.2.15 MEMORYAREA_SET: MAS Description: Displays and sets memory area at command input, such as load, verify, save, memory display, or memory c

Seite 105

171 Examples: To display a memory area for command input, such as load, verify, save, memory display, and memory change: >mas (RET) memoryar

Seite 106 - 3.21 Profiling Function

172 5.2.16 REFRESH: RF Description: Updates the HDI memory information. Format: rf Table 5.17 REFRESH Command Parameter Parameter Type Descrip

Seite 107

173 5.2.17 RESTART: RST Description: Restarts the emulator. The settings of breakpoints or trace acquisition conditions are not reset here. Format

Seite 108

174 5.2.18 STATUS: STS Description: Displays status information of the emulator. Format: sts Table 5.19 STATUS Command Parameter Parameter Ty

Seite 109

175 5.2.19 STEP_INTERRUPT: SI Description: Sets or displays the enable or disable status of interrupts during step execution. If enabled, interrup

Seite 110

176 5.2.20 TRACE_DISPLAY: TD Description: Displays the acquired trace information. The information to be acquired is the branch source and branch

Seite 111

177 Example: To display trace information according to information acquired during user program execution: >td (RET) IP TYPE ADDR MNEMONIC

Seite 112

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

Seite 113

x Tables Table 1.1 Environmental Conditions...4 Table 1.2 O

Seite 114

178 5.2.21 UBC_MODE:UM Description: Sets or displays the current UBC state. Format: um [<ubc_mode>] Table 5.22 UBC_MODE Command Parameter

Seite 115 - follows:

179 5.2.22 VPMAP_CLEAR: VC Description: Clears the address translation (VP_MAP) table that is set in the emulator. Format: vc [<address>] T

Seite 116

180 5.2.23 VPMAP_DISPLAY: VD Description: Displays the address translation (VP_MAP) table set in the emulator. Format: vd Table 5.24 VPMAP_DISPL

Seite 117 - 3.23 What Next?

181 5.2.24 VPMAP_ENABLE: VE Description: Enables or disables the setting of the address translation (VP_MAP) table in the emulator. Format: ve <

Seite 118

182 5.2.25 VPMAP_SET: VS Description: Sets the address translation (VP_MAP) table in the emulator. Format: vs <lsaddress> <leaddress>

Seite 119 - 4.1 HDI Windows

183 Section 6 SH7641 E10A Emulator Specifications 6.1 Components of the Emulator The SH7641 E10A emulator supports the SH7641. Table 6.1 lists t

Seite 120

184 Table 6.1 Components of the Emulator (HS7641KCM01H, HS7641KCM02H, HS7641KCI01H, or HS7641KCI02H) Classi-fication Component Appearance Quan-

Seite 121

185 For EMI countermeasure, use the ferrite core by connecting the user interface cable. When the user interface cable is connected with the emul

Seite 122

186 6.2 Pin Arrangement of the H-UDI Port Connector Figure 6.2 shows the pin arrangement of the H-UDI port connector (14 pins). CAUTION Note t

Seite 123

187 Notes: 1. Handling of the TCK, TMS, TDI, /TRST, /ASEBRKAK, and /ASEMD0 pins depends on the use conditions of the H-UDI as follows: (a) When t

Seite 124

xi Table 5.6 BREAKCONDITION_DISPLAY Command Parameter ...152 Table 5.7 BREAKCONDITION_ENABLE Command Param

Seite 125 - Description:

188 Figure 6.3 shows the pin arrangement of the H-UDI port connector (36 pins). H-UDI port connector(Pin 1 mark)1. Input to or output from the use

Seite 126

189 Notes: 1. Handling of the TCK, TMS, TDI, /TRST, /ASEBRKAK, and /ASEMD0 pins depends on the use conditions of the H-UDI as follows: (a) When

Seite 127

190 6.3 User System Interface Circuit The emulator is connected to the user system via the user interface cable. Figure 6.4 shows the user system

Seite 128

191 The user system interface circuits of the emulator (HS7641KCM02H) are shown. Figures 6.5 and 6.6 show the circuits of the H-UDI pin and AUD pi

Seite 129

192 AUD logic circuit (EPF6024ATC144-2) To user systemAUDATA[3:0]AUDSYNC3Vcc10 kΩCLKOUTCLKINAUDATA[3:0]3Vcc10 kΩAUDSYNCA Y74LVT1253Vcc10 kΩAUDCKOE

Seite 130

193 Figure 6.7 shows the user system interface circuit of the emulator (HS7641KCI01H). TDITCKTMSTDOJTAG controller (EPF10K20RC208-3)To user systemY

Seite 131

194 The user system interface circuits of the emulator (HS7641KCI02H) are shown. Figures 6.8 and 6.9 show the circuits of the H-UDI pin and AUD pi

Seite 132

195 AUDATA_I[3:0]AUDIAUDOAUD logic circuitTo user systemA Y74LVT1253Vcc4.7 kΩAUDATA[3:0]Y A74LVT244AUDATA_O[3:0]A Y74LVT1253Vcc4.7 kΩAUDSYNCY A

Seite 133

196 6.4 Differences between the SH7641 and the Emulator • When the emulator system is initiated, it initializes the general registers and part of

Seite 134

197 Note: The memory must not be accessed or modified in sleep state. • Reset Signals The SH7641 reset signals are only valid during emulation s

Seite 136

198 • Cache Operation during User Program Break When cache is enabled, the emulator accesses the memory by the following methods:  At memory w

Seite 137

199 6.5 Specific Functions for the SH7641 E10A Emulator The SH7641 E10A emulator supports the following useful function: • Performance measuremen

Seite 138

200 6.5.2 Break Condition Functions In addition to BREAKPOINT functions, the emulator has Break Condition functions. In the HDI, three types of c

Seite 139

201 Table 6.6 lists the combinations of conditions that can be set under Break Condition 1, 2, 3. Table 6.6 Dialog Boxes for Setting Break Condit

Seite 140

202 AUD Trace Functions: This function is operational when the AUD pin of the device is connected to the emulator. Table 6.9 shows the AUD trace

Seite 141

203 To set the AUD trace acquisition mode, click the [Trace] window with the right mouse button and select [Acquisition] from the pop-up menu to di

Seite 142

204 (a) Branch Trace Function The branch source and destination addresses and their source lines are displayed. Branch trace can be acquired by sel

Seite 143

205 Figure 6.12 [Window trace] Page Notes: 1. When the [L-bus] or [I-bus] radio button is selected, the following bus cycles will be traced.

Seite 144

206 (c) Software Trace Function Note: This function can be supported with SHC compiler V7.0 and later. When a specific instruction is executed, th

Seite 145

207 Table 6.10 [Trace] Window Display Contents Trace Type TYPE Column ADDR Column DATA Column BRANCH Branch source address No display Branch

Seite 146

1 Section 1 Overview The E10A emulator (hereafter referred to as the emulator) is a software and hardware development support tool for application

Seite 147

208 Internal Trace Function: This function is activated by selecting the [Internal trace] radio button in the [Trace type] group box of the [Trace

Seite 148

209 6. When a BREAKPOINT is set to the slot instruction of a delayed branch instruction, the PC value becomes an illegal value. Accordingly, do n

Seite 149

210 In the [Configuration] dialog box, if [User] is set while the [UBC mode] list box has been set, the STEP-type commands that use Break Condition

Seite 150

211 Figure 6.15 [Performance 1] Dialog Box  Measurement range One of the following ranges can be specified. This depends on the item selected

Seite 151

212 3. When Break condition 1->2 or Break condition 2->1 is selected in [Mode] of the [Performance 1] dialog box, specify one or more item

Seite 152

213  Measurement item Items are measured with [Channel 1 to 4] in the [Performance 1] dialog box. Maximum four conditions can be specified at th

Seite 153

214 Table 6.12 Measurement Item (cont) Selected Name Option URAM access stall US (Devices incorporating the U memory can only be measured.) In

Seite 154

215 2. Displaying the measured result The measured result is displayed in the [Performance Analysis] window or the PERFORMANCE_ANALYSIS command wi

Seite 155

216 2. Functions that cannot be used while the profile function is being used (a) Performance measurement function The profile function is impleme

Seite 156

217 6.5.11 Downloading to the Flash Memory Examples of connecting with and downloading to the flash memory (DA28F640J5-150) manufactured by Intel

Seite 157 - Page Name Description

2 Figure 1.2 System Configuration with the Emulator (PCI Card Emulator Used) The emulator provides the following features: • Excellent cost-perf

Seite 158

218 Figure 6.17 shows a connection of the flash memory using the sample program. SH7641 DA28F640J5-150A0D15 to D0A22 to A1CS05 VRDWE0A0DQ15 to DQ0

Seite 159

219 6.5.12 Notes on HDI 1. Moving Source File Position after Creating Load Module When the source file is moved after creating the load module, t

Seite 160

220  Variable name specification When a name other than a variable name, such as a symbol name or function name, is specified, no data is display

Seite 161

221  File specification by commands The current directory may be altered by file specifications in commands. Absolute paths are recommended to b

Seite 162

222 14. Load of Motorola S-type Files This HDI does not support Motorola S-type files with only the CR code (H'0D) at the end of each record.

Seite 163

223 • Verify In the [I/O Registers] window, the verify function of the input value is disabled. 18. Note on [Registers] Window Operation During Pr

Seite 164

224  [Breakpoints] window During user program execution, it is impossible to jump from the breakpoint to the source or address line on the [Sourc

Seite 165 - 5.2 Command Descriptions

225 27. Note on Using the [Run program] Dialog Box When [Run...] is selected from the [Run] menu to specify the stop address, there is the followin

Seite 167

SH7641 E10A Emulator User's ManualPublication Date: Rev.1.00, June 26, 2003Published by: Sales Strateg

Seite 168

3 • AUD trace function* The AUD trace function enables realtime trace. Note: The AUD is an abbreviation of the Advanced User Debugger. Support for

Seite 169

1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 JapanSH7641 E10A EmulatorREJ10B0010-0100HUser’s Manual

Seite 170

4 1.2 Environmental Conditions CAUTION Observe the conditions listed in tables 1.1 and 1.2 when using the emulator. Failure to do so will cause

Seite 171

5 Table 1.2 Operating Environments Item Description Host computer Built-in Pentium or higher-performance CPU (200 MHz or higher recommended); IBM

Seite 172 - [Trace] dialog box

6 1.3 Components Check all the components unpacking. For details on the E10A emulator components, refer to section 6.1, Components of the Emulator.

Seite 173

7 Section 2 Preparation before Use 2.1 Emulator Preparation WARNING READ the reference sections shaded in figure 2.1 before using the emulat

Seite 174

SH7641 E10A EmulatorUser’s ManualUser’s Manual Rev.1.0 2003.06SH7641 E10A HS7641KCM01HERenesas Microcomputer Development Environment System

Seite 175

8 2.2 HDI Installation When the CD-R is inserted in the host computer’s CD-ROM drive, the HDI installation wizard is automatically activated (hol

Seite 176

9 2.2.2 Installing under Windows NT4.0 Operating System (1) When the emulator is a PCI card: 1. Shut the operating system down and turn off

Seite 177

10 2.2.3 Installing under Windows2000 Operating System (1) When the emulator is a PCI card: 1. Log-on with an administrator-level user nam

Seite 178

11 2.3 Connecting the Card Emulator to the Host Computer Insert the card emulator, according to its type, in a PCMCIA TYPE II slot or PCI slot on

Seite 179

12 WARNING When inserting the PCI-card emulator, note the following. Failure to do so will damage the host computer. 1. Turn off the host co

Seite 180

13 User system interface cableH-UDI port connectorUser system GNDconnection User systemGND lineTabPin 1Pin 8 Figure 2.4 Connecting the User Syste

Seite 181

14 SHxxxxH-UDITDI TDOTDITDOTDI TDOH-UDIportJTAGportBoundary scan loopUser systemTDI: Test data inputTDO: Test data outputTAP: Test access portICTAP

Seite 182

15 2.5 System Check When the HDI program is executed, use the procedure below to check that the emulator is operating correctly. 1. Check that t

Seite 183

16 5. Select the setting to be used. Figure 2.7 [Select Session] Dialog Box

Seite 184

17 6. The [E10A Driver Details] dialog box is displayed. With the [Driver] combo box, select the driver to connect the HDI with the emulator. [Int

Seite 185

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

Seite 186 - [Break] dialog box

18 • Click the [Close] button. 7. The HDI window is displayed, and the dialog box is displayed as shown in figure 2.9. Figure 2.9 Dialog Box o

Seite 187

19 Figure 2.11 [JTAG Connector Disconnected] Dialog Box 3. If the emulator is not initiated, the following dialog boxes shown in figures 2.12

Seite 188

20 Figure 2.14 [COMMUNICATION TIMEOUT ERROR] Dialog Box Figure 2.15 [INVALID ASERAM FIRMWARE!] Dialog Box Figure 2.16 [Error JTAG boot] D

Seite 189

21 The [E10A Driver Details] dialog box is displayed when the [OK] button is clicked. Select the correct driver. For details, refer to section 6.

Seite 190

22 2.7 Uninstalling the HDI Follow this procedure to remove the installed HDI from the user’s host computer. 1. Open [Add/Remove Programs Proper

Seite 191 - (when PCI used):

23 2.8 CD-R 2.8.1 Configuration of the CD-R The root directory of the CD-R contains a setup program for HDI installation. The folders contain

Seite 193

25 Section 3 Tutorial 3.1 Introduction The following describes the main functions of the HDI by using a tutorial program. The tutorial program is ba

Seite 194

26 Notes: 1. Operation of tutorial.abs is big endian. For little-endian operation, tutorial.abs must be recompiled. After recompilation, the addre

Seite 195

27 3.2 Running the HDI To run the HDI, select the [HDI for E10A SHxxxx] -> [Hitachi Debugging Interface] from the [Start] menu. Figure 3.1 [St

Seite 196

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

Seite 197

28 3.3 [HDI] Window Figure 3.2 [HDI] Window The key functions of the HDI are described in section 4, Descriptions of Windows. Numbers in figure 3

Seite 198

29 3.4 Setting up the Emulator The clocks which are used for data communications must be set up on the emulator before the program is downloaded. •

Seite 199

30 3.5 Setting the [Configuration] Dialog Box • Select [Configure Platform...] from the [Setup] menu to set a communication clock. The [Configurat

Seite 200

31 3.6 Checking the Operation of the Target Memory for Downloading Check that the destination memory area for downloading is operating correctly. Wh

Seite 201

32 • Placing the mouse cursor on a point in the display of data in the [Memory] window and double clicking allows the values at that point to be cha

Seite 202

33 3.7 Downloading the Tutorial Program 3.7.1 Downloading the Tutorial Program Download the object program to be debugged. • Select [Load Program.

Seite 203

34 3.7.2 Displaying the Source Program The HDI allows the user to debug a program at the source level. • Select [Source...] from the [View] menu.

Seite 204

35 Figure 3.9 [Source] Window (Displaying the Source Program) • If necessary, select the [Font] option from the [Customise] submenu on the [Setup

Seite 205

36 3.8 Setting a Software Breakpoint A breakpoint is a simple debugging function. The [Source] window provides a very simple way of setting a softwa

Seite 206 - PC Card Emulator

37 3.9 Setting Registers Set values of the program counter and the stack pointer before executing the program. • Select [Registers] from the [View]

Seite 207

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

Seite 208 - Top view

38 • To change the value of the program counter (PC), double-click the value area in the [Registers] window with the mouse. The following dialog bo

Seite 209

39 3.10 Executing the Program Execute the program as described in the following: • To execute the program, select [Go] from the [Run] menu, or clic

Seite 210

40 The user can see the cause of the break that occurred last time in the [System Status] window. • Select [Status] from the [View] menu. After the

Seite 211

41 3.11 Reviewing Breakpoints The user can see all the breakpoints set in the program in the [Breakpoints] window. • Select [Breakpoints] from the [

Seite 212 - (Model Name: HS0005KCM03H)

42 3.12 Viewing Memory When the label name is specified, the user can view the memory contents that the label has been registered in the [Memory] win

Seite 213

43 3.13 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 cha

Seite 214

44 • Click [Add Watch] button to add a variable to the [Watch] window. Figure 3.20 [Watch] Window (Displaying the Array) The user can also add a

Seite 215 - (Model Name: HS0005KCI03H)

45 The [Watch] window will now also show the int-type variable max. Figure 3.22 [Watch] Window (Displaying the Variable) The user can double-click

Seite 216

46 3.14 Stepping Through a Program The HDI provides a range of step menu commands that allow efficient program debugging. Table 3.2 Step Option Me

Seite 217 - (Model Name: HS0005KCI04H)

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

Seite 218

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

Seite 219

48 3.14.2 Executing [Step Out] Command The [Step Out] steps out of the called function and stops at the next statement of the calling statement in t

Seite 220

49 • To execute two steps, use [Step In] twice. Figure 3.28 [HDI] Window (Step In −>−>−>−> Step In) • The value of max displayed in

Seite 221

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

Seite 222

51 Figure 3.31 [HDI] Window (Step Over)

Seite 223

52 3.15 Forced Breaking of Program Executions The HDI can force a break in the execution of a program. • To execute the remaining sections of the m

Seite 224

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

Seite 225

54 3.17 Break Function The emulator has software and hardware break functions. With the HDI, a software breakpoint can be set using the [Breakpoints

Seite 226

55 • Click the [Breakpoints] window with the right mouse button and select [Add] from the pop-up menu. The [Break] dialog box is displayed. The [Po

Seite 227

56 • Click the [Add...] button to display the [Breakpoint] dialog box. • Enter H'0c0000c2 to the [Value] edit box. Figure 3.37 [Break Point

Seite 228

57 The [Break] dialog box is displayed. The address set in the value field of [Breakpoint] and the memory space are displayed. Figure 3.38 [Point

Seite 229

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

Seite 230

58 The software breakpoint that has been set is displayed in the [Breakpoints] window. Figure 3.39 [Breakpoints] Window (Software Breakpoint Setti

Seite 231

59 The [System Status] window displays the following contents. Figure 3.41 Displayed Contents of the [System Status] Window (Software Break) Note:

Seite 232

60 3.18 Hardware Break Function A method is given below in which the address bus condition and the read cycles for the bus status condition are set

Seite 233

61 The [Break] dialog box is displayed. To set hardware break conditions, select [Condition] in the [Break] dialog box to display the [Condition] pa

Seite 234

62 • Clear the [Don't Care] check box in the [Address] page. • Select the [Address] radio button and enter H'0c0000b2 as the value in the

Seite 235

63 • Select [Bus State] to display the [Bus State] page. • Select the [Read] radio button in the [Read/Write] group box. Figure 3.45 [Bus State

Seite 236

64 • Click the [OK] button. • The [Break] dialog box is displayed, and the first point display in the [Break Condition] list box changes from Empty

Seite 237

65 The newly set hardware breakpoint is displayed in the [Breakpoints] window. With this setting, Break Condition 1 is displayed in [Type] in the [B

Seite 238

66 The program runs then stops at the condition specified under Break Condition 1. Figure 3.48 [Source] Window at Execution Stop (Break Condition

Seite 239

67 The [System Status] window displays the following contents. Figure 3.49 Displayed Contents of the [System Status] Window (Break Condition 1) No

Seite 240

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 emul

Seite 241

68 3.18.1 Setting the Sequential Break Condition The emulator has sequential break functions. When the hardware break conditions listed in table 3.

Seite 242

69 Figure 3.50 [Configuration] Dialog Box (Sequential Break Setting) Note: The items that can be set in this window differ according to the produ

Seite 243

70 Set hardware break conditions as follows: Break condition 1: When address H'0c0000c6 is accessed in a read cycle, a break condition is satis

Seite 244

71 The program runs then stops at the condition specified under Break Condition 1. Figure 3.52 [Source] Window at Execution Stop (Sequential Break

Seite 245

72 The [System Status] window displays the following contents. Figure 3.53 Displayed Contents of the [System Status] Window (Sequential Break) Not

Seite 246

73 3.19 Trace Functions The E10A emulator has two branch-instruction trace functions. (1) Internal Trace Function The branch source and branch destin

Seite 247

74 Table 3.4 AUD Trace Functions Type Mode Description Realtime trace When the next branch occurs while the trace information is being output, th

Seite 248

75 3.19.1 Internal Trace Function The branch source and branch destination information for the latest several branch instructions are displayed. T

Seite 249

76 Run the program as shown in the example of section 3.17.1, Software Break Function. The trace results are displayed in the [Trace] window after t

Seite 250 - User’s Manual

77 3.19.2 AUD Trace Function This function is operational when the AUD pin of the MCU is connected to the emulator. The following is the procedure

Kommentare zu diesen Handbüchern

Keine Kommentare