background image

 

 

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. 

 

"#" at the end of a pin name (signal name) 

"#" at the end of a pin name (signal name) indicates that the pin (signal) is active low (e.g., RES#). 

 
 

Summary of Contents for E2 Emulator

Page 1: ...ained 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 ...

Page 2: ...ons 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 hi...

Page 3: ...put signal during power off state as described in your product documentation 4 Handling of unused pins Handle unused pins in accordance with the directions given under handling of unused pins in the manual The input pins of CMOS products are generally in the high impedance state In operation with an unused pin in the open circuit state extra electromagnetic noise is induced in the vicinity of the ...

Page 4: ... Circuits of the Emulator 16 2 6 1 Internal Circuits of the E2 16 2 6 2 Internal Circuits of the E2 Lite 17 3 Notes on Usage 18 3 1 Turning the Power On Off 18 3 1 1 When a Separate Power Supply is Used for the User System 18 3 1 2 When Power is Supplied to the User System from the Emulator 19 3 2 Power Supply Function of the E2 E2 Lite 19 3 3 Notes on Using the Emulator Debugger 20 3 3 1 Notes on...

Page 5: ...ans 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 at the end of a pin name signal name at the end of a pin name signal name indicates that the pin signal is active low e g RES ...

Page 6: ...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 ...

Page 7: ...ess four points data access two points Forced break Trace Information acquired Branch source PC values branch destination PC values occurrence of interrupts and return from interrupts Start event Start of user program execution End events Stopping the user program and trace memory becoming full Performance measurement Measurement item Between start and stop of user program execution Hot plug in Ex...

Page 8: ...pe 10 pin 1 27 mm pin pitch connector FTSH 105 01 L DV without a marking for matching the position of the connector keying shroud Samtec 10 pin SMT straight type Note When using a connector without a guide marking keying shroud type take care with regard to the direction for insertion of the cable Table 2 2 User System Interface Cables Cable Type E2 E2 Lite 20 pin to 20 pin cable for the 20 pin 1 ...

Page 9: ...ce cable with the 20 pin 1 27 mm pin pitch connector Figure 2 1 Connecting the User System Interface Cable to the 20 Pin Connector of the E2 E2 Lite CAUTION Notes on connector insertion and removal When connecting or disconnecting the user system interface cable and the emulator or user system grasp the connector cover at the end of the cable Pulling the cable itself will damage the wiring Also be...

Page 10: ...ifications Figure 2 2 shows the specifications of the 20 pin and 10 pin connectors Table 2 3 shows the pin assignments of the 20 pin and 10 pin connectors for SWD interface connection 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 Figure 2 2 20 Pin and 10 Pin Connector Specifications ...

Page 11: ...ata for flash programming 5 GND 3 6 NC 7 NC 8 NC 9 GND 3 10 RES I O User system reset 11 NC 4 12 NC 4 13 NC 4 14 NC 4 15 GND 3 4 16 NC 4 17 GND 3 4 18 NC 4 19 GND 3 4 20 NC 4 Notes 1 These are the names of the MCU pins at the time the E2 E2 Lite is connected i e during debugging 2 Input to or output from the user system 3 Securely connect pins 3 5 9 15 17 and 19 of the connector to GND on the user...

Page 12: ...h connector VCC SWCLK RxD SWDIO TxD RES GND Pull up at 4 7 kΩ to 10 kΩ 3 5 9 15 17 19 1 10 4 1 RES VCC Not connected 6 7 8 11 12 13 14 16 18 20 1 MCU VCC VCC 2 Figure 2 3 Example of Connection between the 20 Pin and 10 Pin Connectors and the MCU in SWD Interface Connection Notes 1 If a 10 pin 1 27 mm pin pitch connector is mounted on the user system pins 11 to 20 are not used 2 The output of the r...

Page 13: ...f the user system includes a user logic reset circuit the output signal from the reset circuit must be connected to the RES pin of the connector via an open collector buffer as shown below If there is no reset circuit the RES pin from the connector must be directly connected to the RES pin of the MCU When a reset circuit is included When a reset circuit is not included VCC 4 7 kΩ to 10 kΩ RES Conn...

Page 14: ...the contents of flash memory are being rewritten by the programming software the MD pin must be handled so that it is switched to the low level The circuit for the MD pin of the MCU includes a pull up resistor MCU MD 4 7 kΩ to 10 kΩ Figure 2 5 Connection of the MD Pin 2 5 3 EHMD Pin In debugging with the E2 E2 Lite the MCU cannot enter the energy harvesting mode The EHMD pin must be handled so tha...

Page 15: ...upply of the host machine and as such precision is not guaranteed When writing a program that requires reliability do not use the power supply function of the E2 E2 Lite Use a stable separate power supply for the user system As the software when writing a program in a mass production process use the Renesas Flash Programmer For details on the programming software refer to the following Renesas Fla...

Page 16: ...erface 74LVC1T45 74LVC1T45 74LVC8T245 3 3 V Emulator control circuit 47 Ω NFL21SP Noise filter 47 Ω Noise filter 1 MΩ x 2 47 Ω VCC SWCLK RxD 1 Power supply circuit only for use in the mode to supply power to the user system User side connector 4 2 SWDIO TxD 9 10 3 5 15 17 19 GND 100 kΩ GND RES Self recovering fuse 100 kΩ 3 3 V 74LVC1T45 74LVC1T45 0 1 uF NFL21SP Figure 2 7 Internal Circuits of the ...

Page 17: ...a the SWD interface 74LVC125 74LVC8T245 74LVC125 3 3 V Emulator control circuit 74LVC8T245 3 3 V VCC 1 2 4 9 10 3 5 15 17 19 GND 100 kΩ SWCLK GND RES SWDIO 74LVC125 47 Ω 100 kΩ x 3 Power supply circuit only for use in the mode to supply power to the user system User side connector 47 Ω 47 Ω 47 Ω Self recovering fuse Figure 2 8 Internal Circuits of the E2 Lite with the MCU Connected via the SWD Int...

Page 18: ...ystem Turn on the user system 6 Connect the emulator debugger or programming software to the emulator Connections may vary depending on software When finished using the emulator 1 Disconnect the emulator from the emulator debugger or programming software Disconnections may vary depending on software 2 Turn off the user system Turn off the user system 3 Close the emulator debugger or programming so...

Page 19: ...ow Figure 3 1 Setting for Supplying Power 4 Connect the emulator debugger or programming software to the emulator Connections may vary depending on software When finished using the emulator 1 Disconnect the emulator from the emulator debugger or programming software Disconnections may vary depending on software 2 Close the emulator debugger or programming software Close the emulator debugger or pr...

Page 20: ...s Window 3 3 1 Notes on Connecting the Emulator Debugger 1 Reset state Under Connection on the Connection Settings tabbed page be sure to select Yes for Hold reset during connect the operation is explained for the case when the e2 studio is in use When Yes is selected during connection to the emulator debugger the emulator maintains the low level output on the RES pin of the MCU and places the MCU...

Page 21: ... the operation is explained for the case when the e2 studio is in use For example when the following values have been secured enter 00112233445566778899aabbccddeeff const unsigned long __OSISreg 4 0x00112233 0x44556677 0x8899aabb 0xccddeeff Figure 3 5 Setting of ID Code Bytes 4 Entering the ALeRASE command for ID code If an ALeRASE command is entered in ID Code Bytes under Connection on the Connec...

Page 22: ...t Work RAM Start Address under Flash on the Debug Tool Settings tabbed page for the emulator debugger the operation is explained for the case when the e2 studio is in use Note The DMAC or DTC will continue to operate even during a break Take care that a transfer source or destination for the DMAC or DTC is not within the address range of the working RAM where the program is to be allocated Figure ...

Page 23: ...ea which has been specified for the security MPU for Flash in the Debug Tool Settings tabbed page of the emulator debugger select Yes for Erase on chip program flash before download the operation is explained for the case when the e2 studio is in use Figure 3 8 Setting of Erase on chip program flash before download 6 Access window function When the access window function of the MCU is to be used o...

Page 24: ...iting of software breakpoints by user programs If a software breakpoint is overwritten by a user program the program will not stop even if it runs through the address In such a case set the software breakpoint after the target on chip SRAM has been rewritten by the program 3 3 4 Notes on Using Software Breaks Common to the On Chip SRAM and Flash Memory 1 Setting software breakpoints in a secure ar...

Page 25: ...rea For details on the address where the on chip SRAM starts refer to the hardware manual for the given MCU If the size of the trace recording area for the emulator debugger is changed the startup routine must also be changed 3 3 7 Notes on Low Power Modes 1 Debugging in SSTBY or SNOOZE mode In SSTBY or SNOOZE mode the emulator debugger does not have access to the system bus of the MCU While the u...

Page 26: ...PWON or EXFPWON mode the state of flash memory to which power has been shut down cannot be confirmed even if contents of code flash memory are being displayed on the emulator debugger Program data that have been downloaded continue to be displayed by the emulator debugger To confirm the transition to MINPWON or EXFPWON mode refer to the status register 3 Current drawn during debugging Since the de...

Page 27: ...e Used in Debugging After debugging with the E2 E2 Lite if the MCU is disconnected from the emulator and run on its own correct operation cannot be guaranteed To operate the MCU on its own use the programming software to re program the MCU MCUs that are connected to the E2 E2 Lite and used in debugging are placed under stress by repeated programming of flash memory during emulation Do not use MCUs...

Page 28: ...Revision History E2 Emulator E2 Emulator Lite Additional Document for User s Manual Notes on Connection of RE Devices Rev Date Description Page Summary 1 00 Jul 16 19 ...

Page 29: ...E2 Emulator E2 Emulator Lite Additional Document for User s Manual Notes on Connection of RE Devices Publication Date Rev 1 00 Jul 16 19 Published by Renesas Electronics Corporation ...

Page 30: ...R20UT4582EJ0100 E2 Emulator E2 Emulator Lite Additional Document for User s Manual Notes on Connection of RE Devices ...

Reviews: