To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology C
IVSAFETY PAGEREAD FIRST• READ this user's manual before using this emulator product.• KEEP the user's manual handy for future reference.Do n
76When the PCMCIA card emulator is used, [E10A PC Card Driver 5] is selected. When the PCIcard emulator is used, [E10A PCI Card Driver 5] is selected
77Description:The [Breakpoints] window displays breakpoint setting information. The items listed in thefollowing tables are displayed.Table 4.5 [Br
784.2.4 [Break] Dialog BoxFunction:This dialog box displays the break condition settings.Window:Figure 4.6 [Break] Dialog Box
79Description:The [Break] dialog box consists of the pages listed in table 4.7.Table 4.7 [Break] Dialog Box PagesPage Name Description[Point] Displa
80(1) [Point] Page ([Break] Dialog Box)Function:This page displays software breakpoint settings. In this page, software breakpoints can be set,change
81Description:Table 4.8 [Point] Page OptionsOption Description[Breakpoint] list box Lists the software breakpoints currently being set.The display c
82(2) [Condition] Page ([Break] Dialog Box)Function:This page displays the Break Condition settings. These conditions can also be set or cleared inth
83Description:Table 4.9 [Condition] Page OptionsOption Description[Break condition] list box Displays the Break condition settings.The display at sy
844.2.5 [Breakpoint] Dialog BoxFunction:This dialog box sets software breakpoints.Window:Figure 4.9 [Breakpoint] Dialog BoxNote: The items that can
85Description:The [Address] page options are as follows:Table 4.10 [Address] Page OptionsOption Description[Value] edit box Sets a breakpoint addres
VWARNINGObserve the precautions listed below. Failure to do sowill result in a FIRE HAZARD and will damage the usersystem and the emulator product or
864.2.6 [Break condition] Dialog BoxFunction:This dialog box sets hardware break conditions.Window:Figure 4.10 [Break condition 1] Dialog BoxNote: T
87Description:The [Break condition] dialog box consists of the [condition] page. Sets the conditions for haltingthe program.Contents to be set by thi
884.2.7 [Break condition] Dialog Box PagesThe [Break condition] dialog box page allows a number of hardware break conditions to be set.Some functions
89(1) [condition] PageFunction:This page sets the address bus, data bus, and read/write cycle conditions.Window:Figure 4.11 [condition] PageNote: Th
90Description:The [Address] group box sets the address bus conditions.Table 4.13 [Address] Group Box OptionsOption Description[Don’t care] check box
91The [Read/Write] group box sets the read/write cycle conditions.Table 4.16 [Read/Write] Group Box OptionsOption Description[Read/Write] radio butt
924.2.8 [Trace] WindowFunction:This window displays the trace buffer contents. The contents are displayed in both C andassembly languages to simplify
93Description:This window displays the trace buffer contents. The items listed in table 4.17 are displayed.Table 4.17 [Trace] Window Display ItemsI
944.2.9 [System Status] WindowFunction:This window lists information, such as conditions that have been set to the emulator and executionresults.Windo
95Description:The items listed in the following table are displayed in the [System Status] window.Table 4.18 [System Status] Window Display ItemsPag
VIWarnings on Emulator UsageBe sure to read and understand the warnings below before using this emulator. Note that these arethe main warnings, not th
97Section 5 Command-line Functions5.1 Table and Symbol DescriptionThis section describes the format used in section 5.2, Command Descriptions. The de
985.1.3 ExamplesThese are actual input examples. For commands whose execution results in a specific displayoutput, an example of the display is given
995.2 Command DescriptionsThe command list of the E10A emulator is shown below.Table 5.1 E10A HDI CommandsNo Command Abb. Function1 BREAKCONDITION_C
1005.2.1 BREAKCONDITION_CLEAR: BCCDescription:Clears hardware breakpoints that have been set.Format:bcc [<channel>] <channel> = channel &l
1015.2.2 BREAKCONDITION_DISPLAY: BCDDescription:Displays hardware breakpoints that have been set. The display contents include enable or disableof th
1025.2.3 BREAKCONDITION_ENABLE: BCEDescription:Enables or disables hardware breakpoints that have been set.Format:bce [<channel>] <mode> &
1035.2.4 BREAKCONDITION_SET: BCSDescription:Sets hardware breakpoints.Note: The function will be different according to the MCUs used. For functions
104Table 5.5 BREAKCONDITION_SET Command ParametersParameter Type Description<address> Numerical value,character stringNumerical value or symbo
105Examples:To set the following conditions as a hardware breakpoint:Address condition: An address bus value of H'1000,Data condition: A data bus
VIICAUTIONThis equipment has been tested and found to complywith the limits for a Class A digital device, pursuant to part 15of the FCC Rules. These
1065.2.5 BREAKPOINT: BPDescription:Sets software breakpoints.Note: The function will be different according to the MCUs used.Format:bp <address>
1075.2.6 BREAKPOINT_CLEAR: BCDescription:Clears software breakpoints that have been set.Format:bc [<address>]Table 5.7 BREAKPOINT_CLEAR Comman
1085.2.7 BREAKPOINT_DISPLAY: BDDescription:Displays software breakpoints that have been set.Format:bdTable 5.8 BREAKPOINT_DISPLAY Command ParameterP
1095.2.8 BREAKPOINT_ENABLE: BEDescription:Enables or disables software breakpoints that have been set.Format:be <address> <mode>Table 5.9
1105.2.9 DEVICE_TYPE: DEDescription:Displays MCU type currently selected.Format:deTable 5.10 DEVICE_TYPE Command ParameterParameter Type Description
1115.2.10 GO_OPTION: GPDescription:Sets or displays the emulation mode during user program execution.Format:gpDisplays emulation mode for user program
1125.2.11 JTAG_CLOCK: JCKDescription:Displays or sets the JTAG clock (TCK) frequency.Format:JCKDisplays the JTAG clock (TCK).JCK <jck_opt>Sets t
113Examples:(when PCMCIA used):To set the JTAG clock (TCK) frequency:>JCK 1 (RET)JTAG Clock 15MHzTo display the JTAG clock (TCK) frequency:>JCK
1145.2.12 REFRESH: RFDescription:Updates the HDI memory information to the latest contents.Format:rfTable 5.13 REFRESH Command ParameterParameter Ty
1155.2.13 RESET: REDescription:Resets the H8S/xxxx. The breakpoint settings are retained. After the reset, the registers will be inthe same state as
VIII
1165.2.14 STATUS: STSDescription:Displays emulator status information.Format:stsTable 5.15 STATUS Command ParameterParameter Type DescriptionNoneExa
1175.2.15 STEP_INTERRUPT: SIDescription:Sets or displays the enable or disable status of interrupts during step execution. When interruptsoccur when
1185.2.16 TRACE_DISPLAY: TDDescription:Displays acquired trace information.Format:tdTable 5.17 TRACE_DISPLAY Command ParameterParameter Type Descrip
119Section 6 H8S/2378F E10A Emulator Specifications6.1 Overview of the EmulatorThe H8S/2378F E10A emulator supports the H8S/2377F and H8S/2367F. The
1206.2 Pin Arrangement of the Hitachi-UDI Port ConnectorFigure 6.1 shows the pin arrangement of the Hitachi-UDI port connector.CAUTIONNote that the pi
121Figure 6.2 shows an example of connecting the user system to the emulator.Pulls-up at 4.7 kUser systemUser logicVccE10A pin No.14-pin connector wit
122Notes: 1. The emulator uses #WDTOVF, P53, and PG4 to PG6 in the H8S/2377F andH8S/2367F. Pull up the emulator and MCU pins and connect them to the
1233. #RES of pin 4 of the Hitachi-UDI port connector is a signal line in which theemulator outputs signals to the MCU.#RES of pin 7 of the Hitachi-U
1247. When H8S/2377F and H8S/2367F are connected to the emulator, the followingpin functions cannot be used.Table 6.2 Unavailable Pin FunctionsH8S/
1256.3 Differences between the MCUs and the Emulator1. When the emulator system is initiated, it initializes the general registers and part of the con
iPrefaceThank you for purchasing the E10A emulator.CAUTIONREAD section 2, Preparation before Use, of this User’s Manual before using the emulator pr
1266.4 The H8S/2378F E10A Emulator FunctionsNotes: 1. Do not use an MCU that has been used for debugging.2. If the flash memory is rewritten many time
127Table 6.6 Conditions Set in [Break condition] Dialog BoxConditionDialog BoxAddress BusConditionDataConditionRead or writecondition[Break conditio
1286.4.3 Notes on Setting the [Breakpoint] Dialog Box1. When an odd address is set, the address is rounded down to an even address.2. A software break
1296.4.4 Trace FunctionThe emulator uses the branch-instruction trace and bus trace functions in the MCU, andacquires a trace by operating the user pr
130(2) Displaying a Trace in the Bus Trace FunctionThe contents of the trace buffer in table 6.9 are displayed in the [Trace] window.Table 6.9 Items
131(3) Searching a Trace in the Bus Trace FunctionThe emulator supports two types of trace search function listed in table 6.10.Table 6.10 Trace Sea
132Table 6.13 [Bus status] Group Box OptionsOption Description[Don’t care] check box Indicates that no bus condition is set.[DMAC] check box Sets a
133(ii) Trace Find FunctionThe emulator jumps to the information that matches the conditions specified by all the tracedata on the [Trace] window. Th
134Example:To display the acquired trace information:td (RET)The display format of the branch trace information is as follows:>tdIP TYPE ADDR MNEMO
135(ii) TRACE_MODE: TMDescription:Displays or sets the acquisition mode of the trace information.Format:tmDisplays the acquisition mode of the trace i
iiRelated Manuals:• Supplementary Informations• Hitachi Debugging Interface User's Manual (HS6400DIIW5SE)• H8S, H8/300 Series C/C++ Compiler, Ass
136Example:To disable acquiring the DMAC cycle in the bus trace:tm type bus cycle dmac (RET)The display format of the setting state of the trace acqui
137(iii) TRACE_SEARCH: TSDescription:Searches and displays the trace information with the specified condition.Format:ts [<addropt>] [<dataopt
138Table 6.20 TRACE_SEARCH Command ParameterParameter Type Description<address> Numerical value,character stringSets the address value as a nu
139Example:To search and display the trace data of address H’00FF8000:ts address H’ff8000 (RET)When the data exists in the –70 cycle, the display form
1406.4.5 Notes on HDI1. Note on Moving Source File Position after Creating Load ModuleWhen the source file is moved after creating the load module, th
141Example: The function name is main.main = Array displayWhen array elements exceed 1000, elements from after 1000 will not be displayed.6. Memory L
142Example: FILE_LOAD C:\\HEW\\HDI5\\E10A\\2378F\\TUTORIAL\\TUTORIAL.ABS9. Note on Initiating HDIWhen the emulator is initiated by using another card
14316. [I/O Registers] window Display and modificationDo not change values in the [I/O Registers] window because the emulator uses the addressbreak c
14420. Number of Software Breakpoint and [Stop At] Settings in the [Run...] MenuThe maximum number of software breakpoints and [Stop At] settings allo
14528. Note on Starting or Halting User ProgramWhen the user program execution is started or halted, the program for the H8S/2378F E10Aemulator will w
iiiContentsSection 1 Overview... 11.1 Warnings...
14633. Watchdog TimerWhen the emulator is connected to operate the watchdog timer (WDT) during using theH8S/2377F and H8S/2367F, the WDT continues ope
iv3.15 Break Function...513.15.1 Softwa
vSection 6 H8S/2378F E10A Emulator Specifications... 1196.1 Overview of the Emulator...
Notice 1. All information included in this document is current as of the date this document is issued. Such information, however, is subject to chang
viFiguresFigure 1.1 System Configuration with the Emulator (PCMCIA Card Emulator Used) ...1Figure 1.2 System Configuration with the Emula
viiFigure 3.14 [Program] Window (Break Status)...36Figure 3.15 [System Statu
viiiFigure 4.10 [Break condition 1] Dialog Box...86Figure 4.11 [conditio
ixTablesTable 1.1 Environmental Conditions...4Table 1.2 Oper
xTable 5.17 TRACE_DISPLAY Command Parameter...118Table 6.1 Components of the Emulator
1Section 1 OverviewThe E10A emulator (hereafter referred to as the emulator) is a software and hardwaredevelopment support tool for application syst
2User systemHost computer(PC with PCI slot)User system interface cablePCI card emulatorH8S/xxxxInsert intothe PCI slotFigure 1.2 System Configuratio
31.1 WarningsCAUTIONREAD the following warnings before using the emulator product. Incorrect operation will damage the user system andthe emulator p
41.2 Environmental ConditionsCAUTIONObserve the conditions listed in tables 1.1 and 1.2 whenusing the emulator. Failure to do so will damage the user
5Table 1.2 Operating EnvironmentsItem DescriptionHost computer Built-in Pentium or higher-performance CPU (200 MHz or higherrecommended); IBM PC or
Regarding the change of names mentioned in the document, such as Hitachi Electric and Hitachi XX, to Renesas Technology Corp.The semiconductor operati
61.3 ComponentsCheck all the components unpacking. For details on the E10A emulator components, refer tosection 6.1, Components of the Emulator. If
7Section 2 Preparation before Use2.1 Emulator PreparationWARNINGREAD the reference sections shaded in figure 2.1 beforeusing the emulator product. In
82.2 HDI InstallationWhen the CD-R is inserted in the host computer’s CD-ROM drive, the HDI installation wizard isautomatically activated (holding the
92.2.2 Installing under Windows NT 4.0 Operating System(1) When the emulator is a PCI card:1. Shut the operating system down and turn off the power
102.2.3 Installing under Windows2000 Operating System(1) When the emulator is a PCI card:1. Log-on with an administrator-level user name.2. Install
112.3 Connecting the Host Computer with the Card EmulatorInsert the card emulator into the PCMCIA TYPE II slot or the PCI slot of the host computer(fi
12Note: When installing the PCI card emulator, note the following:1. Turn off the host computer.2. Insert the emulator into the PCI slot in parallel
13Notes: 1. To connect the signals output from the connector, refer to the MCU pinalignment.2. To remove the user system interface cable from the user
142.5 System CheckWhen the HDI program is executed, check that the emulator operates correctly according to thefollowing procedure:1. Check that the c
155. Power on the user system and select the setting to be used.Figure 2.6 [Select Session] Dialog Box
Cautions Keep safety first in your circuit designs! 1. Renesas Technology Corporation puts the maximum effort into making semiconductor products bett
166. The [E10A Driver Details] dialog box is displayed. With the [Driver] combo box, select thedriver to connect the HDI with the emulator. [Interface
177. Supply power to the user system.The subsequent procedures depend on the activation mode that was selected in step 5.2.5.1 H8S/xxxx E10A Emulato
18Notes: 1. When the HDI is not linked up even if the above procedure has been executed, thedriver will not be set correctly. Install drivers provide
19(b) If the following dialog box is displayed, check that the Hitachi-UDI portconnector on the user system is correctly connected.Figure 2.13 [Che
204. If the driver is not correctly connected, the following dialog box will be displayed.Figure 2.16 [Unable to restore the previous driver setting
212. When the [Load Program] window appears, specify a user program to be downloaded. Clickthe [Open] button to start downloading.Figure 2.18 [Load
224. The [Continue] window appears. When the [OK] button is clicked, a message is displayed torequest that power be supplied. Turn off the power, ex
232.6 Ending the HDIPower off the emulator by using the following procedure:1. Select [Exit] from the [File] menu to end the HDI. When the [Exit HDI]
242.7 Uninstalling the HDIFollow this procedure to remove the installed HDI from the user’s host computer.1. Open [Add/Remove Programs Properties] fro
25Section 3 Tutorial3.1 IntroductionThe following describes the main functions of the emulator by using a tutorial program.The tutorial program is bas
H8S/2378F E10A EmulatorUser’s ManualUser’s Manual Rev.1.0 2002.10
263.2 Running the HDITo run the HDI, select [HDI for E10A H8Sxxxx] -> [Hitachi Debugging Interface] from the[Start] menu.Figure 3.1 [Start] MenuF
273.3 [HDI] WindowFigure 3.2 [HDI] WindowThe key functions of the HDI are described in section 4, Descriptions of Windows. Numbers infigure 3.2 ind
283.4 Setting up the EmulatorThe following MCU conditions must be set up on the emulator before downloading the program:• Device type• Execution modeT
29Set options as follows:Table 3.2 Setting the [Configuration] Dialog BoxOption ValueMode H8S/xxxx (default)Emulation mode Normal (normal execution,
303.6 Downloading the Tutorial Program3.6.1 Downloading the Tutorial ProgramDownload the object program to be debugged.• Select [Load Program...] from
313.6.2 Displaying the Source ProgramThe HDI allows the user to debug a program at the source level.• Select [Source...] from the [View] menu. The [O
32• Select [Sort.c] and click the [Open] button. The [Program] window is displayed.Figure 3.7 [Program] Window (Displaying the Source Program)• If
333.7 Setting the Software BreakpointA breakpoint is one of the easy debugging functions.The [Program] window provides a very simple way of setting a
343.8 Setting RegistersSet values of the program counter and the stack pointer before executing the program.• Select [Registers] from the [View] menu.
35keyboard, or double-click the value area with the mouse. The following dialog box is thendisplayed.Figure 3.11 [Register] Dialog Box (ER7)• Set t
Cautions1. Hitachi neither warrants nor grants licenses of any rights of Hitachi’s or any third party’spatent, copyright, trademark, or other intellec
363.9 Executing the ProgramExecute the program as described in the following:• To execute the program, select [Go] from the [Run] menu, or click the [
37The 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 [Sy
38The [System Status] window displays the following items in each page.Table 3.3 Contents of the [System Status] WindowPage Item Description[Session
393.10 Reviewing BreakpointsThe user can see all the breakpoints set in the program in the [Breakpoints] window.• Select [Breakpoints] from the [View]
403.11 Viewing MemoryThe user can view the contents of a memory block in the [Memory] window. For example, toview the memory contents corresponding t
413.12 Watching VariablesAs the user steps through a program, it is possible to watch that the values of variables used in theuser program are changed
42• 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 variab
43The [Watch] window will now also show the long-type variable max.Figure 3.22 [Watch] Window (Displaying the Variable)The user can double-click the
443.13 Stepping Through a ProgramThe HDI provides a range of step menu commands that allow efficient program debugging.Table 3.4 Step OptionMenuComm
453.13.1 Executing [Step In] CommandThe [Step In] steps into the called function and stops at the first statement of the called function.• To step thr
IIMPORTANT INFORMATIONREAD FIRST• READ this user's manual before using this emulator product.• KEEP the user's manual handy for future refer
463.13.2 Executing [Step Out] CommandThe [Step Out] steps out of the called function and stops at the next statement of the callingstatement in the ma
47• To execute two steps, use [Step In] twice.Figure 3.28 [Program] Window (Step In −> Step In)• The value of max displayed in the [Watch] window
483.13.3 Executing [Step Over] CommandThe [Step Over] executes a function call as a single step and stops at the next statement of themain program.• U
49Figure 3.31 [Program] Window (Step Over)When the last statement of the change function is executed, the data of variable a, which isdisplayed in t
503.14 Displaying Local VariablesThe user can display local variables in a function using the [Locals] window. For example, wewill examine the local
513.15 Break FunctionThe emulator has software and hardware break functions. With the HDI, a software breakpointcan be set using the [Breakpoints] wi
52The [Break] dialog box is displayed. The [Point] page is displayed as a default.Figure 3.34 [Point] Page ([Break] Dialog Box)• Click the [Add...]
53• Enter H'10a4 to the [Value] edit box.Figure 3.35 [Breakpoint] Dialog Box• Click the [OK] button.
54The [Break] dialog box is displayed. The address set in the value field of [Breakpoint] isdisplayed.Figure 3.36 [Point] Page ([Break] Dialog Box)
55The software breakpoint that has been set is displayed in the [Breakpoints] window.Figure 3.37 [Breakpoints] Window (Software Breakpoint Setting)T
IILIMITED WARRANTY Hitachi warrants its emulator products to be manufactured inaccordance with published specifications and free from defects inma
56The [System Status] window displays the following contents.Figure 3.39 Displayed Contents of the [System Status] Window (Software Break)Note: The
573.16 Hardware Break FunctionA method is given below in which the address bus condition and the read cycles for the statecondition are set under Brea
58The [Break] dialog box is displayed. To set hardware break conditions, select [Condition] in the[Break] dialog box to display the [Condition] page.
59• Highlight the first point in the [Break condition] list box.• Click the [Edit...] button. The [Break condition 1] dialog box is displayed.• Clear
60Figure 3.43 [Break] Dialog Box (After Hardware Break Condition Setting)Note: Note that the number of hardware break conditions differs according t
61The newly set hardware breakpoint is displayed in the [Breakpoints] window. With this setting,Break condition 1 is displayed in [Type] in the [Brea
62The program runs then stops at the condition specified under Break condition 1.Figure 3.45 [Program] Window at Execution Stop (Break condition 1)
63The [System Status] window displays the following contents.Figure 3.46 Displayed Contents of the [System Status] Window (Break condition 1)Note: T
643.17 Trace FunctionThe trace function of the E10A emulator is described.The branch source addresses, mnemonics, operands, and source lines are displ
653.18 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 u
IIIState Law: Some states do not allow the exclusion or limitation of implied warranties or liability forincidental or consequential damages, so t
67Section 4 Descriptions of Windows4.1 HDI WindowsHDI window menu bars and the corresponding pull-down menus are listed in table 4.1. Where adescript
68Table 4.1 HDI Window Menus and Related Manual Entries (cont)Menu Bar Pull-Down MenuHitachiDebuggingInterfaceUser's ManualThisManualView Menu
69Table 4.1 HDI Window Menus and Related Manual Entries (cont)Menu Bar Pull-Down MenuHitachiDebuggingInterfaceUser's Manual This ManualMemory M
704.2 Descriptions of Each WindowThis section describes each window. Figures in this section are used as examples. Each E10Aemulator type has explan
71Description:The [Configuration] dialog box consists of the [General] page listed in table 4.2.Table 4.2 [Configuration] Dialog Box PagePage Name D
72(1) [General] Page ([Configuration] Dialog Box)Function:This page sets the operational conditions for the emulator. The MCU name is displayed, thee
73Description:Table 4.3 [General] Page OptionsOption Description[Mode] combo box Displays the MCU name.[Emulation mode] combo box Selects the emulat
74When a driver is to be changed with the [Change…] button, the following message is displayed.Figure 4.3 Warning Message BoxWhen the [Yes] button i
754.2.2 [E10A Driver Details] Dialog BoxWhen the [OK] button is clicked, the [E10A Driver Details] dialog box will appear to select thedriver softwar
Commentaires sur ces manuels