EasyManua.ls Logo

Renesas E2 Emulator - User Manual

Renesas E2 Emulator
30 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Loading...
E2 Emulator, E2 Emulator Lite
Additional Document for Users Manual
(Notes on Connection of RE Devices)
Supported Devices:
RE Family
Rev.1.00 Jul 2019
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 Corp. without notice. Please review the latest information published by
Renesas Electronics Corp. through various means, including the Renesas Electronics Corp.
website (http://www.renesas.com).

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Renesas E2 Emulator and is the answer not in the manual?

Summary

General Precautions for Microprocessing and Microcontroller Units

Overview of E2 and E2 Lite Emulators

E2 and E2 Lite Emulator Capabilities

Describes E2 and E2 Lite as on-chip debugging emulators for Renesas MCUs.

Designing the User System

Connecting Emulator to User System

Requirements for connecting the E2/E2 Lite to the user system via an interface cable.

Connector Installation on User System

Lists recommended connectors and interface cables for E2/E2 Lite system connection.

Connecting 20-Pin User System Interface Cable

Illustrates how to connect the user system interface cable to the E2/E2 Lite's 20-pin connector.

Connector Pin Assignments for User System

Shows specifications and pin assignments for 20-pin and 10-pin connectors used for SWD.

SWD Interface Pin Assignments (20-Pin & 10-Pin)

Details pin assignments for 20-pin and 10-pin connectors for SWD interface connection.

Recommended Circuit for Connector-MCU Connection

Presents recommended circuits for connecting the E2/E2 Lite connector to the MCU.

SWD Interface Circuit Connection

Shows a recommended circuit for SWD interface connection between connectors and MCU.

Connection Notes and Precautions

Provides important notes and wiring pattern recommendations for connecting the emulator.

RES# Pin Connection Details

Explains connection requirements for the RES# pin, with or without a reset circuit.

VCC Connection and Power Supply

Connects VCC and details E2/E2 Lite power supply capabilities and usage notes.

Notes on Emulator Usage

Power On;Off Procedures

Step-by-step procedures for safely turning the emulator and user system power on and off.

Emulator Debugger Usage Notes

Guidance on using the e² studio's debugger, including configuration and connection settings.

Connecting the Emulator Debugger

Notes on connecting the debugger, including reset state, startup mode, ID code, and ALeRASE command.

Flash Memory Reprogramming During Debugging

Details debugging operations involving flash memory reprogramming, allocation, conditions, secure area downloads, and flash breakpoints.

Overview

The Renesas E2 Emulator and E2 Emulator Lite are on-chip debugging emulators designed for Renesas' mainstream MCUs, specifically supporting the RE Family. These tools facilitate the development and debugging of user programs on target microcontrollers.

Function Description:

The E2 Emulator and E2 Emulator Lite serve as essential development tools for debugging and programming Renesas MCUs. The E2 Lite provides basic debugging functionalities, making it a highly affordable option. The E2 Emulator, in addition to the E2 Lite's features, offers enhanced capabilities such as high-speed downloading (up to twice the rate of the E2 Lite) and adjustable power supply to the user system (from 1.8 V to 5.0 V at 0.1-V intervals). The E2 Emulator can also function as a Flash Programmer, allowing for the programming of flash memory.

Both emulators connect to a host machine (personal computer) via a USB interface cable and to the user system (the application system with the MCU to be debugged) via a user-system interface cable. The debugging process involves using programming software, such as the Renesas Flash Programmer, and an emulator debugger (e.g., e² studio) to control and monitor the MCU.

Key debugging functions supported include:

  • Memory Reference or Change: Allows viewing and modifying memory contents during program execution.
  • Breaks: Supports software breaks (2000 points), hardware breaks (execution address: four points; data access: two points), and forced breaks.
  • Trace Function: Acquires information such as branch-source PC values, branch-destination PC values, interrupt occurrences, and return from interrupts. Trace recording can be started by user-program execution and ended by stopping the user program or when trace memory becomes full.
  • Performance Measurement: Measures performance between the start and stop of user program execution.
  • Hot Plug-in: Supported for seamless connection and disconnection.

The E2 Emulator also offers extended functions not available in the E2 Lite, such as:

  • Solution for Tuning Current Consumption: Measures current consumption by the user system when power is supplied from the E2.
  • External Trigger Input/Output: Allows external triggers to be input to or output from the E2 expansion interface.

Important Technical Specifications:

  • Supported Devices: RE Family MCUs.
  • Interface: SWD I/F (Serial Wire Debug Interface) for debugging (DBG) and SCI I/F (Serial Communication Interface) for flash programming (PRG) on the E2. The E2 Lite supports SWD I/F for debugging but does not support SCI I/F for flash programming.
  • Power Supply to User System:
    • E2: Can supply power from 1.8 V to 5.0 V, up to 200 mA.
    • E2 Lite: Can supply power of 3.3 V, up to 200 mA.
    • Operating voltage range for the emulator itself is 1.8 V to 5.5 V.
  • Current Consumption (when user system is powered externally):
    • E2: Approximately 20 mA at 3.3 V, 40 mA at 5.0 V.
    • E2 Lite: Approximately 20 mA at 3.3 V, 40 mA at 5.0 V.
  • Connector Types:
    • 20-pin (1.27-mm pin pitch) connector (Samtec FTSH-110-01-L-DV-K)
    • 10-pin (1.27-mm pin pitch) connector (Samtec FTSH-105-01-L-DV-K or FTSH-105-01-L-DV)
  • Interface Cables:
    • 20-pin to 20-pin cable (comes with E2, separately sold for E2 Lite)
    • 20-pin to 10-pin cable (separately sold for both E2 and E2 Lite)
  • Recommended Circuitry: Signal lines between the connector and the MCU should be as short as possible (within 50 mm). No capacitors, series resistors, or filters should be installed on signal lines to ensure correct communication.
  • Reset Pin (RES#): The output of the user system's reset circuit must be an open collector if a user logic reset circuit is included. If not, the RES# pin from the connector should be directly connected to the MCU's RES# pin.
  • MD Pin: Connection is optional. Set to high level for debugging, low level for flash memory rewriting. The MCU's MD pin circuit includes a pull-up resistor.
  • EHMD Pin: Must be switched to low level during debugging as the MCU cannot enter energy harvesting mode.
  • GND Pins: Must be securely connected to the VSS pin of the MCU and be at the same ground level.
  • Flash Programming Conditions: Requires the MCU to be in "all power supplied mode" (ALLPWON), "normal power control mode" (NORMAL), and code flash memory in "read mode." The system clock frequency (ICLK) must be 1 MHz or higher, and the flash memory function stop bit (FLFSTP) in FSTPCR must be 0.
  • Software Breakpoints: Can be set in flash memory under specific MCU conditions (ALLPWON, NORMAL, read mode, ICLK ≥ 1 MHz, FLFSTP = 0, and "Use Flash Breakpoints" enabled). Do not set in secure areas or read addresses where breakpoints are set during user program execution.
  • Peripheral I/O Registers Occupied by Debugger: DBGSTOPCR, MTB (SFR area), SYOCDCR. These registers should not be modified during debugging.
  • Memory Protection Units (MPUs):
    • Arm® MPU: Protected area is not accessible.
    • Bus master MPU: Accessible.
    • Slave MPU: Accessible.
    • Security MPU: On-chip SRAM/peripheral I/O registers: Reading returns dummy value (0x00), writing is ignored. Flash memory: Reading returns dummy value (0x00), writing is possible if data are downloaded.

Usage Features:

  • Power On/Off Procedure: A specific sequence must be followed when turning on/off the emulator, host machine, and user system, especially when a separate power supply is used for the user system or when power is supplied from the emulator.
  • Power Supply Function: The E2/E2 Lite can supply power to a simple evaluation system. However, for programs requiring high reliability, a stable, separate power supply for the user system is recommended.
  • Debugging Configurations: The e² studio debugger allows for detailed configuration of connection settings, including holding reset during connect, specifying ID code for debugging after rewriting, and setting the work RAM start address for flash reprogramming.
  • Flash Memory Reprogramming: The emulator debugger can reprogram flash memory for debugging operations, writing a temporary program to on-chip SRAM to facilitate this.
  • Low-Power Modes: Debugging in SSTBY or SNOOZE mode has limitations, as the emulator debugger cannot access the system bus. Forcedly stopping a program in these modes will release the MCU from the low-power state. DSTBY mode debugging is not supported.
  • Power Control Modes: Transitions to boost mode are not possible during debugging. The PLL cannot be used as the MCU's operating clock during debugging.
  • Trace Function: The MTB trace function uses the on-chip SRAM for trace recording. Users must ensure that the trace recording area does not conflict with the user program's use of SRAM.

Maintenance Features:

  • Connector Handling: Always grasp the connector cover when connecting or disconnecting cables to prevent damage to the wiring. Ensure correct cable insertion direction.
  • ESD Precautions: CMOS devices are sensitive to electrostatic discharge. Measures such as using anti-static containers, grounding tools and operators, and maintaining environmental control (e.g., humidifiers) are crucial.
  • Product Reliability: Renesas products are classified as "Standard" or "High Quality." Users must ensure that the product's quality grade and usage conditions (maximum ratings, operating voltage, heat dissipation, etc.) are appropriate for their application.
  • Final Evaluation: Before mass production, a final evaluation of the user program written to flash ROM should be performed without the E2/E2 Lite connected to ensure correct operation.
  • MCU Re-programming: After debugging, if the MCU is to run independently, it must be re-programmed using programming software to guarantee correct operation.
  • MCU Stress: MCUs used for debugging undergo stress from repeated flash memory programming. These MCUs should not be used in mass-production for end users.
  • Software Breakpoint Removal: All software breakpoints must be removed when disconnecting the emulator debugger, followed by a CPU reset to reprogram flash memory.

Renesas E2 Emulator Specifications

General IconGeneral
BrandRenesas
ModelE2 Emulator
CategoryComputer Hardware
LanguageEnglish

Related product manuals