SuperH™ Family E10A-USB Emulator Additional Document for User's Manual Supplementary Information on Using the SH72546RFCC, SH72546R, SH72544R, SH72543R, SH72531RFCC, SH72531FCC, and SH72531 Renesas Microcomputer Development Environment System SuperH™ Family E10A-USB for SH72546RFCC, SH72546R, SH72544R, SH72543R, SH72531RFCC, SH72531FCC, and SH72531 HS7250KCU01HE All information contained in these materials, including products and product specifications, represents information on the product at the time of
Notice 1. 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 the latest product information with a Renesas Electronics sales office. Also, please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website.
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.
United States Regulatory notices on Electromagnetic compatibility FCC Certifications (United States Only): 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 is operated in a commercial environment.
Contents Section 1 1.1 1.2 1.3 1.4 1.5 Section 2 2.1 2.2 Connecting the Emulator with the User System ....................................1 Components of the Emulator ....................................................................................................1 Connecting the Emulator with the User System .......................................................................3 Installing the H-UDI Port Connector on the User System ........................................................
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 E10A-USB emulator supports the SH72546RFCC, SH72546R, SH72544R, SH72543R, SH72531RFCC, SH72531FCC, and SH72531. Table 1.1 lists the components of the emulator. REJ10J1941-0300 Rev. 3.
Section 1 Connecting the Emulator with the User System SuperH™ Family E10A-USB 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.0 mm, Height: 20.0 mm, Mass: 73.7 g Software User system interface cable 1 14-pin type: Length: 20 cm, Mass: 33.
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 the recommended circuit between the H-UDI port connector and the MCU.
Section 1 Connecting the Emulator with the User System 1.3 SuperH™ Family E10A-USB Emulator Installing the H-UDI Port Connector on the User System Table 1.3 shows the recommended H-UDI port connectors for the emulator. Table 1.3 Recommended H-UDI Port Connectors Connector Type Number Manufacturer Specifications 36-pin connector DX10M-36S Hirose Electric Co., Ltd. Screw type Lock-pin type DX10M-36SE, DX10G1M-36SE 14-pin connector 2514-6002 Minnesota Mining & Manufacturing Ltd.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System E10A-USB optional 38-pin user system interface cable 50 mm 1 38 2 20 mm 37 5 mm 2-5767004-2 : Area to be kept free of other components Target system H-UDI port connector (top view) Figure 1.1 Restriction on Component Mounting 1.4 Pin Assignments of the H-UDI Port Connector Figures 1.2 through 1.4 show the pin assignments of the 36-pin, 14-pin, and 38-pin H-UDI port connectors, respectively.
Section 1 Connecting the Emulator with the User System SH72546RFCC SH72546R SH72544R SH72543R SH72531RFCC Pin No. Pin No.
SuperH™ Family E10A-USB Emulator Pin No. Section 1 Connecting the Emulator with the User System Input/ Output*1 Signal SH72546RFCC SH72546R SH72544R SH72543R SH72531RFCC Pin No. SH72531 SH72531FCC Pin No. Input B18 87 Input B17 89 Output C16 83 TMS Input D15 85 TDI Input A19 84 Output B12 107 1 TCK 2 TRST# 3 TDO 4 N.C. 5 6 7 RES# 8 N.C. 9 GND 11 UVCC 10, 12, GND *2 *2 Note User reset Output and 13 14 GND *3 Output Notes: 1.
Section 1 Connecting the Emulator with the User System Pin No. Signal Input/ Output*1 SH72546RFCC SH72546R SH72544R SH72543R SH72531RFCC Note Pin No. SuperH™ Family E10A-USB Emulator Pin No. Signal 1 N.C. 20 N.C. 2 N.C. 21 TRST# *2 3 N.C. 22 N.C. 4 N.C. 23 N.C. 5 UCON# (GND) *3 24 AUDATA3 Output 6 AUDCK 25 N.C. 7 N.C. 26 AUDATA2 8 N.C. 27 N.C. 9 RES# *2 10 N.C. G18 Output B12 User reset 28 AUDATA1 29 N.C. 30 AUDATA0 31 N.C.
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 MCU Recommended Circuit (36-Pin Type) Figure 1.5 shows a recommended circuit for connection between the H-UDI and AUD port connectors (36 pins) and the MCU when the emulator is in use. Notes: 1. Do not connect anything to the N.C. pins of the H-UDI port connector. 2.
Section 1 Connecting the Emulator with the User System SuperH™ Family E10A-USB Emulator When the circuit is connected as shown in figure 1.5, 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. Vcc = 3.3-V power supply All pulled-up at 4.
SuperH™ Family E10A-USB Emulator 1.5.2 Section 1 Connecting the Emulator with the User System Recommended Circuit (14-Pin Type) Figure 1.6 shows a recommended circuit for connection between the H-UDI port connector (14 pins) and the MCU when the emulator is in use. Notes: 1. Do not connect anything to the N.C. pins of the H-UDI port connector. 2. The ASEMD pin must be 1 when the emulator is connected and 0 when the emulator is not connected, respectively.
Section 1 Connecting the Emulator with the User System SuperH™ Family E10A-USB Emulator When the circuit is connected as shown in figure 1.6, 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. Vcc = 3.3-V power supply All pulled-up at 4.7 kΩ or more Vcc Vcc Vcc Vcc Vcc H-UDI port connector (14-pin type) TCK 9 GND TRST 10 GND TDO N.C.
SuperH™ Family E10A-USB Emulator 1.5.3 Section 1 Connecting the Emulator with the User System Recommended Circuit (38-Pin Type) Figure 1.7 shows a recommended circuit for connection between the H-UDI and AUD port connectors (38 pins) and the MCU when the emulator is in use. Notes: 1. Do not connect anything to the N.C. pins of the H-UDI port connector. 2. The ASEMD pin must be 1 when the emulator is connected and 0 when the emulator is not connected, respectively.
Section 1 Connecting the Emulator with the User System SuperH™ Family E10A-USB Emulator When the circuit is connected as shown in figure 1.7, 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. Vcc = 3.3-V power supply All pulled-up at 4.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Section 2 Software Specifications when Using the Emulator 2.1 Differences between the SH72546RFCC, SH72546R, SH72544R, SH72543R, SH72531RFCC, SH72531FCC, and SH72531 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 MCU are undefined. Table 2.
Section 2 Software Specifications when Using the Emulator SuperH™ Family E10A-USB Emulator 3. Low-Power States ⎯ When the emulator is used, the sleep state can be cleared with either the clearing function or with the [STOP] button, and a break will occur. ⎯ Emulation of the hardware stand-by mode is not supported. ⎯ Do not stop inputting the clock to the H-UDI module by using the module standby function. 4.
SuperH™ Family E10A-USB Emulator Table 2.3 Section 2 Software Specifications when Using the Emulator Stopping Time by Memory Access (Reference) Method Condition Stopping Time H-UDI read/write Reading of one longword for the internal RAM Reading: Maximum three bus clocks (Bφ) Writing of one longword for the internal RAM Writing: Maximum two bus clocks (Bφ) CPU clock: 160 MHz JTAG clock: 20 MHz About 50 ms Short break Reading or writing of one longword for the external area 7.
Section 2 Software Specifications when Using the Emulator SuperH™ Family E10A-USB Emulator Note: If the target device is the SH72546R, SH72544R, SH72543R, or SH72531, the function for setting the emulation RAM is not supported. 9. Using WDT The WDT does not operate during break. 10. Loading Sessions Information in [JTAG clock] of the [Configuration] dialog box cannot be recovered by loading sessions. Thus the TCK value will be as follows: ⎯ When HS0005KCU01H or HS0005KCU02H is used: TCK = 10 MHz 11.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator 12. Illegal Instructions Do not execute illegal instructions with STEP-type commands. 13.
Section 2 Software Specifications when Using the Emulator 2.2 2.2.1 SuperH™ Family E10A-USB Emulator Specific Functions for the Emulator when Using the SH72546RFCC, SH72546R, SH72544R, SH72543R, SH72531RFCC, SH72531FCC, and SH72531 Event Condition Functions The emulator is used to set event conditions for the following three functions: • Break of the user program • Internal trace • Start or end of performance measurement Table 2.6 lists the types of Event Condition. Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Table 2.
Section 2 Software Specifications when Using the Emulator SuperH™ Family E10A-USB Emulator (1) Sequential Setting Using the [Combination action (Sequential or PtoP)] dialog box specifies the sequential condition and the start or end of performance measurement. Table 2.8 Conditions to Be Set Classification Item Description [Ch1, 2, 3] list box Sets the sequential condition and the start or end of performance measurement using Event Conditions 1 to 3 and 11.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Table 2.8 Conditions to Be Set (cont) Classification Item Description [Ch1, 2, 3] list box (cont) Ch1 to Ch2 PA* Sets the performance measurement period during the time from the satisfaction of the condition set in Event Condition 1 (start condition) to the satisfaction of the condition set in Event Condition 2 (end condition).
Section 2 Software Specifications when Using the Emulator SuperH™ Family E10A-USB Emulator (2) Usage Example of Sequential Break Extension Setting A tutorial program provided for the product is used as an example. For the tutorial program, refer TM to section 6, Tutorial, in the SuperH Family E10A-USB Emulator User’s Manual. The conditions of Event Condition are set as follows: 1. Ch3 Breaks address H’00001088 when the condition [Only program fetched address after] is satisfied. 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Figure 2.1 [Source] Window at Execution Halted (Sequential Break) If the sequential condition, performance measurement start/end, or point-to-point for the internal trace is set, conditions of Event Condition to be used will be disabled. Such conditions must be enabled from the popup menu by clicking the right mouse button on the [Event Condition] sheet. Notes: 1.
Section 2 Software Specifications when Using the Emulator SuperH™ Family E10A-USB Emulator 7. If the settings of the Event condition or the sequential conditions are changed during execution of the program, execution will be suspended. (The number of clocks to be suspended during execution of the program is a maximum of about 18 peripheral clocks (Pφ). If the peripheral clock (Pφ) is 66.6 MHz, the program will be suspended for 0.27 μs.) 8.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Table 2.10 shows the type numbers that the AUD function can be used. Table 2.10 Type Number and AUD Function Type Number AUD Function HS0005KCU01H Not supported HS0005KCU02H Supported The internal and AUD traces are set in the [Acquisition] dialog box of the [Trace] window.
Section 2 Software Specifications when Using the Emulator SuperH™ Family E10A-USB Emulator The following six items can be selected as the internal trace from [Type] of [I-Trace mode]. Table 2.11 Information on Acquiring the Internal Trace Item Acquisition Information [M-Bus & Branch] Acquires the data and branch information on the M-bus. • Data access (read/write) • PC-relative access • Branch information [I-Bus] Acquires the data on the I-bus.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Using Event Condition restricts the condition; the following three items are set as the internal trace conditions. Table 2.12 Trace Conditions of the Internal Trace Item Acquisition Information Trace halt Acquires the internal trace until the Event Condition is satisfied. (The trace content is displayed in the [Trace] window after a trace has been halted. No break occurs in the user program.
Section 2 Software Specifications when Using the Emulator SuperH™ Family E10A-USB Emulator Set the address condition as H’1000 in the [Event Condition 5] dialog box. Set the address condition as H’2000 in the [Event Condition 4] dialog box. Set [I-Trace] as [Ch5 to Ch4 PtoP] in the [Combination action (Sequential or PtoP)] dialog box. When point-to-point and trace acquisition condition are set simultaneously, they are ANDed.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator • Halting a trace Do not set the trace end condition for the sleep instruction and the branch instruction that the delay slot becomes the sleep instruction. • Trace acquisition condition Do not set the trace end condition for the sleep instruction and the branch instruction according to which the delay slot becomes the sleep instruction.
Section 2 Software Specifications when Using the Emulator SuperH™ Family E10A-USB Emulator • Writing memory immediately before generating a break If an instruction is executed to write memory immediately before generating a break, trace acquisition may not be performed. • Internal trace function is not available for the SH72546R, SH72544R, SH72543R, and SH72531. (3) AUD Trace Functions This function is operational when the AUD pin of the device is connected to the emulator. Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator To set the AUD 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 [AUD mode1] or [AUD mode2] group box in the [Trace mode] page of the [Acquisition] dialog box. Figure 2.3 [Trace mode] Page REJ10J1941-0300 Rev. 3.
Section 2 Software Specifications when Using the Emulator SuperH™ Family E10A-USB Emulator When the AUD trace function is used, select the [AUD function] radio button in the [Trace type] group box of the [Trace mode] page. (a) Branch Trace Function The branch source and destination addresses and their source lines are displayed. Branch trace can be acquired by selecting the [Branch trace] check box in the [AUD function] group box of the [Trace mode] page.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Figure 2.4 [AUD Branch trace] Page (b) Window Trace Function Memory access in the specified range can be acquired by trace. Two memory ranges can be specified for channels A and B. The read, write, or read/write cycle can be selected as the bus cycle for trace acquisition. REJ10J1941-0300 Rev. 3.
Section 2 Software Specifications when Using the Emulator SuperH™ Family E10A-USB Emulator [Setting Method] (i) Select the [Channel A] and [Channel B] check boxes in the [AUD function] group box of the [Trace mode] page. Each channel will become valid. (ii) Open the [Window trace] page and specify the bus cycle, memory range, and bus type that are to be set for each channel. Figure 2.5 [Window trace] Page Note: When [M-Bus] or [I-Bus] is selected, the following bus cycles will be traced.
SuperH™ Family E10A-USB Emulator (c) Section 2 Software Specifications when Using the Emulator Software Trace Function Note: This function can be supported with SHC/C++ compiler (manufactured by Renesas Electronics Corp.; including OEM and bundle products) V7.0 or later. When a specific instruction is executed, the PC value at execution and the contents of one general register are acquired by trace. Describe the Trace(x) function (x is a variable name) to be compiled and linked beforehand.
Section 2 Software Specifications when Using the Emulator SuperH™ Family E10A-USB Emulator 9. The CPU clock ratios 1:1 and 1:2 cannot be used for the AUD clock (AUDCK) with the SH72546RFCC, SH72546R, SH72544R, SH72543R, or SH72531RFCC as the target device. 2.2.3 Notes on Using the JTAG (H-UDI) Clock (TCK) 1. Set the JTAG clock (TCK) frequency to lower than the frequency of the peripheral module clock. 2. The initial value of the JTAG clock (TCK) is 10 MHz. 3.
SuperH™ Family E10A-USB Emulator 2.2.5 Section 2 Software Specifications when Using the Emulator Notes on Setting the [Event Condition] Dialog Box and the BREAKCONDITION_ SET Command 1. When [Go to cursor], [Step In], [Step Over], or [Step Out] is selected, the settings of Event Condition 3 are disabled. 2. When an Event Condition is satisfied, emulation may stop after two or more instructions have been executed. 2.2.
Section 2 Software Specifications when Using the Emulator (a) SuperH™ Family E10A-USB Emulator Specifying the Measurement Start/End Conditions The measurement start/end conditions are specified by using Event Condition 1,2. The [Ch1,2,3] list box of the [Combination action (Sequential or PtoP)] dialog box can be used. Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Regarding Errors in Measurement Errors in the results of the performance measurement function for numbers of cycles of execution are incurred immediately before the start of execution and immediately after a break. The errors differ according to the conditions that are in use. The procedure for evaluating the error is described below.
Section 2 Software Specifications when Using the Emulator SuperH™ Family E10A-USB Emulator Table 2.16 Measurement Item Selected Name Option Disabled None Elapsed time AC (The number of execution cycles (Iφ).
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Notes: 1. In the non-realtime trace mode of the AUD trace, normal counting cannot be performed because the generation state of the stall or the execution cycle is changed. 2. For SH72546RFCC, SH72531FCC, or SH72531RFCC do not set measurement items for the cache-miss counts, cacheable area, or non-cacheable area. 3.
Section 2 Software Specifications when Using the Emulator 2.2.7 SuperH™ Family E10A-USB Emulator Emulation RAM Setting Function The emulation RAM can be set in the [Memory Mapping] dialog box which is opened by selecting [Setup] -> [Emulator] -> [Memory…] from the menu. The emulator incorporates 8-block emulation RAM in each 64-kbyte unit, which can be set in each 64-kbyte boundary within the address ranges from H’00000000 to H’001FFFFF.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator The contents of the [Memory Mapping] dialog box are shown below. [Mode] [User] The emulator does not use the emulation RAM. [Emulator] The emulator uses the emulation RAM. [Edit…] Open the dialog box for setting [Memory Mapping] to change the address ranges and attributes of the emulation RAM. [ERAM Setting] [Reset] Reset the selected emulation RAM as default.
Section 2 Software Specifications when Using the Emulator SuperH™ Family E10A-USB Emulator The contents of the dialog box for setting [Memory Mapping] are shown below. [From:] Enter the start address for the ranges. [Setting:] [ERAM to FLASH] Reflect the contents of the emulation RAM in the internal flash memory when address allocation is cancelled. [ERAM not to FLASH] Reflect no contents of the emulation RAM in the internal flash memory when address allocation is cancelled.
SuperHTM Family E10A-USB Emulator Additional Document for User's Manual Supplementary Information on Using the SH72546RFCC, SH72546R, SH72544R, SH72543R, SH72531RFCC, SH72531FCC, and SH72531 Publication Date: Rev.1.00, November 18, 2008 Rev.3.
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 SH72546RFCC, SH72546R, SH72544R, SH72543R, SH72531RFCC, SH72531FCC, and SH72531 REJ10J1941-0300