HS38000EPI61H Renesas Electronics America, HS38000EPI61H Datasheet

no-image

HS38000EPI61H

Manufacturer Part Number
HS38000EPI61H
Description
DEV EMULATOR BASE UNIT H8/38000
Manufacturer
Renesas Electronics America
Type
Microcontrollerr
Datasheet

Specifications of HS38000EPI61H

Contents
E6000 Emulator and CD-ROM
For Use With/related Products
38000 Series
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 HS38000EPI61H

HS38000EPI61H 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

... H8/300L Super Low Power E6000 Emulator User’s Manual Renesas Microcomputer Development Environment System H8 Family / H8/300L Super Low Power Series HS38000EPI61HE-U2 Rev.2.00 2005.11 ...

Page 4

...

Page 5

Keep safety first in your circuit designs! 1. Renesas Technology Corp. 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 lead ...

Page 6

...

Page 7

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 8

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

Page 9

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 10

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 11

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 12

This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment ...

Page 13

The E6000 emulator is an advanced realtime in-circuit emulator, which allows programs to be developed and debugged for the H8 family microcomputers. The E6000 emulator can either be used without a user system, for developing and debugging software, or connected ...

Page 14

This manual contains the following information. Emulator Debugger Part: Preparation before use, E6000 emulator functions, debugging function, tutorial, and hardware and software specifications of the E6000 emulator. Refer to the High-performance Embedded Workshop User's Manual for details on the information ...

Page 15

Emulator Debugger Part Section 1 Overview........................................................................................... 1 1.1 Features .............................................................................................................................1 1.2 Warnings ...........................................................................................................................2 1.3 Environmental Conditions ................................................................................................3 1.4 Emulator External Dimensions and Mass .........................................................................3 Section 2 Preparation before Use...................................................................... 5 2.1 Emulator Preparation ........................................................................................................5 2.2 Installing Emulator’s Software .........................................................................................5 2.3 ...

Page 16

Online Help.......................................................................................................................... 23 Section 4 Preparation before Use ......................................................................25 4.1 Method for Activating High-performance Embedded Workshop..................................... 25 4.1.1 Creating a New Workspace (Toolchain Not Used).............................................. 26 4.1.2 Creating a New Workspace (Toolchain Used)....................................................... 30 4.1.3 Selecting an Existing Workspace........................................................................... ...

Page 17

Deleting All Event Points ....................................................................................73 5.7.15 Viewing the Source Line for an Event Point........................................................73 5.8 Viewing the Trace Information .........................................................................................74 5.8.1 Opening the [Trace] Window ..............................................................................74 5.8.2 Acquiring Trace Information ...............................................................................74 5.8.3 Specifying Trace Acquisition Conditions ............................................................76 5.8.4 Searching ...

Page 18

... Access to Unused Area ........................................................................................ 185 7.8.3 Program Execution by the Go Reset Command................................................... 185 7.9 Handling Evaluation Chip Board (HS388REBK61H)...................................................... 185 7.10 Host PC Interface (only for HS38000EPI61H + HS388REBK61H) ................................ 187 Section 8 Software Specifications Specific to This Product .............................189 8.1 Software Specifications of the H8/3800 E6000 Emulator ................................................ 189 8.1.1 Target Hardware ...

Page 19

Memory Mapping Function .................................................................................203 8.3.5 [Status] Window ..................................................................................................204 8.3.6 Extended Monitor Function .................................................................................205 8.3.7 Signals to Indicate Bus States and Areas .............................................................206 8.3.8 Monitoring Function ............................................................................................206 8.3.9 Trigger Points.......................................................................................................206 8.3.10 Trace Information ................................................................................................207 8.3.11 Searching for a Trace Record...............................................................................208 ...

Page 20

Emulator Debugger Part ...

Page 21

...

Page 22

Features • The breakpoint, memory map, performance, and trace can be set through the dialog box. ⎯ Intuitive user interface ⎯ Online help ⎯ Common display and operability • Supported host interfaces The PCI interface, PC card (PCMCIA) interface, ...

Page 23

Warnings READ the following warnings before using the emulator product. Incorrect operation will damage the user system and the emulator product. The USER PROGRAM will be LOST. 1. Check all components against the component list after unpacking the emulator. ...

Page 24

Environmental Conditions Observe the conditions listed in table 1.1 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 Specifications Temperature ...

Page 25

4 ...

Page 26

Section 2 Preparation before Use 2.1 Emulator Preparation Unpack the emulator and prepare it for use as follows: READ the reference sections shaded in figure 2.1 before using the emulator product. Incorrect operation will damage the user system and the ...

Page 27

... EXT probe connector Case screw Figure 2.2 E6000 Emulator Connectors (HS3800EPI60H, HS3880EPI60H and HS388REPI60H) User system interface connector External probe connector Figure 2.3 E6000 Emulator Connectors (HS38000EPI61H) 6 POWER RUN Case screw POWER RUN Screw Screw PC interface cable connector Power connector ...

Page 28

Example of Connecting the User System Interface Cable Head to the User System Figure 2.4 Example of Connecting User System Interface Cable Head to User System • Ensure that all power is off to the emulator and the user ...

Page 29

Plugging the User System Interface Cable Body into the Emulator Plug the cable body into the emulator, taking care to insert it straight, and push it firmly into place. User system interface cable head User system interface cable Figure ...

Page 30

... The emulator incorporates a power supply monitor circuit that lights the LED when a voltage higher than 4. supplied. The LED is illuminated in red (HS3800EPI60H, HS3880EPI60H, or HS388REPI60H) or green (HS38000EPI61H). If this LED is not illuminated, you should check the emulator voltage level. An input voltage less than 4.75 V could indicate that enough current cannot be supplied to the emulator. ...

Page 31

External Probe 1 (EXT1)/Trigger Output An 8-pin connector, marked EXT1 (on the right under the user system interface cable connector), on the emulator case accommodates four external probe inputs and two trigger outputs. The pin assignment of this connector ...

Page 32

Voltage Follower Circuit 1. Do not connect the user system interface cable to the emulator without user system connection. 2. Turn on the user system before starting up the emulator. A voltage follower circuit is implemented on the emulator ...

Page 33

System Check When the software is executed, use the procedure below to check that the emulator is connected correctly. Here, use the workspace for a tutorial provided on the product. Refer to section 2.8, Other Methods for Activating the ...

Page 34

The [Welcome!] dialog box is displayed. To use a workspace for the tutorial, select the [Browse to another project workspace] radio button and click the [OK] button. When the [Open Workspace] dialog box is opened, specify the following directory: ...

Page 35

When no compiler package or that of a different version is installed, the following message box will be displayed. 6. The [E6000 Driver Details] dialog box is displayed. This dialog box is only displayed at the first initiation. When only ...

Page 36

Set up the emulator. During this process, the following dialog box is displayed. Figure 2.17 [Connecting] Dialog Box 15 ...

Page 37

When "Connected" is displayed in the [Output] window of the High-performance Embedded Workshop, the emulator initiation is completed. Figure 2.18 High-performance Embedded Workshop Window 16 ...

Page 38

... Note: No USB adapter (such as HS6000EIU02H) can be used with HS38000EPI61H. This error message appears if a USB adapter is connected to HS38000EPI61H. In such cases, disconnect the USB adapter. To use the USB interface with HS38000EPI61H, directly connect the USB cable to HS38000EPI61H. For information on other errors, refer to the Setup Guide for the E6000 Emulator. ...

Page 39

18 ...

Page 40

Section 3 E6000 Emulator Functions 3.1 Debugging Features 3.1.1 Breakpoints The emulator provides a comprehensive range of alternative types of breakpoints, to give you the maximum flexibility in debugging applications and user system. Hardware Break Conditions break ...

Page 41

Bus Monitoring The emulator incorporates a bus monitoring function that monitors and displays the contents of the accessed area in High-performance Embedded Workshop windows without stopping the program execution eight blocks of 256 bytes can be monitored. ...

Page 42

Range Channels The range channels can be set triggered on a combination of one or more of the following: • Address or address range (inside the range) • Read or Write or either • Data, with ...

Page 43

Hardware Features 3.3.1 Memory The emulator provides standard emulation memory as the substitute for internal ROM memory and internal RAM memory. When a device type or device mode without an internal ROM or internal RAM is selected, the standard ...

Page 44

Clocks The clock can be specified as emulator internal clock or target clock. The frequencies that can be specified as the emulator internal clock depend on the MCU. For details, refer to section 8, Software Specifications Specific to This ...

Page 45

24 ...

Page 46

Section 4 Preparation before Use 4.1 Method for Activating High-performance Embedded Workshop To activate the High-performance Embedded Workshop, follow the procedure listed below. 1. Connect the emulator to the host computer. 2. Connect the user system interface cable to the ...

Page 47

Creating a New Workspace (Toolchain Not Used the [Welcome!] dialog box that is displayed when the High-performance Embedded Workshop is activated, select [Create a new project workspace] radio button and click the [OK] button. 26 Figure 4.2 ...

Page 48

Creation of a new workspace is started. The following dialog box is displayed. Figure 4.3 [New Project Workspace] Dialog Box [Workspace Name] edit box: Enter the new workspace name. [Project Name] edit box: Enter the project name. When the ...

Page 49

Select the target platform of the session file. The following dialog box is displayed. Figure 4.4 [New Project – Step 7] Dialog Box The target platform for the session file used when the High-performance Embedded Workshop is activated must ...

Page 50

Set the configuration file name. Figure 4.5 [New Project – Step 8] Dialog Box If multiple target platforms were selected in the [New Project – Step 7] dialog box shown in figure 4.5, set the name of a configuration ...

Page 51

Creating a New Workspace (Toolchain Used the [Welcome!] dialog box that is displayed when the High-performance Embedded Workshop is activated, select [Create a new project workspace] radio button and click the [OK] button. 30 Figure 4.6 [Welcome!] ...

Page 52

Creation of a new workspace is started. The following dialog box is displayed. Figure 4.7 [New Project Workspace] Dialog Box [Workspace Name] edit box: Enter the new workspace name. Here, enter ‘test’. [Project Name] edit box: Enter the project ...

Page 53

Make the required setting for the toolchain. When the setting has been completed, the following dialog box is displayed. Figure 4.8 [New Project – Step 7] Dialog Box The target platform for the session file used when the High-performance ...

Page 54

Set the configuration file name. Figure 4.9 [New Project – Step 8] Dialog Box If multiple target platforms were selected in the [New Project – Step 7] dialog box shown in figure 4.9, set the name of a configuration ...

Page 55

Selecting an Existing Workspace 1. In the [Welcome!] dialog box that is displayed when the High-performance Embedded Workshop is activated, select [Browse to another project workspace] radio button and click the [OK] button. 2. The [Open Workspace] dialog box ...

Page 56

Connecting the Emulator Select either of the following two ways to connect the emulator: (a) Connecting the emulator after the setting at emulator activation Select [Debug -> Debug Settings…] to open the [Debug Settings] dialog box possible ...

Page 57

Reconnecting the Emulator When the emulator is disconnected, use the following way for reconnection: Select [Debug -> Connect] or click the [Connect] toolbar button ( Note: Before reconnecting the emulator, a load module must be registered to the High-performance ...

Page 58

This section describes the debugging operations and their related windows and dialog boxes. Refer to the High-performance Embedded Workshop user's manual about High-performance Embedded Workshop common functions as below. ⎯ Preparations for Debugging ⎯ Viewing a Program ⎯ Operating Memory ...

Page 59

Setting the Environment for Emulation 5.1.1 Opening the [Configuration Properties] Dialog Box Selecting [Setup -> Emulator -> System…] or clicking the [Emulator System] toolbar button ( Configuration Properties] dialog box. Figure 5.1 [Configuration Properties] Dialog Box ([General] Page) This ...

Page 60

Resolution] [Enable read and write on the fly] [Break on access error] [Enable internal ROM area write] [User VCC Threshold] [User Signals] [Driver] [Change driver in start up] Note: The items that can be ...

Page 61

Selecting an MCU Not Included in the List Selecting [Custom] in [Device] of the [Configuration Properties] dialog box adds the [Custom Device] page to the dialog box. Figure 5.2 [Configuration Properties] Dialog Box ([Custom Device] Page) Use this page ...

Page 62

Selecting the Interface to be Connected Checking [Change driver in start up] on the [Configuration Properties] dialog box allows a selection of the driver next time the emulator is connected. Figure 5.3 [Driver Details] Dialog Box [Driver]: Selects the ...

Page 63

Opening the [Memory Mapping] Dialog Box Selecting [Setup -> Emulator -> Memory Resource…] or clicking the [Emulator Memory Resource] toolbar button ( ) opens the [Memory Mapping] dialog box. Figure 5.4 [Memory Mapping] Dialog Box This dialog box displays ...

Page 64

Changing the Memory Map Setting Clicking the [Add…] button on the [Memory Mapping] dialog box or clicking the [Modify…] button after selecting the information on the memory map setting you want to change opens the [Edit Memory Mapping] dialog ...

Page 65

Downloading a Program This section describes how to download a program and view it as source code or assembly-language mnemonics. Note: After a break occurs, the High-performance Embedded Workshop displays the location of the program counter (PC) on the ...

Page 66

Viewing the Source Code To view a source file’s code, double-click on its icon in the file tree, or right-click on the source file and select the [Open] option on the pop-up menu. The [Editor] window is displayed. In ...

Page 67

Source Address column When a program is downloaded, an address for the current source file is displayed on the Source address column. These addresses are helpful when setting the PC value or a breakpoint. Event column The Event column displays ...

Page 68

To switch off a column in all source files 1. Right-click on the [Editor] window or select the [Edit] menu. 2. Click the [Define Column Format…] menu item. 3. The [Global Editor Column States] dialog box is displayed ...

Page 69

Viewing the Assembly-Language Code If you have a source file open, right-click to open the pop-up menu and select the [View Disassembly] option to open a Disassembly view at the same address as the current Source view ...

Page 70

Modifying the Assembly-Language Code You can modify the assembly-language code by double-clicking on the instruction that you want to change. The [Assembler] dialog box will be opened. The address, instruction code, and mnemonic are displayed. Enter the new instruction ...

Page 71

Viewing the Current Status Choose [View -> CPU -> Status] or click the [View Status] toolbar button ( see the current status of the debugging platform. The [Status] window has three sheets: • [Memory] sheet Contains information about the ...

Page 72

Reading and Displaying the Emulator Information Regularly Use the [Extended Monitor] window to know the changing information on the emulator no matter the user program is running or halted. Note: The Extended Monitor function does not affect the execution ...

Page 73

Selecting Items to be Displayed Selecting [Properties…] from the popup menu displays the [Extended Monitor Configuration] dialog box. Figure 5.13 [Extended Monitor Configuration] Dialog Box This dialog box allows the user to set the items to be displayed in ...

Page 74

Displaying Memory Contents in Realtime Use the [Monitor] window to monitor the memory contents during user program execution. In the Monitor function, the realtime operation is retained since the bus monitoring circuit of the emulator sets the read/write signal ...

Page 75

Decides the name of the monitor window. [Options]: Sets monitor conditions. [Address]: [Size]: [Access]: [Auto-Refresh at rate (ms)]: [Reading the Initial Value]: [Color]: Sets the method to update monitoring and the attribute of colors. [Change Indicator]: [Foreground]: [Background]: [Mayfly]: ...

Page 76

During user program execution, the display is updated according to the setting value of the auto-update interval. Note: Select [Refresh] from the popup menu when data is not displayed correctly after changing the address or content of memory. 5.5.2 Changing ...

Page 77

Hiding the [Monitor] Window When using the Monitor function to monitor the value of a variable from the [Watch] window, hide the [Monitor] window for the effective use of the screen. The current monitoring information is listed as the ...

Page 78

Managing the [Monitor] Window Selecting [Display -> CPU -> Monitor -> Windows Select…] displays the [Windows Select] dialog box. In this window, the current monitoring condition is checked and the new monitoring condition is added, edited, and deleted in ...

Page 79

Viewing the Variables This section describes how you can look at variables in the source program. 5.6.1 [Watch] Window You can view any value in the [Watch] window. The [R] mark shows that the value of the variable can ...

Page 80

Read the memory content directly from the High-performance Embedded Workshop to update the values without halting the user program since the bus mastership is owned by the emulator Note: While the emulator reserves the bus mastership, the realtime operation ...

Page 81

Using the Event Points The emulator has the event point function that performs breaking, tracing, and execution time measurement by specifying higher-level conditions along with the software breakpoints standard for the High-performance Embedded Workshop. 5.7.1 Software Breakpoints When the ...

Page 82

A maximum of eight points can be used as a combination in a sequence. The program is activated or halted by an occurrence of the previous event in each sequence. Range Channels (Ch9 to Ch12): The emulator has 4 range ...

Page 83

Table 5.2 Area Signals Acquired by the Emulator Area Trace Display (Status) On-chip ROM ROM On-chip RAM RAM On-chip I/O 16bit I/O-16 On-chip I/O 8bit I/O-8 External I/O 16bit EXT-16 External I/O 8bit EXT-8 DTC RAM RAM/DTC Note: The signals ...

Page 84

Select [Add...] or the software breakpoint displayed in this window and then select [Edit...] from the popup menu to display the [Breakpoint/Event Properties] dialog box. Figure 5.20 [Breakpoint/Event Properties] Dialog Box (Setting a Software Break) In this dialog box, select ...

Page 85

Setting Event Points On the [Event] sheet, the settings for event points are displayed, modified, and added. Figure 5.21 [Event] Window ([Event] Sheet) Select [Add...] or the event point displayed in this window and then select [Edit...] from the ...

Page 86

The address and data conditions are set. Figure 5.22 [Breakpoint/Event Properties] Dialog Box ([General] Page) [Type]: Select the type of a breakpoint. Note that the [Breakpoint/Event Properties] dialog box is used for setting software breakpoints and event ...

Page 87

Compare]: Sets the data condition. [Compare]: Checking this box compares data. [Use Mask]: Sets a mask condition (available when [Compare] has been selected). [Value]: Specifies the data bus value as numerics. The size of data for access can also ...

Page 88

Use this page to set the bus status and the memory area being accessed. Figure 5.23 [Breakpoint/Event Properties] Dialog Box ([Bus/Area] Page) [Bus State]: Sets the bus status as the condition. When the [Don't care] check box ...

Page 89

Use this page to set external signals. Figure 5.24 [Breakpoint/Event Properties] Dialog Box ([Signals] Page) [Probe4]: Detects the status of the input probe signal 4 [High]: Detects the high level of the input probe signal [Low]: Detects ...

Page 90

Detects the status of the input probe signal 1 [High]: Detects the high level of the input probe signal [Low]: Detects the low level of the input probe signal [Don’t care]: The status of the input probe signal is ...

Page 91

Allows a 16-bit pass count to be set. The event must occur the specified number of times before the action is taken. The range of values is D’0 to D’65,535. [Enable Sequencing]: Allows the event ...

Page 92

The state where the condition is satisfied is retained until the user program is stopped or the event point is reset. When the condition on the event point is satisfied, no action will be taken even if the condition is ...

Page 93

Setting Trigger Points The trigger point is an event to output a trigger when the specified address has been accessed four trigger points can be set by using the trigger outputs (four channels) on the bus monitoring ...

Page 94

Notes: 1. When the condition set for the trigger output ( satisfied, the high-level signal will be output from the corresponding pin ( the external probe 2 (EXT2) during reading or writing. 2. Some ...

Page 95

Viewing the Trace Information The emulator acquires the results of each instruction execution into the trace buffer as trace information and displays it in the [Trace] window. The conditions for the trace information acquisition can be specified in the ...

Page 96

Bus status during this cycle; DTC operation, PROG (prefetch), Data (CPU data access cycle), Refresh (refresh cycle), or DMAC (DMAC cycle) (not available when a time stamp is acquired) [Clock]: Number of clock cycles in bus cycle as 1 ...

Page 97

Specifying Trace Acquisition Conditions The capacity of the trace buffer is limited. When the buffer becomes full, the oldest trace information is overwritten. Setting the trace acquisition condition allows acquisition of useful trace information and effective use of the ...

Page 98

Acquires no trace information of the specified types of bus cycle. [Time Stamp]: Sets a condition for time stamping. [Clock]: Select either from Disabled, 125 ns, 250 ns, 500 ns, 1 us, 2 us, 4 us, 8 us, 16 ...

Page 99

Sets trace stop conditions possible to set trace stop conditions with and without delay, with both allowed simultaneously. Figure 5.31 [Trace Acquisition] Dialog Box ([Stop] Page) [Stop Without Delay]: Defines a trace stop condition. [Enable]: ...

Page 100

Stop] page Sets trace stop conditions possible to set trace stop conditions with and without delay, with both allowed simultaneously. Figure 5.32 [Trace Acquisition] Dialog Box ([Delayed Stop] Page) [Stop With Delay]: Defines a trace stop ...

Page 101

Sets a range trace. This is only available when the free trace mode is disabled. Select either of the following four modes: [Disabled], [Point to Point], [Range], and [Event]. • Disabled Disables a range trace. ...

Page 102

Point to Point Acquires trace information in the specified range. Figure 5.34 Range Trace Setting (Point to Point) [Start Address]: Address where trace acquisition starts [Stop Address]: Address where trace acquisition stops [Cyclic]: When this box is checked, the ...

Page 103

Range Only acquires the trace information that satisfies the specified condition. Figure 5.35 Range Trace Setting (Range) [Range Event]: Selects an event point for which a trace acquisition condition has been set. [Edit…]: Changes the setting for the selected ...

Page 104

Event Acquires trace information, controlling the start and end of trace acquisition with the specified condition. Figure 5.36 Range Trace Setting (Event) [Start Event]: Selects the event point for which the condition to start trace acquisition has been set. ...

Page 105

Searching for a Trace Record Use the [Trace Find] dialog box to search for a trace record. To open this dialog box, choose [Find...] from the popup menu. The [Trace Find] dialog box has the following options: Table 5.5 ...

Page 106

Set the range for searching. Figure 5.37 [Trace Find] Dialog Box ([General] Page) [Trace search range]: Sets the range for searching. [Not designation]: [Upward search]: [Start PTR]: [End PTR]: Note: Along with setting the range for searching, ...

Page 107

Set an address condition. Figure 5.38 [Trace Find] Dialog Box ([Address] Page) [Don't care]: Detects no address when this box is checked. [Setting]: Detects the specified address. [Value]: Enter the address value (not available when [Don’t care] ...

Page 108

Set a data condition. Figure 5.39 [Trace Find] Dialog Box ([Data] Page) [Don't care]: Detects no data when this box is checked. [Setting]: Detects the specified data. [Value]: Enter the data value (not available when [Don’t care] ...

Page 109

Select the type of access cycles. Figure 5.40 [Trace Find] Dialog Box ([R/W] Page) [Don't care]: Detects no read/write condition when this box is checked. [Setting]: Detects the specified read/write condition. [String]: Select a read/write condition (not ...

Page 110

Select the area being accessed. The selection is not available when a time stamp is acquired. Figure 5.41 [Trace Find] Dialog Box ([Area] Page) [Don't care]: Detects no area condition when this box is checked. [Setting]: Detects ...

Page 111

Select the status of a bus. The selection is not available when a time stamp is acquired. Figure 5.42 [Trace Find] Dialog Box ([Status] Page) [Don't care]: Detects no bus condition when this box is checked. [Setting]: ...

Page 112

Select the status of four probe signals. The selection is not available when a time stamp is acquired. Figure 5.43 [Trace Find] Dialog Box ([Probes] Page) [Don't care]: Detects no probe signal condition when this box is ...

Page 113

Select the status of IRQ signals. The selection is not available when a time stamp is acquired. Figure 5.44 [Trace Find] Dialog Box ([IRQ7-0] Page) [Don't care]: Detects no IRQ input condition when this box is checked. ...

Page 114

Specify the time stamp value for bus cycles. The specification is not available when a time stamp is acquired. Figure 5.45 [Trace Find] Dialog Box ([Timestamp] Page) [Don't care]: Detects no time stamp value when this box ...

Page 115

Viewing the [Editor] Window The [Editor] window corresponding to the selected trace record can be displayed in the following two ways: • Select a trace record and choose [View Source] from the popup menu. • Double-click a trace record ...

Page 116

Extracting Records from the Acquired Information Use the filtering function to extract the records you need from the acquired trace information. The filtering function allows the trace information acquired by hardware to be filtered by software. Unlike the settings ...

Page 117

Set the range for filtering. Figure 5.46 [Trace Filter] Dialog Box ([General] Page) [Don't care other pages]: Only selects the cycle number when this box is checked. Other options become invalid. [Enable Filter]: Enables the filter when ...

Page 118

Set address conditions. Figure 5.47 [Trace Filter] Dialog Box ([Address] Page) [Don't care]: Detects no address when this box is checked. [Setting]: Detects the specified address. [Point]: Specifies a single address (not available when [Don’t care] has ...

Page 119

Set a data condition. Figure 5.48 [Trace Filter] Dialog Box ([Data] Page) [Don't care]: Detects no data when this box is checked. [Setting]: Detects the specified data. [Point]: Specifies single data (not available when [Don’t care] has ...

Page 120

Select the type of access cycles. Figure 5.49 [Trace Filter] Dialog Box ([R/W] Page) [Don't care]: Detects no read/write condition when this box is checked. [Setting]: Detects the specified read/write condition. RD: Detects read cycles when this ...

Page 121

Select the area being accessed. The selection is not available when a time stamp is acquired. Figure 5.50 [Trace Filter] Dialog Box ([Area] Page) [Don't care]: Detects no area condition when this box is checked. [Setting]: Detects ...

Page 122

Select the status of a bus. The selection is not available when a time stamp is acquired. Figure 5.51 [Trace Filter] Dialog Box ([Status] Page) [Don't care]: Detects no bus condition when this box is checked. [Setting]: ...

Page 123

Select the status of four probe signals. The selection is not available when a time stamp is acquired. Figure 5.52 [Trace Filter] Dialog Box ([Probes] Page) [Don't care]: Detects no probe signal condition when this box is ...

Page 124

Select the status of IRQ signals. The selection is not available when a time stamp is acquired. Figure 5.53 [Trace Filter] Dialog Box ([IRQ7-0] Page) [Don't care]: Detects no IRQ input condition when this box is checked. ...

Page 125

Specify the time stamp value for bus cycles. The specification is not available when a time stamp is acquired. Figure 5.54 [Trace Filter] Dialog Box ([Timestamp] Page) [Don't care]: Detects no time stamp value when this box ...

Page 126

Calculating the Difference in Time Stamping Select [Timestamp Difference…] from the popup menu to calculate the time difference between the two points selected by the result of tracing in acquisition of time stamp information. Figure 5.55 [Timestamp Difference] Dialog ...

Page 127

Analyzing Statistical Information Choose [Statistic] from the popup menu to open the [Statistic] dialog box and analyze statistical information under the specified conditions. [Statistic Analysis]: Setting required for analysis of statistical information. [Default]: Sets a single input value or ...

Page 128

This dialog box allows the user to analyze statistical information concerning the trace information. Set the target of analysis in [Item] and the input value or character string by [Start] and [End]. Click the [Result] button after setting a condition ...

Page 129

Analyzing Performance Use the performance analysis function to measure the rate of execution time. The performance analysis function does not affect the realtime operation because it measures the rate of execution time in the specified range by using the ...

Page 130

Table 5.8 Mode Settings for Measurement Page 1 Ο Time Of Specified Range Measurement Ο Start Point To End Point Measurement Ο Start Range To End Range Measurement Ο Access Count Of Specified Range Measurement Ο Called Count Of Specified ...

Page 131

Opening the [Performance Analysis] Window Choose [View -> Performance -> Performance Analysis] or click the [PA] toolbar button ( [Select Performance Analysis Type] dialog box. Figure 5.58 [Select Performance Analysis Type] Window Select [E6000 Performance Analysis] and then click ...

Page 132

Setting Conditions for Measurement Conditions for measurement can be displayed and changed in the [Performance Analysis] window. Select a point where a condition set, and then select [Set…] from the popup menu to display the [Performance ...

Page 133

Time Of Specified Range Measurement Figure 5.61 Time Of Specified Range Settings [Range Name]: The name of the range to be measured [Range]: The range for the Time Of Specified Range Measurement [Start Address]: [End Address]: Measures the execution ...

Page 134

Start Point To End Point Measurement Figure 5.62 Start Point To End Point Measurement Settings [Range Name]: The name of the range to be measured [Point]: The range for the Start Point To End Point Measurement [Start Address]: [End ...

Page 135

Notes: 1. When [Time Out] is selected in the Start Point To End Point Measurement mode, the execution time will not be measured correctly. 2. When [Time Out] and [Count] are selected, satisfaction of either of these options stops execution ...

Page 136

Start Range To End Range Measurement Figure 5.63 Start Range To End Range Measurement Settings [Range Name]: The name of the range to be measured [Start Range]: The start range for the Start Range To End Range Measurement [Start ...

Page 137

Access Count Of Specified Range Measurement Figure 5.64 Access Count Of Specified Range Measurement Settings [Range Name]: The name of the range to be measured [Range]: The range for the Access Count Of Specified Range Measurement [Start Address]: [End ...

Page 138

Called Count Of Specified Range Measurement Figure 5.65 Called Count Of Specified Range Measurement Settings [Range Name]: The name of the range to be measured [Range]: The range for the Called Count Of Specified Range Measurement [Start Address]: [End ...

Page 139

Selecting the Address Detection Mode and Resolution In measurement of hardware performance, there are two types of address detection modes: prefetch address detection mode and PC address detection mode. Select the appropriate address detection mode according to the measurement ...

Page 140

Introduction The following describes the main functions of the emulator 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 141

Running the High-performance Embedded Workshop Open a workspace by following the procedure listed in section 4.1.3, Selecting an Existing Workspace. Select the following directory: OS installation drive \Workspace\Tutorial\E6000\2646 Note: The file path differs depending on the product. Refer to ...

Page 142

Downloading the Tutorial Program 6.3.1 Downloading the Tutorial Program Download the object program to be debugged. • Select [Download module] from the popupmenu opened by clicking the right-hand mouse button on [Tutorial.abs] of [Download modules]. Figure 6.2 Downloading the ...

Page 143

Displaying the Source Program The High-performance Embedded Workshop allows the user to debug a user program at the source level. • Double-click [Tutorial.cpp] under [C++ source file]. Figure 6.3 [Editor] Window (Displaying the Source Program) • Select a font ...

Page 144

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

Page 145

Setting Registers Set a value of the program counter before executing the program. • Select [Registers] from the [CPU] submenu of the [View] menu. The [Register] window is displayed. • To change the value of the program counter (PC), ...

Page 146

Executing the Program Execute the program as described in the following: • To execute the program, select [Go] from the [Debug] menu, or click the [Go] button on the toolbar. While the program is executing, the current address bus ...

Page 147

Figure 6.8 [Editor] Window (Break Status) 126 ...

Page 148

The user can see the cause of the break that occurred last time in the [Status] window. • Select [Status] from the [CPU] submenu of the [View] menu. After the [Status] window is displayed, open the [Platform] sheet, and check ...

Page 149

Reviewing Breakpoints The user can see all the breakpoints set in the program in the [Event] window. • Select [Eventpoints] from the [Code] submenu of the [View] menu. The [Event] window is displayed. Select the [Breakpoint] sheet. The popup ...

Page 150

Referring to Symbols The [Label] window can be used to display the information on symbols in modules. Select [Label] from the [Symbol] submenu of the [View] menu. The [Label] window is displayed so that the user can refer to ...

Page 151

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 _main in byte size: • ...

Page 152

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 153

The user can also add a variable to the [Watch] window by specifying its name. • Click the [Watch] window with the right-hand mouse button and select [Add Watch…] from the popup menu. The following dialog box will be displayed. ...

Page 154

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

Page 155

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 tutorial function, which declares four local variables and p_sam. • ...

Page 156

Stepping Through a Program The High-performance Embedded Workshop provides a range of step menu commands that allow efficient program debugging. Table 6.1 Step Option Menu Command Description Step In Executes each statement, including statements within functions. Step Over Executes ...

Page 157

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

Page 158

Executing the [Step Out] Command The [Step Out] command 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 ...

Page 159

Executing the [Step Over] Command The [Step Over] executes a function call as a single step and stops at the next statement of the main program. • To step through all statements in the change function at a single ...

Page 160

Forced Breaking of Program Executions The High-performance Embedded Workshop can force a break in the execution of a program. • Cancel all the breaks. • To execute the remaining sections of the tutorial function, select [Go] from the [Debug] ...

Page 161

Break Function The emulator’s break functions are of two types: software breaks and breaks at event points. software breakpoints and event points are set in the High-performance Embedded Workshop’s [Event] window. An overview and setting of the break function ...

Page 162

Figure 6.31 [Breakpoint/Event Properties] Dialog Box • Check the [Software Break] radio button in the [Type] group box. • Use the [Editor] window to refer to the address on the line that has ‘p_sam->s0=a[0];’ within the tutorial function and enter ...

Page 163

The software breakpoint that has been set is displayed in the [Event] window. Figure 6.32 [Event] Window (Software Breakpoint Setting) Note: The items that can be displayed in this window differ depending on the product. For the items that can ...

Page 164

Close the [Event] window. • To stop the tutorial program at the breakpoint, select [Reset Go] from the [Debug] menu. The program runs until it stops at the breakpoint that has been set. Figure 6.33 [Editor] Window at Execution ...

Page 165

The [Status] window displays the following contents: Figure 6.34 Displayed Contents of the [Status] Window (Software Break) Note: The items that can be displayed in this window differ depending on the product. For the items that can be displayed, refer ...

Page 166

Breaking Execution at Event Points Setting event point on event channel 1 (Ch1) such that a break is triggered when the event point’s conditions have been satisfied five times is explained as an example of the ...

Page 167

Figure 6.36 [General] Page ([Breakpoint/Event Properties] Dialog Box) • Click the [OK] button. The [Event] window is displayed, as shown below. Figure 6.37 [Event] Window (Setting Completed) Note: The items that can be displayed in this window differ depending on ...

Page 168

Select [Reset Go] from the [Debug] menu to stop the tutorial program at breakpoints. The program runs then stops at the condition specified under Ch1. Figure 6.38 [Editor] Window at Execution Stop 147 ...

Page 169

The [Status] window displays the following contents. Figure 6.39 Displayed Contents of the [Status] Window Refer to the [Watch] window for the value of variable i. The value is 4, indicating that the break occurred after the condition had been ...

Page 170

Trace Functions The trace functions of the emulator use the realtime trace buffer, which is able to store the information 32,768 bus cycles. The content of this buffer, which is constantly updated during execution, is displayed ...

Page 171

Displaying a Trace (when Time Stamping is not Available) The method used to specify an address as an event condition for the tracing of read/write cycles and display the trace is described below. (1) Clicking the right-hand mouse button ...

Page 172

Register an address as an event condition for trace acquisition. Click the [Add…] button in the [Trace Events] group box on the [General] page to display the [Breakpoint/Event Properties] dialog box. Figure 6.42 [Breakpoint/Event Properties] Dialog Box (3) Use ...

Page 173

The event that has been set is now displayed in the [Event] combo box of the [Trace Events] group box on the [General] page of the [Trace Acquisition] dialog box. Figure 6.44 [Trace Acquisition] Dialog Box (Adding an Event) ...

Page 174

To enable the event condition that has been set, uncheck the [Free Trace] check box on the [General] page. This will add pages [1] to [4] to the [Trace Acquisition] dialog box. Figure 6.45 [Trace Acquisition] Dialog Box (Pages ...

Page 175

Select page [1] and click the [Range] radio button in the [Conditions] group box. This will display the [Range Event] combo box and the [Edit…] button. Figure 6.46 [Trace Acquisition] Dialog Box (Displaying Page [1]) 154 ...

Page 176

Select the event you have registered from the [Range Event] combo box. The event is now enabled. Click the [OK] button to complete the trace setting. Figure 6.47 [Trace Acquisition] Dialog Box (Setting Completed) (8) Make the setting such ...

Page 177

Remove the event points that have been set and clear the trace information. Click the right-hand mouse button on the [Event] window to display a popup menu. Select [Delete All] from this menu to remove all of the event ...

Page 178

The event that has been set in the [Event] combo box of the [Trace Events] group box on the [General] page of the [Trace Acquisition] dialog box is displayed. Figure 6.50 [Trace Acquisition] Dialog Box (Adding an Event) (6) ...

Page 179

To enable the event condition that has been set, uncheck the [Free Trace] check box on the [General] page. This will add pages [1] to [4] (see figure 6.45, [Trace Acquisition] dialog box). (8) Select page [1] and click ...

Page 180

Select [Reset Go] from the [Debug] menu. Processing stops when the break condition is satisfied, and the [Trace] window then displays the following content. Figure 6.53 [Trace] Window (Displaying the Result) If you have trouble viewing a column, drag ...

Page 181

Statistics The number of times the internal RAM has been written to can be included in the acquired trace information. (1) Make the setting such that a break occurs at the address on the line that has ‘p_sam->s0=a[0];’ within ...

Page 182

Select R/W in the [Item] combo box and enter WR in the [Start] edit box. After that, click the [New] button. “R/W=WR” is now displayed in the [Condition] column of the [Result] list box. Figure 6.55 [Statistic] Dialog Box ...

Page 183

Then, select Area from the [Item] combo box and enter RAM in the [Start] edit box. After that, click the [Add] button; the new condition is now added to the “R/W=WR” display in the [Condition] column of the [Result] ...

Page 184

To start statistical analysis of the specified condition, press the [Result] button. The number of write operations that satisfy the condition and the PTR values will be displayed. Figure 6.57 [Statistic] Dialog Box (Result of Analysis) (7) Click the ...

Page 185

Function Calls This mechanism is used to only collect trace information on the function calls. (1) Make the setting such that a break occurs at the address on the line that has ‘p_sam->s0=a[0];’ within the tutorial function (H’00001082 in ...

Page 186

Stack Trace Function The emulator uses the information on the stack to display the function call history. Notes: 1. This function can be used only when the load module that has the Dwarf2-type debugging information is loaded. Such load ...

Page 187

Figure 6.61 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 tutorial() function. To remove the software breakpoint, double-click the [Editor] column ...

Page 188

Performance Measurement Function Performance measurement by the emulator is in the following modes: • Time Of Specified Range Measurement • Start Point To End Point Measurement • Start Range To End Range Measurement • Access Count Of Specified Range ...

Page 189

Select the line of the [Performance Analysis] window that has 1 in its [No] column and click the right-hand mouse button to display a popup menu. Select [Set…] from this popup menu to display the [Performance Analysis Properties] dialog ...

Page 190

Click the [Settings…] button in the [Common Settings of Performance(PA1-8)] group box to display the [Common Settings of Performance(PA1-8)] dialog box. Select [PC] from the [Address Control Mode] combo box and then click the [OK] button now ...

Page 191

Monitor Function The emulator allows monitoring of the content of specified addresses in memory during execution of the user program. In this example, we monitor the content of the address range where variable a of the tutorial function is ...

Page 192

Set the items in the [Monitor Setting] dialog box as follows: • Enter monitor1 in the [Name] edit box. • Set the parameters in the [Options] group box as follows: (a) Use the [Locals] window to refer to the ...

Page 193

Click the [OK] button to open the [Monitor] window. (4) Select [Reset Go] from the [Debug] menu. When the content of the address range changes with execution, the updated values are red (i.e. the color that was selected in ...

Page 194

... HS38000EPI61H, HS3800EBK61H, and HS388REBK61H that cannot work alone. In other words, only HS3800EPI60H, HS3880EPI60H or HS388REPI60H can be used as an emulator to operate independently. Otherwise, operation is only possible by a combination of HS38000EPI61H (common item) and the target evaluation chip board suitable for the target MCU. Select one of the following five: No ...

Page 195

Operating Voltage and Frequency Specifications Table 7.1 shows the MCU operating voltage and frequency specifications supported by the E6000 emulator. If the emulator is used in an environment that exceeds the operating voltage range and operating frequency range guaranteed ...

Page 196

User System Interface of H8/3800 E6000 Emulator All user system interface signals are directly connected to the MCU in the emulator with no buffering. 7.2.1 Signal Protection All user system interface signals are protected from over- or under-voltage by ...

Page 197

AVcc and AVss: AVcc Evaluation chip AVss Figure 7.4 User System Interface Circuit for AVcc and AVss CVcc and TEST: When CVcc is connected to GND, or TEST is connected to Vcc level, a warning message is displayed at initiation. ...

Page 198

Differences between MCU and H8/3800 E6000 Emulator When the H8/3800 E6000 emulator is turned on or initialized, or the system is reset, there are some differences in the initial values in some of the general registers between the MCU ...

Page 199

... Remove four screws from the sides of the emulator station. 2. Pull the emulator cover upward and remove it. 3. Insert connectors P1 and P2 of the evaluation chip board to the corresponding P1 and P2 of HS38000EPI61H. Then fasten the two screws on the evaluation chip board to fix the board to the emulator. ...

Page 200

E6000 emulator Figure 7.7 Removing/Fastening the Emulator Cover and Installing the Evaluation Chip Board Evaluation chip board 179 ...

Related keywords