User’s Manual SuperH™ Family E10A-USB Emulator Additional Document for User’s Manual Supplementary Information on Using the SH7766 SuperH™ Family E10A-USB for SH7766 HS7766KCU01HE All information contained in these materials, including products and product specifications, represents information on the product at the time of publication and is subject to change by Renesas Electronics Corporation without notice.
Notice 1. Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples. You are fully responsible for the incorporation of these circuits, software, and information in the design of your equipment. Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits, software, or information. 2.
Regulatory Compliance Notices European Union regulatory notices This product complies with the following EU Directives. (These directives are only valid in the European Union.) CE Certifications: • Electromagnetic Compatibility (EMC) Directive 2004/108/EC EN 55022 Class A WARNING: This is a Class A product. In a domestic environment this product may cause radio interference in which case the user may be required to take adequate measures.
Table of Contents Section 1 Connecting the Emulator with the User System .................................................................... 1 1.1 1.2 1.3 1.4 1.5 Components of the Emulator .................................................................................................................................... 1 Connecting the Emulator with the User System .......................................................................................................
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System Section 1 Connecting the Emulator with the User System 1.1 Components of the Emulator The emulator supports the SH7766. Table 1.1 lists the components of the emulator. Table 1.1 Components of the Emulator Classification Component Hardware Emulator box Appearance Quantity 1 Remarks HS0005KCU01H: Depth: 65.0 mm, Width: 97.0 mm, Height: 20.0 mm, Mass: 72.9 g or HS0005KCU02H: Depth: 65.0 mm, Width: 97.
SuperH™ Family E10A-USB Emulator 1.2 Section 1 Connecting the Emulator with the User System Connecting the Emulator with the User System To connect the E10A-USB emulator (hereinafter referred to as the emulator), the H-UDI port connector must be installed on the user system to connect the user system interface cable. When designing the user system, refer to an example of recommended connection between the connector and the MPU shown in this manual.
SuperH™ Family E10A-USB Emulator 1.4 Section 1 Connecting the Emulator with the User System Pin Assignments of the H-UDI Port Connector Figure 1.1 shows the pin assignments of the 14-pin H-UDI port connector. Note: Note that the pin number assignments of the H-UDI port connector shown on the following page differ from those of the connector manufacturer. Pin No. Input/ Output*1 Signal 1 TCK 2 TRST# 3 TDO 4 ASEBRK# *2 *2 SH7766 Pin No.
SuperH™ Family E10A-USB Emulator 1.5 1.5.1 Section 1 Connecting the Emulator with the User System Recommended Circuit between the H-UDI Port Connector and the MPU Recommended Circuit (14-Pin Type) Figure 1.2 shows a recommended circuit for connection between the H-UDI port connector (14 pins) and the MPU when the emulator is in use. Notes: 1. Do not connect anything to the N.C. pins of the H-UDI port connector. 2.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System When the circuit is connected as shown in figure 1.2, the switches of the emulator are set as SW2 TM = 1 and SW3 = 1. For details, refer to section 3.8, Setting the DIP Switches, in the SuperH Family E10A-USB Emulator User’s Manual. VDDQ = 3.3-V I/O power supply All pulled-up at 4.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System R20UT2190EJ0100 Rev.1.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Section 2 Software Specifications when Using the SH7766 2.1 Differences between the SH7766 and the Emulator 1. When the emulator system is initiated, it initializes the general registers and part of the control registers as shown in table 2.1. The initial values of the actual SH7766 registers are undefined. Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 4. Reset Signals The SH7766 reset signals are only valid during emulation started with clicking the GO or STEP-type button. If these signals are enabled on the user system in command input wait state, they are not sent to the SH7766. Note: Do not break the user program when the PRESET# signal is being low and the WAIT control signal is being active. A TIMEOUT error will occur.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 9. Port The AUD pins are multiplexed as shown in table 2.2. Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 A file of I/O-register definitions is stored in the location below. \(Hew)\Tools\Renesas\DebugComp\Platform\E10A-USB\SH-4A\SH-4\IOFiles The location of the Hew folder will vary according to where the customer has installed it. As a default, the folder is installed in the C:\Program Files\Renesas\Hew folder. ⎯ Verify In the [IO] window, the verify function of the input value is disabled. 14.
SuperH™ Family E10A-USB Emulator 2.2 Section 2 Software Specifications when Using the SH7766 Specific Functions for the Emulator when Using the SH7766 The SH7766 does not support the AUD trace function. 2.2.1 Event Condition Functions The emulator is used to set 12 event conditions (Ch1 to Ch12) and the software trace. Table 2.3 lists the conditions of Event Condition. Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Table 2.4 lists the combinations of conditions that can be set under Ch1 to Ch12 and the software trace. Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Sequential Setting: In the emulator, sequential setting of an Event Condition is enabled. Table 2.5 Sequential Event Conditions Type Event Condition Description [CPU 2 Channel Ch2 -> 1 Sequential Sequential Event] Page Halts a program when a condition is satisfied in the order of Event Condition 2, 1. An event condition must be set for Ch2 and Ch1.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Sequential Break Extension Setting: Figure 2.1 [CPU Sequential Extend] Page (a) Indicates the channel name for setting conditions. (b) Selects a condition that is satisfied before the channel which sets up conditions. When a channel name is selected, it is required that the condition of the channel selected here must have already been satisfied. When [CPU Match flag] is selected, the CPU match flag must be set.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Usage Example of Sequential Break Extension Setting: A tutorial program provided for the product is used as an example. For the tutorial program, refer to section 6, Tutorial, in the TM SuperH Family E10A-USB Emulator User’s Manual. The conditions of Event Condition are set as follows: 1. Ch1 Breaks address H’00001068 when the condition [Prefetch address break after executing] is satisfied. 2.
SuperH™ Family E10A-USB Emulator 2.2.2 Section 2 Software Specifications when Using the SH7766 Trace Functions The emulator supports the trace functions listed in table 2.6. Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Range Memory Access Trace Functions: The memory access within the specified range is acquired by a trace. The read cycle, write cycle, or read/write cycle can be selected as the bus type, ASID value, or bus cycle for trace acquisition. [Setting Method] (i) To open the [Event condition 5] or [Event condition 6] dialog box, double-click on the Ch5 (OA) or Ch6 (OA) column of the [Eventpoint] window.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 (iii) Open the [ASID] page, remove the check mark of the [Don’t care] check box, and enter the ASID value to be set. When the ASID value is not set as a condition, do not remove the check mark of the [Don’t care] check box. (iv) Open the [Bus state] page and specify the bus type and bus cycle that are to be set. Figure 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Software Trace Function: Note: This function can be supported with SHC/C++ compiler (manufactured by Renesas Electronics Corporation; including OEM and bundle products) V6.0 or later. However, SHC/C++ compiler (including OEM and bundle products) V8.0 or later is needed when instructions other than those compatible with SH4 are output.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Memory Output Trace Functions: This function is activated by selecting the [Use Memory trace] radio button in the [Trace type] group box of the [Trace mode] page. In this function, write the trace data in the specified user memory range. Specify the start address to output a trace for the [Start] edit box in the [User memory area] group box, and the end address for the [End Address] edit box.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 To set the memory-output trace acquisition mode, click the [Trace] window with the right mouse button and select [Setting] from the pop-up menu to display the [Acquisition] dialog box. The AUD trace acquisition mode can be set in the [Trace mode1] or [Trace mode2] group box in the [Trace mode] page of the [Acquisition] dialog box. Figure 2.6 [Trace Mode] Page Notes: 1.
SuperH™ Family E10A-USB Emulator 2.2.3 Section 2 Software Specifications when Using the SH7766 Notes on Using the JTAG (H-UDI) Clock (TCK) 1. Set the JTAG clock (TCK) frequency to lower than the frequency of the SH7766 peripheral module clock (CKP). 2. The set value of the JTAG clock (TCK) is initialized by executing [Reset CPU] or [Reset Go]. Thus the TCK value will be 5 MHz.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 value after setting. When no ASID value is specified, the BREAKPOINT is set to a virtual address corresponding to the ASID value at command input. 9. An address (physical address) to which a BREAKPOINT is set is determined when the BREAKPOINT is set. Accordingly, even if the VP_MAP table is modified after BREAKPOINT setting, the BREAKPOINT address remains unchanged.
SuperH™ Family E10A-USB Emulator 2.2.8 Section 2 Software Specifications when Using the SH7766 Performance Measurement Function The emulator supports the performance measurement function. 1. Setting the performance measurement conditions To set the performance measurement conditions, use the [Performance Analysis] dialog box and the PERFORMANCE_SET command.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 (a) Specifying the measurement start/end conditions Set the performance measurement conditions in the [Action] page after conditions have been set in the [Event Condition] dialog box that is opened by double-clicking Ch1 to Ch6 and Ch8 to Ch12 on the [Event Condition] sheet of the [Eventpoint] window. Notes: 1.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Figure 2.8 [Action] Page Note: PA1 or PA2 cannot be set for Ch8 and Ch9. (b) Measurement tolerance ⎯ The measured value includes tolerance. ⎯ Tolerance will be generated before or after a break. For details, see table 2.11. (c) Measurement items Items are measured in the [Performance Analysis] dialog box for each channel from Ch1 to Ch4. A maximum of four conditions can be specified at the same time. Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Table 2.9 Measurement Items Classification Type Measurement Item Option Note None Not measured. Elapsed cycles AC Except for power-on period; counted by the CPU clock. Cycles executed in privileged mode PM The number of privilegedmode cycles among the number of elapsed cycles. Cycles for asserting the SR.BL bit BL The number of cycles when the SR.BL bit = 1 among the number of elapsed cycles.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Classification Type Measurement Item Option Note TLB performance (cont) TLB (cont) Number of ITLB miss IM The number of ITLB misses for valid accesses (does not include UTLB hits or misses). Instruction bus performance Instruction Number of memory accesses for instruction fetch MIF The number of memory accesses by an instruction fetch. Accesses canceled by an instruction-fetch bus are not counted.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Classification Type Measurement Item Option Note Operand bus performance (cont) Access count (cont) Number of operand cache access (READ) CR The number of operandcache reads during memory access (read) of an operand. Number of operand cache access (WRITE) CW The number of operandcache reads during memory access (write) of an operand.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Classification Type Measurement Item Option Note Operand bus performance (cont) Waited cycle (cont) Waited cycles for operand fetch (WRITE) WOW The number of waited cycles by a memory access (write) of an operand. Waited cycles for operand cache miss (READ) WCMR The number of waited cycles by an operand cache miss (read) (however, the number of waited cycles of cache fiII is included due to contention).
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 Table 2.10 shows the measurement items and methods that are mainly used. Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 (d) Extension setting of the performance-result storing counter The 32-bit counter stores the result of performance, and two counters can be used as a 64-bit counter. To set a 64-bit counter, check the [Enable] check box in the [Extend counter] group box of the [Performance Analysis] dialog box for Ch1 and Ch3. 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7766 R20UT2190EJ0100 Rev.1.
SuperH™ Family E10A-USB Emulator Additional Document for User’s Manual Supplementary Information on Using the SH7766 Publication Date: Rev.1.
http://www.renesas.com SALES OFFICES Refer to "http://www.renesas.com/" for the latest and detailed information. Renesas Electronics America Inc. 2880 Scott Boulevard Santa Clara, CA 95050-2554, U.S.A. Tel: +1-408-588-6000, Fax: +1-408-588-6130 Renesas Electronics Canada Limited 1101 Nicholson Road, Newmarket, Ontario L3Y 9C3, Canada Tel: +1-905-898-5441, Fax: +1-905-898-3220 Renesas Electronics Europe Limited Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, U.
SuperH™ Family E10A-USB Emulator Additional Document for User’s Manual Supplementary Information on Using the SH7766 R20UT2190EJ0100