Evaluation kit for ra4e2 microcontroller group (36 pages)
Summary of Contents for Renesas SuperH E10A-USB
Page 1
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. Please review the latest information published by Renesas Electronics Corporation through various means, including the Renesas Electronics Corporation website (http://www.renesas.com).
Page 2
Renesas Electronics products are not subject to radiation resistance design. Please be sure to implement safety measures to guard them against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a Renesas Electronics product, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures.
Page 3
As part of our commitment to environmental responsibility Renesas also offers to take back the equipment and has implemented a Tools Product Recycling Program for customers in Europe. This allows you to return equipment to Renesas for disposal through our approved Producer Compliance Scheme.
Table of Contents Section 1 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 ..................4 Pin Assignments of the H-UDI Port Connector ......................
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System Section 1 Connecting the Emulator with the User System Components of the Emulator The E10A-USB emulator supports the SH7256R Group. Table 1.1 lists the components of the emulator. R20UT2167EJ0100 Rev.
Page 6
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System Table 1.1 Components of the Emulator Classi- Quan- fication Component Appearance tity Remarks Hard- Emulator box HS0005KCU01H: ware Depth: 65.0 mm, Width: 97.0 mm, Height: 20.0 mm, Mass: 72.9 g HS0005KCU02H: Depth: 65.0 mm, Width: 97.0 mm, Height: 20.0 mm, Mass: 73.7 g...
SuperH™ Family E10A-USB Emulator 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.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System 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...
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 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 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...
Page 10
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System Input/ Input/ SH7256R SH7256R No. Signal Signal Output Output Pin No. Pin No. Note Note Input Output AUDCK Input Output AUDATA0 TRST# Output Input AUDATA1 AUDATA2 Output Output N.C.
Page 11
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System Input/ SH7256R Note Pin No. Signal Output* Pin No. Input TRST# Input Output N.C. Input Input RES# User reset Output N.C. UVCC Output 10, 12, and 13 Output Notes: 1.
Page 12
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System Input/ Input/ SH7256R SH7256R Signal No. Signal Note Output Output Note Pin No. Pin No. N.C. N.C. TRST# Input N.C. N.C. N.C. N.C. N.C. UCON# (GND) AUDATA3 Output Output AUDCK...
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System Recommended Circuit between the H-UDI Port Connector and the 1.5.1 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.
Page 14
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System When the circuit is connected as shown in figure 1.5, the switches of the emulator are set as SW2 = 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.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System CAUTION Do not allow the emulator to issue a reset signal unless the output of the reset circuit in use is open-drain. If this is not the case, conflict between signals will damage the user system.
Page 16
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System When the circuit is connected as shown in figure 1.6, the switches of the emulator are set as SW2 = 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.
Page 17
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System CAUTION Do not allow the emulator to issue a reset signal unless the output of the reset circuit in use is open-drain. If this is not the case, conflict between signals will damage the user system.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System 1.5.3 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.
Page 19
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System When the circuit is connected as shown in figure 1.7, the switches of the emulator are set as SW2 = 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.
Page 20
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System CAUTION Do not allow the emulator to issue a reset signal unless the output of the reset circuit in use is open-drain. If this is not the case, conflict between signals will damage the user system.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Section 2 Software Specifications when Using the Emulator Differences between the SH7256R 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.
Page 22
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the 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. ⎯...
Page 23
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Table 2.3 Stopping Time by Memory Access (Reference) Method Condition Stopping Time H-UDI read/write Reading of one longword for the Reading: Maximum three bus clocks internal RAM (Bφ) Writing of one longword for the Writing: Maximum two bus clocks internal RAM...
Page 24
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator 8. ROM Cache For ROM cache in the MCU, the emulator operates as shown in table 2.4. Table 2.4 Operation for ROM Cache Function Operation Write and erase of the flash memory Writes or erases all contents of ROM cache.
Page 25
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Table 2.5 Watchdog Timer Register Register Name Usage Register WTCR(W) Write Watchdog timer control register WTCNT(W) Write Watchdog timer counter WTCR(R) Read Watchdog timer control register WTCNT(R) Read Watchdog timer counter WTSR(W) Write...
Page 26
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. Reset Input During execution of the user program, the emulator may not operate correctly if a contention occurs between the following operations for the emulator and the reset input to the target device: ⎯...
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Specific Functions for the Emulator when Using the SH7256R 2.2.1 Intelligent Flash Security (IFS): Setting and Resetting of Key Codes This emulator supports the functions to set and reset key codes for intelligent flash security (IFS). Note: For details on the current security setting and actions triggered by setting or resetting of key codes, refer to the hardware manual or related technical documents for the MCU.
Page 28
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Enter a key code in the [Set key code] field of the [Set key code] dialog box and click on the [OK] button. This issues the ‘key code set’ command in the FCU. Figure 2.3 [Set key code] Dialog Box [Current security Shows the current state of security setting indicated by the IFS status register...
Page 29
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Resetting a Key Code Select [Setup -> Emulator -> Reset key code…] or click on the [Reset key code] toolbar button to open the [Current security setting] message box. Figure 2.4 [Setup ->...
Page 30
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Figure 2.6 [Confirmation Request] Message Box [Current security setting] Shows the current state of security setting indicated by the IFS status register (IFSSR). The indicated value, however, is invalid in the on-chip ROM disabled mode.
Page 31
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Entering a Key Code for Authentication When you use the function to set or reset a key code in the ‘Protected-locked (security level 1)’ state, authentication requires the previous key code that was authenticated or set by the emulator. If the authentication of the previous key code fails, the [Enter key code] dialog box appears.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator 2.2.2 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.
Page 33
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Table 2.7 Dialog Boxes for Setting Event Conditions Function Address Bus Data Bus Bus State Count Condition Condition Condition (Bus Condition Dialog Box (Address) (Data) Status) (Count) Action [Event Condition 1] (B, T1, and P)
Page 34
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the 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...
Page 35
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 Ch1 to Ch2 PA* Sets the performance measurement period during (cont) 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).
Page 36
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the 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 to section 6, Tutorial, in the SuperH Family E10A-USB Emulator User’s Manual.
Page 37
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Figure 2.8 [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.
Page 38
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the 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φ).
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator 2.2.3 Trace Functions The emulator supports the trace functions listed in table 2.9. Table 2.9 Trace Functions Function Internal Trace* AUD Trace Branch trace Not supported Supported Memory access trace Not supported Supported trace...
Page 40
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator AUD Trace Functions This function is operational when the AUD pin of the device is connected to the emulator. Table 2.11 shows the AUD trace acquisition mode that can be set in each trace function. Table 2.11 AUD Trace Acquisition Mode Type Mode...
Page 41
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Figure 2.9 [Trace mode] Page When the AUD trace function is used, select the [AUD function] radio button in the [Trace type] group box of the [Trace mode] page. R20UT2167EJ0100 Rev.
Page 42
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator 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.
Page 43
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Figure 2.10 [AUD Branch trace] Page 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.
Page 44
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the 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.
Page 45
• I-Bus: A bus cycle generated by the CPU or DMA is acquired. 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.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator immediately before such breaks. However, this does not affect on generation of breaks caused by a BREAKPOINT and a break before executing instructions of Event Condition. 8. The CPU clock ratios 1:1 and 1:2 cannot be used for the AUD clock (AUDCK). 2.2.4 Notes on Using the JTAG (H-UDI) Clock (TCK) 1.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator 2.2.6 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.
Page 48
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the Emulator Figure 2.12 [Memory Mapping] Dialog Box R20UT2167EJ0100 Rev. 1.00 Page 44 of 46 Aug 09, 2012...
Page 49
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. [ERAM Setting] [Edit…] Open the dialog box for setting [Memory Mapping] to change the...
Page 50
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the 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 Reflect the contents of the emulation RAM in the internal flash FLASH] memory when address allocation is cancelled.
Page 51
SuperH™ Family E10A-USB Emulator Additional Document for User’s Manual Supplementary Information on Using the SH7256R Group SH72567R and SH72567BFCC Publication Date: Rev.1.00, August 9, 2012 Published by: Renesas Electronics Corporation...
Page 52
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...
Page 54
SuperH™ Family E10A-USB Emulator Additional Document for User’s Manual Supplementary Information on Using the SH7256R Group SH72567R and SH72567BFCC R20UT2167EJ0100...
Need help?
Do you have a question about the SuperH E10A-USB and is the answer not in the manual?
Questions and answers