Renesas SH7641 Informations techniques

Naviguer en ligne ou télécharger Informations techniques pour Mise en réseau Renesas SH7641. Renesas SH7641 Technical information Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 250
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
.
Vue de la page 0
1 2 3 4 5 6 ... 249 250

Résumé du contenu

Page 1 - To our customers

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

Page 2

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

Page 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

Page 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

Page 5 - IMPORTANT INFORMATION

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

Page 6 - DISCLAIMER

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

Page 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

Page 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

Page 9

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

Page 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

Page 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.

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 18

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

Page 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

Page 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

Page 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

Page 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

Page 24

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 33

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

Page 34

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

Page 35

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

Page 36

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

Page 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

Page 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

Page 39

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

Page 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

Page 41

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

Page 42

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

Page 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

Page 44

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

Page 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

Page 46

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 52

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

Page 53

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

Page 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

Page 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

Page 56

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

Page 57

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

Page 58

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 67

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

Page 68

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

Page 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

Page 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

Page 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

Page 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.

Page 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

Page 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.

Page 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

Page 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

Page 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

Page 79

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

Page 80

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

Page 81

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

Page 82

150 Related Item: [Trace] dialog box

Page 83

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

Page 84

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

Page 85

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

Page 86

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

Page 87

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

Page 88

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

Page 89

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

Page 90

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

Page 91

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

Page 92

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

Page 93

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

Page 94

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

Page 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

Page 96

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

Page 97

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

Page 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

Page 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

Page 100

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

Page 101

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

Page 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

Page 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

Page 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

Page 105

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

Page 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

Page 107

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

Page 108

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

Page 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

Page 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

Page 111

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

Page 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

Page 113

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

Page 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

Page 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

Page 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

Page 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 <

Page 118

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

Page 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

Page 120

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

Page 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

Page 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

Page 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

Page 124

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

Page 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

Page 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

Page 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

Page 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

Page 129

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

Page 130

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

Page 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

Page 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

Page 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

Page 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

Page 136

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

Page 137

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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.

Page 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

Page 145

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

Page 146

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 154

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

Page 155

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 161

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

Page 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.

Page 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

Page 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

Page 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

Page 167

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

Page 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

Page 169

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

Page 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

Page 171

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

Page 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.

Page 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

Page 174

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 180

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

Page 181

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

Page 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

Page 183

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

Page 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

Page 185

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

Page 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

Page 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

Page 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

Page 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.

Page 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

Page 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

Page 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

Page 194

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

Page 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

Page 196

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

Page 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

Page 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. •

Page 199

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

Page 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

Page 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

Page 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.

Page 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.

Page 204

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

Page 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

Page 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]

Page 207

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

Page 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

Page 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

Page 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

Page 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 [

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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.

Page 218

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

Page 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

Page 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

Page 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

Page 222

51 Figure 3.31 [HDI] Window (Step Over)

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 230

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

Page 231

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 239

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

Page 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

Page 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.

Page 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

Page 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

Page 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

Page 245

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

Page 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

Page 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

Page 248

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

Page 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

Page 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

Commentaires sur ces manuels

Pas de commentaire