Renesas E2 Emulator, E2 Emulator Lite User Manual

E2 Emulator, E2 Emulator Lite
Supported Devices:
Rev.1.00 Mar 2020
All information contained in these materials, including products and product specifications,
Corporation. website (http://www.renesas.com).
Additional Document for User’s Manual
(Notes on Connection of RA Devices)
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

Corporate Headquarters

Contact information

Trademarks

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 or any other use of the circuits, software, and information in the design of your product or system. Renesas Electronics disclaims any and all liability for any losses and damages incurred by you or third parties arising from the use of these circuits, software, or information.
2. Renesas Electronics hereby expressly disclaims any warranties against and liability for infringement or any other claims involving patents, copyrights, or other intellectual property rights of third parties, by or arising from the use of Renesas Electronics products or technical information described in this document, including but not limited to, the product data, drawings, charts, programs, algorithms, and application examples.
3. No license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights of Renesas Electronics or others.
4. You shall not alter, modify, copy, or reverse engineer any Renesas Electronics product, whether in whole or in part. Renesas Electronics disclaims any and all liability for any losses or damages incurred by you or third parties arising from such alteration, modification, copying or reverse engineering.
5. Renesas Electronics products are classified according to the following two quality grades: “Standard” and “High Quality”. The intended applications for each Renesas Electronics product depends on the product’s quality grade, as indicated below. "Standard": Computers; office equipment; communications equipment; test and measurement equipment; audio and visual equipment; home
"High Quality": Transportation equipment (automobiles, trains, ships, etc.); traffic control (traffic lights); large-scale communication equipment; key
Unless expressly designated as a high reliability product or a product for harsh environments in a Renesas Electronics data sheet or other Renesas Electronics document, Renesas Electronics products are not intended or authorized for use in products or systems that may pose a direct threat to human life or bodily injury (artificial life support devices or systems; surgical implantations; etc.), or may cause serious property damage (space system; undersea repeaters; nuclear power control systems; aircraft control systems; key plant systems; military equipment; etc.). Renesas Electronics disclaims any and all liability for any damages or losses incurred by you or any third parties arising from the use of any Renesas Electronics product that is inconsistent with any Renesas Electronics data sheet, user’s manual or other Renesas Electronics document.
6. When using Renesas Electronics products, refer to the latest product information (data sheets, user’s manuals, application notes, “General Notes for Handling and Using Semiconductor Devices” in the reliability handbook, etc.), and ensure that usage conditions are within the ranges specified by Renesas Electronics with respect to maximum ratings, operating power supply voltage range, heat dissipation characteristics, installation, etc. Renesas Electronics disclaims any and all liability for any malfunctions, failure or accident arising out of the use of Renesas Electronics products outside of such specified ranges.
7. Although Renesas Electronics endeavors to improve the quality and reliability of Renesas Electronics products, semiconductor products have specific characteristics, such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Unless designated as a high reliability product or a product for harsh environments in a Renesas Electronics data sheet or other Renesas Electronics document, Renesas Electronics products are not subject to radiation resistance design. You are responsible for implementing safety measures to guard against the possibility of bodily injury, injury or damage caused by fire, and/or danger to the public in the event of a failure or malfunction of Renesas Electronics products, 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. Because the evaluation of microcomputer software alone is very difficult and impractical, you are responsible for evaluating the safety of the final products or systems manufactured by you.
8. Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product. You are responsible for carefully and sufficiently investigating applicable laws and regulations that regulate the inclusion or use of controlled substances, including without limitation, the EU RoHS Directive, and using Renesas Electronics products in compliance with all these applicable laws and regulations. Renesas Electronics disclaims any and all liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations.
9. Renesas Electronics products and technologies shall not be used for or incorporated into any products or systems whose manufacture, use, or sale is prohibited under any applicable domestic or foreign laws or regulations. You shall comply with any applicable export control laws and regulations promulgated and administered by the governments of any countries asserting jurisdiction over the parties or transactions.
10. It is the responsibility of the buyer or distributor of Renesas Electronics products, or any other party who distributes, disposes of, or otherwise sells or transfers the product to a third party, to notify such third party in advance of the contents and conditions set forth in this document.
11. This document shall not be reprinted, reproduced or duplicated in any form, in whole or in part, without prior written consent of Renesas Electronics.
12. Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products.
(Note1) “Renesas Electronics” as used in this document means Renesas Electronics Corporation and also includes its directly or indirectly controlled
(Note2) “Renesas Electronics product(s)” means any product developed or manufactured by or for Renesas Electronics.
subsidiaries.
electronic appliances; machine tools; personal electronic equipment; industrial robots; etc.
financial terminal systems; safety control equipment; etc.
(Rev.4.0-1 November 2017)
TOYOSU FORESIA, 3-2-24 Toyosu, Koto-ku, Tokyo 135-0061, Japan
www.renesas.com
Renesas and the Renesas logo are trademarks of Renesas Electronics Corporation. All trademarks and registered trademarks are the property of their respective owners.
For further information on a product, technology, the most up-to-date version of a document, or your nearest sales office, please visit:
www.renesas.com/contact/
.
Table of Contents
1. Overview .......................................................................................................................... 5
1.1 Overview of E2 Emulator and E2 Emulator Lite ...................................................................................... 5
1.2 Configuration of E2/E2 Lite Manuals ....................................................................................................... 5
1.3 Preparation .............................................................................................................................................. 6
1.4 Supported Devices ................................................................................................................................... 6
2. Designing the User System ............................................................................................. 7
2.1 Connecting the Emulator with the User System ...................................................................................... 7
2.2 Installing the Connector on the User System .......................................................................................... 7
2.2.1 Connecting the User System Interface Cable to the 20-Pin Connector ........................................ 8
2.3 Pin Assignments of the Connector on the User System .......................................................................... 9
2.3.1 20-Pin and 10-Pin Connector Specifications ................................................................................. 9
2.4 Recommended Circuit between the Connector and the MCU............................................................... 12
2.4.1 SWD Interface Connection ........................................................................................................... 13
2.4.2 JTAG Interface Connection .......................................................................................................... 14
2.5 Notes on Connection ............................................................................................................................. 15
2.5.1 RES Pin ........................................................................................................................................ 15
2.5.2 MD Pin .......................................................................................................................................... 16
2.5.3 GND ............................................................................................................................................. 17
2.5.4 VCC .............................................................................................................................................. 17
2.5.5 RxD9 and TxD9 Pins (Flash Programming via an SCI) ............................................................... 17
2.6 Internal Circuits of the Emulator ............................................................................................................ 18
2.6.1 Internal Circuits of the E2 ............................................................................................................. 18
2.6.2 Internal Circuits of the E2 Lite ...................................................................................................... 19
3. Notes on Usage ............................................................................................................. 20
3.1 Turning the Power On/Off ...................................................................................................................... 20
3.1.1 When a Separate Power Supply is Used for the User System .................................................... 20
3.1.2 When Power is Supplied to the User System from the Emulator ................................................ 21
3.2 Power Supply Function of the E2/E2 Lite .............................................................................................. 21
3.3 Notes on Using the Emulator Debugger ................................................................................................ 22
3.3.1 Notes on Connecting the Emulator Debugger ............................................................................. 23
3.3.2 Notes on a Debugging Operation that Involves Reprogramming of Flash Memory .................... 24
3.3.3 Note on Using Software Breaks in the On-Chip SRAM ............................................................... 26
3.3.4 Notes on Using Software Breaks (Common to the On-Chip SRAM and Flash Memory) ............ 27
3.3.5 Note on Peripheral I/O Registers Occupied by the Debugger ..................................................... 27
3.3.6 Note on Using the Trace Function ............................................................................................... 27
3.3.7 Notes on Low-Power Modes ........................................................................................................ 28
3.3.8 Current Drawn during Debugging ................................................................................................ 28
3.3.9 Note on the Memory Protection Units (MPUs) ............................................................................. 29
3.4 MCUs that are Used in Debugging ........................................................................................................ 29
3.5 Final Evaluation of the User Program .................................................................................................... 29

Terminology

Some specific words used in this user's manual are defined below.
Host machine
This means a personal computer used to control the emulator.
User system
This means a user's application system in which the MCU to be debugged is used.
User program
This means the program to be debugged.
Programming Software
In this document, this indicates the Renesas Flash Programmer that can be used with the E2 or E2 Lite.
Emulator
In this document, this refers to the E2 or E2 Lite.
E2/E2 Lite Overview

1. Overview

1.1 Overview of E2 Emulator and E2 Emulator Lite

In this document, we describe ‘E2 Emulator’ as ‘E2’ and ‘E2 Emulator Lite’ as ‘E2 Lite’.
The E2 and E2 Lite are on-chip debugging emulators for Renesas' mainstream MCUs.
The E2 Lite is highly affordable development tools providing basic debugging functions. The E2 handles high­speed downloading at up to twice the rate of the E2 Lite. In addition, the E2 can supply power that is adjustable from 1.8 V to 5.0 V at 0.1-V intervals. As a development tool, the E2 allows more advanced debugging than the E2 Lite. The E2 and E2 Lite can also serve as a Flash Programmer.

1.2 Configuration of E2/E2 Lite Manuals

The E2/E2 Lite manual consists of the following.
E2 Emulator User’s Manual
E2 Emulator Lite User’s Manual
E2 Emulator, E2 Emulator Lite Additional Document for User’s Manual
Be sure to read each user’s manual before using the E2 or E2 Lite.
(1) E2 emulator user’s manual
The E2 emulator user’s manual has the following contents:
Components of the E2
E2 hardware specification
Connection to the E2 and the host machine and user system
(2) E2 Emulator Lite user’s manual
The E2 Emulator Lite user’s manual has the following contents:
Components of the E2 Lite
E2 Lite hardware specification
Connection to the E2 Lite and the host machine and user system
(3) E2 Emulator, E2 Emulator Lite Additional Documents for User's Manual (Notes on Connection of RA
Devices) (this document)
The E2 Emulator, E2 Emulator Lite Additional Documents for User's Manual (Notes on Connection of RA Devices) describes information necessary for hardware design such as connection examples and interface circuits.
(4) Renesas Flash Programmer Flash memory programming software User’s Manual
The Renesas Flash Programmer Flash memory programming software User’s Manual describes the specifications of the software and the method of operation for the Renesas Flash Programmer.
For the features and the method of operation of the E2 or E2 Lite emulator debugger, refer to the help
system for the e
2
studio.
R20UT4686EJ0100 Rev.1.00 Page 5 of 32 Mar.16.20
E2/E2 Lite Overview
E2
E2 Lite
SWD I/F
JTAG I/F
SCI I/F
SWD I/F
JTAG I/F
SCI I/F
*
DBG: Can be used for debugging, PRG: Can be used for flash programming

1.3 Preparation

Obtain an integrated development environment (IDE) and other required software from links at the following URL and install them on the host machine.
https://www.renesas.com/development-tools

1.4 Supported Devices

Table 1.1 Supported Device List
Supported Device
RA2 series DBG PRG DBG PRG
RA4 series DBG DBG PRG DBG PRG
RA6 series DBG DBG PRG DBG PRG
R20UT4686EJ0100 Rev.1.00 Page 6 of 32 Mar.16.20
E2/E2 Lite Designing the User System
Connector
Type Number
Manufacturer
Specifications
20-pin (1.27-mm pin
FTSH-110-01-L-DV-K
Samtec
20-pin surface-mount technology
10-pin (1.27-mm pin
FTSH-105-01-L-DV*
Samtec
10-pin SMT straight type
Cable Type
Type Number
E2
E2 Lite
20-pin to 10-pin cable
RTE0T00020KCAC1000J
Separately sold
Separately sold

2. Designing the User System

2.1 Connecting the Emulator with the User System

To connect the emulator, a connector for the user system interface cable must be mounted on the user system.
When designing the user system, read this section of this manual and the hardware manual for the MCUs.

2.2 Installing the Connector on the User System

Table 2.1 and Table 2.2 list the recommended connectors and user system interface cables for the emulator, respectively.
Table 2.1 Recommended Connectors
pitch) connector
10-pin (1.27-mm pin pitch) connector
pitch) connector
Note: When using a connector without a guide marking (keying-shroud type), take care with regard to the direction for
insertion of the cable.
FTSH-105-01-L-DV-K Samtec 10-pin SMT straight type
(without a marking for matching the position of the connector; keying shroud)
(SMT) straight type
Table 2.2 User System Interface Cables
20-pin to 20-pin cable*
(for the 20-pin (1.27-mm pin pitch) connector)
(for the 20-pin (1.27-mm pin pitch) connector)
Note: The 20-pin to 20-pin cable can be connected to the guideless 10-pin (1.27-mm pin pitch) connector; when doing
so, however, check the pin assignments and take care with regard to the direction for insertion of the cable.
RTE0T00020KCAC0000J Comes with the product Separately sold
Only connect the emulator after confirming that there are no mismatches of alignment on the user system port connector. Incorrect connection will result in the host machine, the emulator, and the user system emitting smoke or catching fire.
R20UT4686EJ0100 Rev.1.00 Page 7 of 32 Mar.16.20
E2/E2 Lite Designing the User System
User system
Connector: 20-pin (1.27-mm pin pitch) connector
Samtec type number: FTSH-110-01-L-DV-K
Pin 1
Pin 2
User system interface cable with the 20-pin (1.27-mm pin pitch) connector
Notes on connector insertion and removal:
When connecting or disconnecting the user-system interface cable and the emulator or user system,

2.2.1 Connecting the User System Interface Cable to the 20-Pin Connector

Figure 2.1 shows how to connect the user system interface cable to the 20-pin connector.
Figure 2.1 Connecting the User System Interface Cable to the 20-Pin Connector
CAUTION
grasp the connector cover at the end of the cable. Pulling the cable itself will damage the wiring.
Also, be aware that the user-system interface cable has the direction in which it must be inserted. If the cable is connected in the wrong direction, it may be damaged.
Correct example Incorrect example
R20UT4686EJ0100 Rev.1.00 Page 8 of 32 Mar.16.20
E2/E2 Lite Designing the User System
Pin 2
Pin 1
FTSH-110-01-L-DV-K
Pin 2
Pin 1
FTSH-105-01-L-DV-K
Pin 2
Pin 1
FTSH-105-01-L-DV
Unit: mm
5.56 5.56
3.43 3.43
12.70
6.35
6.35
5.56
3.43

2.3 Pin Assignments of the Connector on the User System

2.3.1 20-Pin and 10-Pin Connector Specifications

Figure 2.2 shows the specifications of the 20-pin and 10-pin (1.27-mm pitch) connectors.
Table 2.3 and Table 2.4 show the pin assignments for the SWD and JTAG interface connections, respectively.
Figure 2.2 20-Pin and 10-Pin Connector Specifications
R20UT4686EJ0100 Rev.1.00 Page 9 of 32 Mar.16.20
E2/E2 Lite Designing the User System
Pin
1
VCC
Power supply
3
GND
MD
For setting the operating mode
6
TxD9
Output
For programming flash memory
8
RxD9
Input
For programming flash memory
10
RES#
I/O
User system reset
12*2
NC –
14*2
NC –
16*2
NC –
18*2
NC –
20*2
NC –
Table 2.3 Pin Assignments for SWD Interface Connection
No.
2 SWDIO I/O For debugging communications
4 SWCLK Input Clock for debugging communications
5 GND
7 NC
9 UCON Connect this signal to ground on the user system.
11*2 NC
13*2 NC
15*2 GND
Signal Direction*1 Note
It is used to confirm the connection between the emulator and user system.
17*2 GND
19*2 GND
Notes: 1. Input to or output from the user system.
“Input” refers to input from the emulator to the user system and “output” refers to output from the user system to the emulator.
2. If a 10-pin connector is mounted on the user system, pins 11 to 20 are not used.
R20UT4686EJ0100 Rev.1.00 Page 10 of 32 Mar.16.20
Loading...
+ 22 hidden pages