HS7751RKCI02H Renesas Electronics America, HS7751RKCI02H Datasheet

no-image

HS7751RKCI02H

Manufacturer Part Number
HS7751RKCI02H
Description
ON CHIP DEBUG EMULATOR W/TRACE
Manufacturer
Renesas Electronics America
Datasheets

Specifications of HS7751RKCI02H

Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
To our customers,
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.
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry.
On April 1
st
, 2010, NEC Electronics Corporation merged with Renesas Technology
Renesas Electronics website:
Old Company Name in Catalogs and Other Documents
http://www.renesas.com
April 1
Renesas Electronics Corporation
st
, 2010

Related parts for HS7751RKCI02H

HS7751RKCI02H Summary of contents

Page 1

To our customers, Old Company Name in Catalogs and Other Documents st On April 1 , 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the ...

Page 2

All information included in this document is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm ...

Page 3

To all our customers Regarding the change of names mentioned in the document, such as Hitachi Electric and Hitachi XX, to Renesas Technology Corp. The semiconductor operations of Mitsubishi Electric and Hitachi were transferred to Renesas Technology Corporation on April ...

Page 4

Cautions Keep safety first in your circuit designs! 1. Renesas Technology Corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may ...

Page 5

SH7751R E10A Emulator User’s Manual Rev.1.0 2001.12 ...

Page 6

...

Page 7

Hitachi neither warrants nor grants licenses of any rights of Hitachi’s or any third party’s patent, copyright, trademark, or other intellectual property rights for information contained in this document. Hitachi bears no responsibility for problems that may arise with ...

Page 8

...

Page 9

IMPORTANT INFORMATION • READ this user's manual before using this emulator product. • KEEP the user's manual handy for future reference. Do not attempt to use the emulator product until you fully understand its mechanism. Emulator Product: Throughout this document, ...

Page 10

LIMITED WARRANTY Hitachi warrants its emulator products to be manufactured in accordance with published specifications and free from defects in material and/or workmanship. Hitachi, at its option, will replace any emulator products returned intact to the factory, transportation charges prepaid, ...

Page 11

State Law: Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages, so the above limitation or exclusion may not apply to you. This warranty gives you specific legal rights, and ...

Page 12

READ this user's manual before using this emulator product. • KEEP the user's manual handy for future reference. Do not attempt to use the emulator product until you fully understand its mechanism. DEFINITION OF SIGNAL WORDS This is the ...

Page 13

Observe the precautions listed below. Failure will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY. The USER PROGRAM will be LOST not ...

Page 14

Warnings on Emulator Usage Be sure to read and understand the warnings below before using this emulator. Note that these are the main warnings, not the complete list. Always switch OFF the host computer and user system before connecting or ...

Page 15

Thank you for purchasing the E10A emulator. READ section 2, Preparation before Use, of this User’s Manual before using the emulator product. Incorrect operation will damage the user system and the emulator product. This emulator is an efficient development tool ...

Page 16

Related Manuals: SH Series Cross Assembler User's Manual H Series Linkage Editor User's Manual H Series Librarian User's Manual SuperH RISC Engine C/C++ Compiler User's Manual Hitachi Debugging Interface User's Manual Hardware Manual for each device Programming Manual for each ...

Page 17

Preface........i Section 1 Overview............................................................................................1 1.1 Warnings ........................................................................................................................... 3 1.2 Environmental Conditions ................................................................................................ 4 1.3 Components ...................................................................................................................... 6 Section 2 Preparation before Use ........................................................................7 2.1 Emulator Preparation ........................................................................................................... 7 2.2 HDI Installation ................................................................................................................... 8 2.2.1 Installing under Windows 98 and Windows ...

Page 18

Executing [Step In] Command............................................................................. 46 3.14.2 Executing [Step Out] Command .......................................................................... 48 3.14.3 Executing [Step Over] Command ........................................................................ 50 3.15 Forced Breaking of Program Executions .......................................................................... 52 3.16 Displaying Local Variables............................................................................................... 53 3.17 Break Function.................................................................................................................. 54 3.17.1 Software Break ...

Page 19

BREAKCONDITION_ENABLE: BCE............................................................... 153 5.2.7 BREAKCONDITION_SET: BCS ....................................................................... 154 5.2.8 BREAKPOINT: BP ............................................................................................. 158 5.2.9 BREAKPOINT_CLEAR: BC .............................................................................. 160 5.2.10 BREAKPOINT_DISPLAY: BD .......................................................................... 162 5.2.11 BREAKPOINT_ENABLE: BE ........................................................................... 163 5.2.12 DEVICE_TYPE: DE ........................................................................................... 165 5.2.13 GO_OPTION: GP................................................................................................ 166 5.2.14 JTAG_CLOCK: ...

Page 20

AUD Trace Function......................................................................................................... 243 7.3.1 AUD_CLOCK Command: AUCL....................................................................... 243 7.3.2 AUD_MODE Command: AUM .......................................................................... 245 7.3.3 WINDOWTRACE_SET Command: WTS .......................................................... 248 7.4 CPU Status Acquisition Function ..................................................................................... 250 7.4.1 CPUSTATUS Command: CS .............................................................................. 250 vi ...

Page 21

Figures Figure 1.1 System Configuration with the Emulator (PCMCIA Card Emulator Used)............. 1 Figure 1.2 System Configuration with the Emulator (PCI Card Emulator Used)...................... 2 Figure 2.1 Emulator Preparation Flow Chart............................................................................. 7 Figure 2.2 Inserting the PCMCIA Card Emulator in ...

Page 22

Figure 3.21 [Add Watch] Dialog Box ....................................................................................... 44 Figure 3.22 [Watch] Window (Displaying the Variable) .......................................................... 45 Figure 3.23 [Watch] Window (Displaying Array Elements) ..................................................... 45 Figure 3.24 [Step In] Button...................................................................................................... 46 Figure 3.25 [Source] Window (Step In) .................................................................................... 47 ...

Page 23

... Name: HS0005KCM04H) ......................................................................... 191 Figure 6.7 User System Interface Circuit (HS7751RKCI01H) (Model Name: HS0005KCI03H) ........................................................................... 192 Figure 6.8 User System Interface Circuit of the Hitachi-UDI Pin (HS7751RKCI02H) (Model Name: HS0005KCI04H) ........................................................................... 193 Figure 6.9 User System Interface Circuit of the AUD Pin (HS7751RKCI02H) (Model Name: HS0005KCI04H) ........................................................................... 194 ix ...

Page 24

Figure 6.10 [Condition] Page .................................................................................................... 202 Figure 6.11 Message Box for Clearing a TLB Error ................................................................. 204 Figure 6.12 [Trace mode] Page ................................................................................................. 206 Figure 6.13 [Window trace] Page .............................................................................................. 207 Figure 6.14 [Trace] Window ..................................................................................................... 208 Figure 6.15 [Branch ...

Page 25

Tables Table 1.1 Environmental Conditions ......................................................................................... 4 Table 1.2 Operating Environments............................................................................................ 5 Table 2.1 Recommended Hitachi-UDI Port Connector ............................................................. 12 Table 2.2 Contents of the CD-R Directories.............................................................................. 23 Table 3.1 Tutorial Program: Configuration and Parts ............................................................... 25 Table 3.2 Step ...

Page 26

... Table 5.25 VPMAP_ENABLE Command Parameter ............................................................... 181 Table 5.26 VPMAP_SET Command Parameters ...................................................................... 182 Table 6.1 Components of the Emulator (HS7751RKCM01H, HS7751RKCI01H, HS7751RKCM02H, or HS7751RKCI02H) ........................................................... 184 Table 6.2 Register Initial Values at Emulator Power-On .......................................................... 195 Table 6.3 Type Number and Driver........................................................................................... 198 Table 6.4 Types of Break Conditions ........................................................................................ 199 Table 6 ...

Page 27

Table 7.7 AUD_CLOCK Command Parameter ........................................................................ 244 Table 7.8 AUD_MODE Command Parameter .......................................................................... 246 Table 7.9 WINDOWTRACE_SET Command Parameter ......................................................... 248 Table 7.10 CPUSTATUS Command Parameter........................................................................ 251 xiii ...

Page 28

xiv ...

Page 29

The E10A emulator (hereafter referred to as the emulator software and hardware development support tool for application systems using the microprocessor developed by Hitachi, Ltd. The PCMCIA card emulator or PCI card emulator (hereafter referred to as the ...

Page 30

Figure 1.2 System Configuration with the Emulator (PCI Card Emulator Used) The emulator provides the following features: Excellent cost-performance card emulator Compactness and low price are implemented using the PCMCIA interface or the PCI interface. Realtime emulation Realtime emulation of ...

Page 31

AUD trace function* The AUD trace function enables realtime trace. Note: The AUD is an abbreviation of the Advanced User Debugger. Support for the AUD varies with the product. 1.1 Warnings READ the following warnings before using the emulator product. ...

Page 32

Environmental Conditions Observe the conditions listed in tables 1.1 and 1.2 when using the emulator. Failure will cause illegal operation in the user system, the emulator product, and the user program. Table 1.1 Environmental Conditions Item ...

Page 33

Table 1.2 Operating Environments Item Description Host computer Built-in Pentium or higher-performance CPU (200 MHz or higher recommended); IBM PC or compatible machine with the PCMCIA TYPE II slot or the PCI slot. OS Windows Minimum memory 32 Mbytes or ...

Page 34

Components Check all the components unpacking. For details on the E10A emulator components, refer to section 6.1, Components of the Emulator. If the components are not complete, contact a Hitachi sales agency. 6 ...

Page 35

Section 2 Preparation before Use 2.1 Emulator Preparation READ the reference sections shaded in figure 2.1 before using the emulator product. Incorrect operation will damage the user system and the emulator product. The USER PROGRAM will be LOST. Unpack the ...

Page 36

HDI Installation When the CD-R is inserted in the host computer’s CD-ROM drive, the HDI installation wizard is automatically activated (holding the Shift key down while the CD-R is inserted cancels this automatic activation). To run the installation wizard ...

Page 37

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 the power to the host computer. 2. Insert the PCI-card emulator in a slot on ...

Page 38

Installing under Windows 2000 Operating System (1) When the emulator is a PCI card: 1. Log-on with an administrator-level user name. 2. Install the HDI. (When a component is selected, be sure to select [PCI Card Driver].) 3. Shut ...

Page 39

Connecting the Card Emulator to the Host Computer Insert the card emulator, according to its type PCMCIA TYPE II slot or PCI slot on the host computer (figures 2.2 and 2.3). Note: When using Windows 98, Windows ...

Page 40

When inserting the PCI-card emulator, note the following. Failure will damage the host computer. 1. Turn off the host computer. 2. Insert the emulator into the PCI slot in parallel. 3. Screw in the emulator after checking ...

Page 41

Figure 2.4 Connecting the User System Interface Cable to the User System when the 14-pin Straight Type Connector is Used Notes connect the signals output from the Hitachi-UDI port connector, refer to the device pin alignment ...

Page 42

Figure 2.5 User System Example ...

Page 43

System Check When the HDI program is executed, use the procedure below to check that the emulator is operating correctly. 1. Check that the emulator card is inserted in the host computer’s slot. 2. Connect the user system interface ...

Page 44

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

Page 45

The [E10A Driver Details] dialog box is displayed. With the [Driver] combo box, select the driver to connect the HDI with the emulator. [Interface] displays the interface name of the PC interface board to be connected, and [Channel] displays ...

Page 46

The HDI window is displayed, and the dialog box is displayed as shown in figure 2.9. Figure 2.9 Dialog Box of the RESET Signal Input Request Message 8. Power on the user system. 9. Input the reset signal from ...

Page 47

If the emulator is not initiated, the following dialog boxes shown in figures 2.12 through 2.16 will be displayed. (a) If the following dialog box is displayed, the power of the user system may not be input or the ...

Page 48

Figure 2.15 [INVALID ASERAM FIRMWARE!] Dialog Box Figure 2.16 [Error JTAG boot] Dialog Box 4. If the driver is not correctly connected, the following dialog box will be displayed. Figure 2.17 [Unable to restore the previous driver settings] Dialog Box ...

Page 49

Ending the HDI Exit the HDI by using the following procedure: 1. Select [Exit] from the [File] menu to end the HDI. When the [Exit HDI] dialog box is displayed, click the [Yes] button. 2. Then, the [Save session] ...

Page 50

Uninstalling the HDI Follow this procedure to remove the installed HDI from the user’s host computer. 1. Open [Add/Remove Programs Properties] from the control panel. Select the HDI program from the list and click the [Add/Remove…] button. 2. The ...

Page 51

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 the files and programs listed below. Table 2.2 Contents of the CD-R Directories Directory Name Contents Dlls ...

Page 52

24 ...

Page 53

Introduction The following describes the main functions of the HDI by using a tutorial program. The tutorial program is based on the C program that sorts ten random data items in ascending or descending order. The tutorial program performs ...

Page 54

Notes: 1. Operation of tutorial.abs is big endian. For little-endian operation, tutorial.abs must be recompiled. After recompilation, the addresses may differ from those given in this section. 2. This program was created by using Hitachi Embedded Workshop (hereafter referred to ...

Page 55

Running the HDI To run the HDI, select the [HDI for E10A SHxxxx] -> [Hitachi Debugging Interface] from the [Start] menu. For the procedure of running the HDI, refer to section 2.5, System Check. Figure 3.1 [Start] Menu 27 ...

Page 56

Window The key functions of the HDI are described in section 4, Descriptions of Windows. Numbers in figure 3.2 indicate the following: 1. Menu bar: Gives the user access to the HDI commands for using the HDI debugger. ...

Page 57

Setting up the Emulator The clocks which are used for data communications must be set up on the emulator before the program is downloaded. AUD clock A clock used in acquiring AUD traces. If its frequency is set too ...

Page 58

Setting the [Configuration] Dialog Box Select [Configure Platform...] from the [Setup] menu to set a communication clock. The [Configuration] dialog box is displayed. Figure 3.3 [Configuration] Dialog Box Set any value in the [AUD clock] and [JTAG clock] combo ...

Page 59

Checking the Operation of the Target Memory for Downloading Check that the destination memory area for downloading is operating correctly. When the destination memory is SDRAM or DRAM, a register in the bus controller must be set before downloading. ...

Page 60

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 changed. Data can also be directly edited around the current position of the ...

Page 61

Downloading the Tutorial Program 3.7.1 Downloading the Tutorial Program Download the object program to be debugged. Select [Load Program...] from the [File] menu. The [Load Program] dialog box is displayed. Enter ‘[installation directory]\tutorial\tutorial\Debug\tutorial.abs’ in the [File name] list box ...

Page 62

Displaying the Source Program The HDI allows the user to debug a program at the source level. Select [Source...] from the [View] menu. The [Open] dialog box is displayed. Select the C source file that corresponds to the object ...

Page 63

Figure 3.9 [Source] Window (Displaying the Source Program) If necessary, select the [Font] option from the [Customise] submenu on the [Setup] menu to select a font and size that are legible. Initially the [Source] window shows the start of the ...

Page 64

Setting a Software Breakpoint A breakpoint is a simple debugging function. The [Source] window provides a very simple way of setting a software breakpoint at any point in a program. For example, to set a breakpoint at the sort ...

Page 65

Setting Registers Set values of the program counter and the stack pointer before executing the program. Select [Registers] from the [View] menu. The [Registers] window is displayed. Figure 3.11 [Registers] Window 37 ...

Page 66

To change the value of the program counter (PC), double-click the value area in the [Registers] window with the mouse. The following dialog box is then displayed, and the value can be changed. Set the program counter to H’0c00006c in ...

Page 67

Executing the Program Execute the program as described in the following: To execute the program, select [Go] from the [Run] menu, or click the [Go] button on the toolbar. The program will be executed up to the breakpoint that ...

Page 68

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 [System Status] window is displayed, open the [Platform] page, and check the status of ...

Page 69

Reviewing Breakpoints The user can see all the breakpoints set in the program in the [Breakpoints] window. Select [Breakpoints] from the [View] menu. The pop-up menu, opened by clicking the [Breakpoints] window with the right mouse button, also allows ...

Page 70

Viewing Memory When the label name is specified, the user can view the memory contents that the label has been registered in the [Memory] window. For example, to view the memory contents corresponding to the _main in word size: ...

Page 71

Watching Variables As the user steps through a program possible to watch that the values of variables used in the user program are changed. For example, set a watch on the long-type array a declared at the ...

Page 72

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 variable to the [Watch] window by specifying its name. Click the [Watch] window with the ...

Page 73

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 the + symbol to the left of any variable in the [Watch] window to watch the all elements ...

Page 74

Stepping Through a Program The HDI provides a range of step menu commands that allow efficient program debugging. Table 3.2 Step Option Menu Description Command Step In Executes each statement, including statements within functions. Step Over Executes a function ...

Page 75

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

Page 76

Executing [Step Out] Command The [Step Out] steps out of the called function and stops at the next statement of the calling statement in the main function. To step out of the sort function, select [Step Out] from the ...

Page 77

To execute two steps, use [Step In] twice. Figure 3.28 [HDI] Window (Step In The value of max displayed in the [Watch] window is changed to the maximum data value. Step In) 49 ...

Page 78

Executing [Step Over] Command The [Step Over] executes a function call as a single step and stops at the next statement of the main program. Using [Step Over], execute two steps to reach the change function statement. Figure 3.29 ...

Page 79

Figure 3.31 [HDI] Window (Step Over) 51 ...

Page 80

Forced Breaking of Program Executions The HDI can force a break in the execution of a program. To execute the remaining sections of the main function, select [Go] from the [Run] menu or the [Go] button on the toolbar. ...

Page 81

Displaying Local Variables The user can display local variables in a function using the [Locals] window. For example, we will examine the local variables in the main function, which declares five local variables min, and max. ...

Page 82

Break Function The emulator has software and hardware break functions. With the HDI, a software breakpoint can be set using the [Breakpoints] window, and a hardware break condition can be set using the [Break Condition] dialog box. An overview ...

Page 83

Click the [Breakpoints] window with the right mouse button and select [Add] from the pop-up menu. The [Break] dialog box is displayed. The [Point] page is displayed as a default. Figure 3.36 [Point] Page ([Break] Dialog Box) 55 ...

Page 84

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

Page 85

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 ([Break] Dialog Box) (After Software Breakpoint Setting) Click the [Close] button (or [OK] button in ...

Page 86

The software breakpoint that has been set is displayed in the [Breakpoints] window. Figure 3.39 [Breakpoints] Window (Software Breakpoint Setting) To stop the tutorial program at the breakpoint, the following procedure must be executed: Close the [Breakpoints] window. Set the ...

Page 87

The [System Status] window displays the following contents. Figure 3.41 Displayed Contents of the [System Status] Window (Software Break) Note: The items that can be displayed in this window differ according to the product. For the items that can be ...

Page 88

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 under Break Condition 1 as hardware break conditions. Select [Breakpoint Window] from the [View] ...

Page 89

The [Break] dialog box is displayed. To set hardware break conditions, select [Condition] in the [Break] dialog box to display the [Condition] page. Figure 3.43 [Condition] Page ([Break] Dialog Box three breakpoints can be set independently for the ...

Page 90

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 [Address] edit box. Figure 3.44 [Address] Page ([Break Condition 1] Dialog Box) Note: The items that can ...

Page 91

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 ([Break Condition 1] Dialog Box) Note: The items that can be set in this window differ ...

Page 92

Click the [OK] button. The [Break] dialog box is displayed, and the first point display in the [Break Condition] list box changes from Empty to Enable. Figure 3.46 [Break] Dialog Box (After Hardware Break Condition Setting) Note: The number of ...

Page 93

The newly set hardware breakpoint is displayed in the [Breakpoints] window. With this setting, Break Condition 1 is displayed in [Type] in the [Breakpoints] window. This completes the setting of the Break Condition 1 hardware break condition. When the program ...

Page 94

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

Page 95

The [System Status] window displays the following contents. Figure 3.49 Displayed Contents of the [System Status] Window (Break Condition 1) Note: The items that can be displayed in this window differ according to the product. For the items that can ...

Page 96

Setting the Sequential Break Condition The emulator has sequential break functions. When the hardware break conditions listed in table 3.3 are satisfied, program execution is halted. This mode is called sequential break. Table 3.3 Sequential Break Conditions Break Condition ...

Page 97

Figure 3.50 [Configuration] Dialog Box (Sequential Break Setting) Note: The items that can be set in this window differ according to the product. For the settings for each product, refer to the online help. Click the [OK] button and close ...

Page 98

Set hardware break conditions as follows: Break condition 1: When address H'0c0000c6 is accessed in a read cycle, a break condition is satisfied. Break condition 2: When address H'0c0000b2 is accessed in a read cycle, a break condition is satisfied. ...

Page 99

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

Page 100

The [System Status] window displays the following contents. Figure 3.53 Displayed Contents of the [System Status] Window (Sequential Break) Note: The items that can be displayed in this window differ according to the product. For the items that can be ...

Page 101

Trace Functions The E10A emulator has two branch-instruction trace functions. (1) Internal Trace Function The branch source and branch destination addresses, mnemonics, operands, and source lines are displayed. Since this function uses the trace buffer built into the MCU, ...

Page 102

Table 3.4 AUD Trace Functions Type Mode Acquisition Realtime trace mode when branches continuously occur Non realtime trace Acquisition Trace continue mode when the trace Trace stop buffer of the emulator becomes full 74 Description When the next branch occurs ...

Page 103

Internal Trace Function The branch source and branch destination information for the latest several branch instructions are displayed. The following is a procedure to set the internal trace function (this function is not needed to be set in the ...

Page 104

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 the program execution is completed. If necessary, adjust the column width by dragging the header bar ...

Page 105

AUD Trace Function This function is operational when the AUD pin of the MCU is connected to the emulator. The following is the procedure for setting the AUD trace function (this function does not need to be set in ...

Page 106

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

Page 107

VP_MAP Translation The MCU, which has an MMU, translates internal addresses (virtual addresses) to actual memory addresses (physical addresses). Address translation is performed according to the address translation table (translation look-aside buffer: TLB) in the MCU. The MMU operates ...

Page 108

H'10000 H'10FFF H'11000 H'11FFF H'12000 H'12FFF Virtual address Figure 3.58 Address Translation according to VP_MAP Tables How to translate addresses depends on the settings of the radio buttons of the memory area group in the [Configuration] dialog box. The following ...

Page 109

Table 3.5 Address Translation Tables VP_MAP Within/ Radio Enabled/ Outside Button* Disabled the range Normal Enabled Within the Range Outside the Range Disabled Within/ outside the range Virtual Enabled/ Within/ disabled outside the range Physical Enabled/ Within/ disabled outside the ...

Page 110

Stack Trace Function The emulator uses the stack’s information to display the name of the calling function for a function at which the program counter is currently pointing. Notes: 1. This function can be used only when the load ...

Page 111

Figure 3.60 shows that the position of the program counter is currently at the selected line of the sort() function, and that the sort() function is called from the main() function. Notes the function is not deeply nested ...

Page 112

Profiling Function The profile function can measure performance for each function. Notes: 1. Realtime operation is not possible while this function is in operation, since internal breaks are generated during program execution. Measuring the profile itself affects the measurements. ...

Page 113

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 select [Enable Profiler] from the pop-up menu. Figure 3.62 Selection of [Enable Profiler] 85 ...

Page 114

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. The [Select Data] dialog box is displayed. Use the [Select Data] dialog box to select ...

Page 115

Figure 3.64 [Source] Window (Software Break Setting) Set the same program counter and stack pointer values (PC = H’0c00006c and R15 = H’0c000c00) as were set in section 3.9, Setting Registers (again, use the [Registers] window). Click the [Go] button. ...

Page 116

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

Page 117

Download Function to the Flash Memory Area The E10A emulator enables downloading to the flash memory area. This function requires a program for writing the flash memory (hereinafter referred write module), a program for erasing the ...

Page 118

Flash memory download method It is required to perform necessary settings on the [Loading flash memory] page in the [Configuration] window for downloading to the flash memory. Figure 3.68 [Loading flash memory] Page 90 ...

Page 119

Table 3.7 shows the options for the [Loading flash memory] page. Table 3.7 [Loading flash memory] Page Options Option [Loading flash memory] radio button [Erasing flash memory] radio button [File name] edit box [Bus width of flash memory] list box ...

Page 120

Examples of downloading to the flash memory The following shows examples of downloading to the flash memory manufactured by Intel Corporation (type number: G28F640J5-150) that has been mounted on Hitachi's SH7751 CPU board (type number: HS7751STC01H). A sample is provided ...

Page 121

Table 3.9 Sample Program Specifications Item RAM area to be used Write module start address Erase module start address (i) Since the SDRAM is used, the bus controller is set. (ii) Options on the [Loading flash memory] page in the ...

Page 122

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 selected, a verify error occurs. 2. When [Erasing flash memory] is selected, it takes about ...

Page 123

What Next? This tutorial has described the major features of the emulator and the use of the HDI. Sophisticated debugging can be carried out by using the emulation functions that the emulator offers. This provides for effective investigation of ...

Page 124

96 ...

Page 125

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 description of a menu is included in the Hitachi Debugging Interface User's Manual or in this ...

Page 126

Table 4.1 HDI Window Menus and Related Manual Entries (cont) Menu Bar Pull-Down Menu View Menu Breakpoints Command Line Disassembly... I/O Area Labels Locals Memory... Performance Analysis Profile-List Profile-tree Registers Source… Stack Trace Status Trace Watch Run Menu Reset CPU ...

Page 127

Table 4.1 HDI Window Menus and Related Manual Entries (cont) Menu Bar Pull-Down Menu Memory Menu Refresh Load Save Verify Test Fill Copy Compare Setup Menu Status bar Options Radix Customise Configure Platform… Window Menu Cascade Tile Arrange Icons Close ...

Page 128

Descriptions of Each Window This section describes each window. Figures in this section are used as examples. Each E10A emulator type has explanatory notes. Read section 6, SHxxxx E10A Emulator Specifications. 4.2.1 [Configuration] Dialog Box Function: This dialog box ...

Page 129

Description: The [Configuration] dialog box consists of the [General] page listed in table 4.2. Table 4.2 [Configuration] Dialog Box Page Page Name [General] [Loading flash memory] Clicking the [OK] button sets the emulation conditions. If the [Cancel] button is clicked, ...

Page 130

Page ([Configuration] Dialog Box) Function: This page sets the emulator operation conditions, displays the device name, sets the emulation mode, UBC mode, and memory area (only for a product that supports a device with the MMU function), sets ...

Page 131

Description: Table 4.3 [General] Page Options Option [Mode] combo box [Emulation mode] combo box [Step option] combo box [UBC mode] combo box [Memory area] group box [AUD clock] combo box [JTAG clock] combo box [Driver] group box [Change...] button Notes: ...

Page 132

When a driver changed with the [Change..] button, the following message is displayed. When the [Yes] button is clicked, the [E10A Driver Details] dialog box is displayed. When the [No] button is clicked, the display returns to ...

Page 133

Driver Details] Dialog Box Function Function: When the [Change] button in the [Driver] group box is clicked on the [General] page in the [Configuration] dialog box, the [E10A Driver Details] dialog box is displayed. Figure 4.4 [E10A Driver ...

Page 134

Page ([Configuration] Dialog Box) Function: Downloading to the flash memory is set on the [Loading flash memory] page. Window: Figure 4.5 [Loading flash memory] Page ([Configuration] Dialog Box) 106 ...

Page 135

Description: Table 4.5 [Loading flash memory] Page Options Option [Loading flash memory] radio button [Erasing flash memory] radio button [File name] edit box [Bus width of flash memory] list box [Flash memory erasing time] edit box* [Entry point] group box ...

Page 136

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

Page 137

Description: The [Breakpoints] window displays breakpoint setting information. The items listed in the following tables are displayed. Table 4.6 [Breakpoints] Window Display Items Item Description [Enable] Displays whether the break condition is enabled or disabled. BREAKPOINT: l Break Condition: m ...

Page 138

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 disable break conditions. The pop-up menu functions are described in the following table. Table 4.7 ...

Page 139

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

Page 140

Description: The [Break] dialog box consists of the pages listed in table 4.8. Table 4.8 [Break] Dialog Box Pages Page Name [Point] [Condition] The dialog boxes which set or modify break conditions can be displayed from the pages above. Clicking ...

Page 141

Page ([Break] Dialog Box) Function: This page displays software breakpoint settings. In this page, software breakpoints can be set, changed, and cleared. Window: Figure 4.8 [Point] Page ([Break] Dialog Box) 113 ...

Page 142

Description: Table 4.9 [Point] Page Options Option Description [Break point] list box Lists the software breakpoints currently being set. The display contents are <breakpoint address> and <address space>. <address space> is displayed as follows: [Add...] button Sets software breakpoints. Clicking ...

Page 143

Page ([Break] Dialog Box) Function: This page displays the Break Condition settings. These conditions can also be set or cleared in this page. Window: Figure 4.9 [Condition] Page ([Break] Dialog Box) Note: The number of hardware break conditions ...

Page 144

Description: Table 4.10 [Condition] Page Options Option Description [Break Condition] list Displays the Break Condition settings. box The display at system initiation is as follows: When conditions are set, Enable is displayed. When no conditions are set, Empty is displayed. ...

Page 145

Point] Dialog Box Function: This dialog box sets software breakpoints. Window: Figure 4.10 [Break Point] Dialog Box Note: The items that can be set in this window differ according to the product. For the settings for each product, ...

Page 146

Description: The [Break Point] dialog box consists only of the [Address] page. This dialog box sets address conditions and address areas. The [Address] page options are as follows: Table 4.11 [Address] Page Options Option [Value] edit box [Normal] radio button ...

Page 147

Condition] Dialog Box Function: This dialog box sets hardware break conditions. Window: Figure 4.11 [Break Condition] Dialog Box Note: The items that can be set in this window differ according to the product. For the settings for each ...

Page 148

Description: The [Break Condition] dialog box consists of multiple pages. A condition to halt the program can be set in each page. Contents to be set by each page are described in section 4.2.6, [Break Condition] Dialog Box Pages. Clicking ...

Page 149

Condition] Dialog Box Pages Function: The [Break Condition] dialog box pages allow a number of hardware break conditions to be set. Some functions may not be supported by some types of emulators. The setting conditions may differ from ...

Page 150

Table 4.13 shows all the [Break Condition] dialog box pages. Table 4.13 [Break Condition] Dialog Box Pages Page Name Function [Address] Sets the address conditions of Break Condition 1 and Break Condition 2. (Address condition is not displayed in the ...

Page 151

Page ([Break Condition] Dialog Box) Function: This page sets the address bus conditions. Window: Figure 4.12 [Address] Page ([Break Condition 1] Dialog Box) Note: The items that can be set in this window differ according to the product. ...

Page 152

Description: Table 4.14 [Address] Page Options Option Description [Don’t Care] check box Does not set address conditions. [Address] radio button Sets use of the normal address bus as break conditions. [Only program fetched Sets a break before prefetched address execution ...

Page 153

Page ([Break Condition] Dialog Box) Function: This page sets the data bus conditions. Window: Figure 4.13 [Data] Page ([Break Condition 1] Dialog Box) Note: The items that can be set in this window differ according to the product. ...

Page 154

Description: Table 4.16 [Data] Page Options Option [Don’t Care] check box [Value] edit box [Byte] radio button [Word] radio button [Long] radio button [X-bus data] radio button [Y-bus data] radio button [Non user mask] radio button [User mask] radio button ...

Page 155

Page ([Break Condition] Dialog Box) Function: This page sets the ASID conditions. Window: Figure 4.14 [ASID] Page ([Break Condition] Dialog Box) Description: Table 4.17 [ASID] Page Options Option [Don’t Care] check box [ASID] edit box Note: This page ...

Page 156

State] Page ([Break Condition] Dialog Box) Function: This page sets bus state conditions and read/write cycle conditions. Window: Figure 4.15 [Bus State] Page ([Break Condition] Dialog Box) Note: The items that can be set in this window differ ...

Page 157

Description: Table 4.18 [Bus State] Page Options Group Box Option [Bus State] group [All] radio button box [Data] radio button [DMA] radio button [Read/Write] group [Read/Write] radio box button [Read] radio button Sets read cycles as break conditions. [Write] radio ...

Page 158

Page ([Break Condition] Dialog Box) Function: This page sets the conditions for Break Condition 1. Window: Figure 4.16 [Count] Page ([Break Condition] Dialog Box) Table 4.19 [Count] Page Options Option [Don’t Care] check box Input area Note: Some ...

Page 159

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

Page 160

Description: Table 4.20 [General] Page Options Group Box Option [LDTLB] group box [Don’t Care] radio button [Stop after executing LDTLB instruction] radio button [DMA] radio button [I/O] group box [Don’t Care] radio button [Stop on accessing internal I/O area] radio ...

Page 161

Window Function: This window displays the trace buffer contents. Window: Note: The types of information and the number of branch instructions differ according to the product. For the settings for each product, refer to the online help. Figure ...

Page 162

Description: This window displays the trace buffer contents. The items listed in table 4.21 are displayed. Table 4.21 [Trace] Window Display Items Item Description [No.] Displays the number in ascending order as the trace stop point is 0 (signed decimal). ...

Page 163

Acquisition] Dialog Box Function: This dialog box sets trace acquisition conditions. When the [Acquisition] menu is selected from the pop-up menu, which is displayed by clicking the right mouse button in the [Trace] window, the [Trace Acquisition] dialog ...

Page 164

Mode] Page ([Trace Acquisition] Dialog Box) Function: This page sets the conditions for trace mode. Window: Figure 4.19 [Trace mode] Page ([Trace Acquisition] Dialog Box) Note: This function differs according to the product. For the specifications of each ...

Page 165

Description: Table 4.23 [Trace mode] Page Options Option [AUD trace] radio button [Internal trace] radio button [Realtime trace] radio button [Non realtime trace] radio button When the next branch occurs while the trace information is being [Trace continue] radio button ...

Page 166

Status] Window Function: This window lists information, such as conditions that have been set to the emulator and execution results. Window: Note: The items that can be displayed in this window differ according to the product. For the ...

Page 167

The items listed in the following table are displayed in the [System Status] window. Table 4.24 [System Status] Window Display Items Page Item [Session] Target System Session Name Program Name [Platform] Connected To CPU Run status Cause of last break ...

Page 168

140 ...

Page 169

Section 5 Command-line Functions 5.1 Table and Symbol Description This section describes the format used in section 5.2, Command Descriptions. The descriptions of some commands are given over two or more pages. 5.1.1 Format The input format for each command ...

Page 170

Examples These are actual input examples. For commands whose execution results in a specific display output, an example of the display is given. 5.1.4 Related Items Related E10A HDI commands (abbreviations) and dialog boxes are shown. (Refer to section ...

Page 171

Command Descriptions The command list of the E10A emulator is shown below. Table 5.1 E10A HDI Commands No. Command 1 AUD_CLOCK 2 AUD_MODE 3 AUD_TRACE 4 BREAKCONDITION_ CLEAR 5 BREAKCONDITION_ DISPLAY 6 BREAKCONDITION_ ENABLE 7 BREAKCONDITION_ SET 8 BREAKPOINT ...

Page 172

Table 5.1 E10A HDI Commands (cont) No. Command 16 REFRESH 17 RESTART 18 STATUS 19 STEP_INTERRUPT 20 TRACE_DISPLAY 21 UBC_MODE 22 VPMAP_CLEAR 23 VPMAP_DISPLAY 24 VPMAP_ENABLE 25 VPMAP_SET Note: Support for these commands varies with the product. For the specifications ...

Page 173

AUD_CLOCK:AUCL Description: Sets or displays the AUD clock (AUDCK) values that have been set. Format: aucl [<option>] <option> = <aud_clock> Table 5.2 AUD_CLOCK Command Parameter Parameter Type <aud_clock> Numerical value Notes: 1. When <option> is omitted, the AUD clock ...

Page 174

Examples: To set AUD clock (AUDCK MHz: > AUD_CLOCK 2 (RET) AUD CLOCK = 15MHz The AUD clock (AUDCK) is displayed: > AUD_CLOCK (RET) AUD CLOCK = 15MHz Related Item: [Configuration] dialog box 146 ...

Page 175

AUD_MODE:AUM Description: Sets or displays AUD trace acquisition conditions. Format: aum [<option1>] [<option2>] <option1> = mode<mode> <option2> = full<full> Table 5.3 AUD_MODE Command Parameter Parameter Type <mode> Keyword <full> Keyword Note: When <option1> and <option2> are omitted, the current ...

Page 176

Examples: To select realtime trace mode and set continue option: > aum mode R full c (RET) To display settings: > aum (RET) mode = Realtime trace, continue To use internal trace mode: > aum (RET) mode = Internal trace ...

Page 177

AUD_TRACE:AUT Description: Displays the trace information. Format: aut [<option1>] [<option2>] <option1> = start<start_pointer> <option2> = end<end_pointer> Table 5.4 AUD_TRACE Command Parameter Parameter Type <start_pointer> Numerical value (-n) <end_pointer> Numerical value (-m) Notes the PCMCIA card emulator, –D’8191 ...

Page 178

Related Item: [Trace] dialog box 150 ...

Page 179

BREAKCONDITION_CLEAR: BCC Description: Clears hardware breakpoints that have been set. Format: bcc [<channel>] <channel> = channel <channel_number> Table 5.5 BREAKCONDITION_CLEAR Command Parameter Parameter Type <channel number> Numerical value Note: When <channel> is omitted, all hardware breakpoints that have been ...

Page 180

BREAKCONDITION_DISPLAY: BCD Description: Displays hardware breakpoints that have been set. The display contents include a hardware breakpoint channel number, enable or disable of the setting, and setting conditions. Format: bcd [<channel>] <channel> = channel <channel_number> Table 5.6 BREAKCONDITION_DISPLAY Command ...

Page 181

BREAKCONDITION_ENABLE: BCE Description: Enables or disables hardware breakpoints that have been set. Format: bce [<channel>] <mode> <channel> = channel <channel_number> Table 5.7 BREAKCONDITION_ENABLE Command Parameters Parameter Type <channel_number> Numerical value <mode> Keyword Note: When <channel> is omitted, all hardware ...

Page 182

BREAKCONDITION_SET: BCS Description: Sets hardware breakpoints. Note: The function will differ according to the devices used. For functions of each emulator product, refer to section 6.5.2, Break Condition Functions. Format: bcs <channel> <option> [<option> ... ] <channel> = channel ...

Page 183

Table 5.8 BREAKCONDITION_SET Command Parameters Parameter Type <channel_number> Numerical value <address> Numerical value <addrcycle> Keyword <maskdata> Character string <data> Numerical value Description Hardware break condition channel number Specifiable options change depending on the channel number. For details, refer to section ...

Page 184

Table 5.8 BREAKCONDITION_SET Command Parameters (cont) Parameter Type <datawidth> Keyword <asid> Numerical value <r/w> Keyword <access> Keyword <count> Numerical value <ldtlb> Keyword <io> Keyword Note: The parameters for this command differ according to the product. For the specifications of each ...

Page 185

Examples: To set the following conditions for channel 1 hardware breakpoint: <addropt> item: An address bus value of H'1000000, <dataopt> item: D0 bit of the byte access data is 0, <r/wopt> item: write cycle. > bcs channel 1 address H'1000000 ...

Page 186

BREAKPOINT: BP Description: Sets software breakpoints. Note: The function will differ according to the devices used. Format: bp <address> [<address_space> [<asidopt>]] <address_space> = space <space> <asidopt> = asid <asid> Table 5.9 BREAKPOINT Command Parameters Parameter Type <address> Numerical value ...

Page 187

Examples: To set a software breakpoint at physical address H'10002C8: > bp H'10002C8 space physical (RET) To set a software breakpoint at logical address H'1000000, whose ASID value is H'10: > bp H'1000000 space virtual asid H'10 (RET) Related Items: ...

Page 188

BREAKPOINT_CLEAR: BC Description: Clears software breakpoints that have been set. Format: bc [<address> [<address_space> [<asidopt>]]] <address_space> = space <space> <asidopt> = asid <asid> Table 5.10 BREAKPOINT_CLEAR Command Parameters Parameter Type <address> Numerical value <space> Keyword <asid> Numerical value Notes: ...

Page 189

Examples: To clear all breakpoints: > bc (RET) To clear all software breakpoints whose address value is H'1000000: > bc H'1000000 (RET) To clear a software breakpoint whose virtual address is H'1000000, according to the ASID value at command input: ...

Page 190

BREAKPOINT_DISPLAY: BD Description: Displays software breakpoints that have been set. Format: bd Table 5.11 BREAKPOINT_DISPLAY Command Parameter Parameter Type None Example: To display the software breakpoints that have been set: > bd (RET) H'00000110 physical enable H'0000011c virtual asid ...

Page 191

BREAKPOINT_ENABLE: BE Description: Enables or disables software breakpoints that have been set. Format: be <address> <address_space> <asidopt> <mode> <address_space> = space <space> <asidopt> = asid <asid> Table 5.12 BREAKPOINT_ENABLE Command Parameters Parameter Type <address> Numerical value <space> Keyword <asid> ...

Page 192

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

Page 193

DEVICE_TYPE: DE Description: Displays the currently selected device. Format: de Table 5.13 DEVICE_TYPE Command Parameter Parameter Type None Example: To display the currently selected device: > de (RET) Current device = SHxxxx Description 165 ...

Page 194

GO_OPTION: GP Description: Displays or sets the emulation mode. Format: Displays emulation mode. gp Sets emulation mode. gp <eml_opt> <eml_opt> = eml_mode <eml_mode> Table 5.14 GO_OPTION Command Parameter Parameter Type <eml_mode> Keyword Notes: 1. The sequential break function differs ...

Page 195

Examples: To display the currently set emulation mode for user program execution: > gp (RET) Emulator execution mode = Sequential break Condition 2-1 To set the normal emulation mode for user program execution: > gp eml_mode normal (RET) Note: The ...

Page 196

JTAG_CLOCK: JCK Description: Displays or sets the JTAG clock (TCK) frequency. Format: Displays the JTAG clock (TCK) frequency. jck Sets the JTAG clock (TCK) frequency. jck <jck_opt> Table 5.15 JTAG_CLOCK Command Parameter Parameter Type <jck_opt> Numerical value Note: The ...

Page 197

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

Page 198

MEMORYAREA_SET: MAS Description: Displays and sets memory area at command input, such as load, verify, save, memory display, or memory change. Format: Displays memory area. mas Sets memory area. mas <memory_area> [<asidopt>] <asidopt> = asid <asid> Table 5.16 MEMORYAREA_SET ...

Page 199

Examples: To display a memory area for command input, such as load, verify, save, memory display, and memory change: > mas (RET) memoryarea_set virtual asid H'10 To set a memory area for command input, such as load, verify, save, memory ...

Page 200

REFRESH: RF Description: Updates the HDI memory information. Format: rf Table 5.17 REFRESH Command Parameter Parameter Type None Example: To update the HDI memory information: > rf (RET) 172 Description ...

Related keywords