
E8 Emulator
User's Manual R0E000080KCE00E
Renesas Microcomputer Development Environment System
Rev.10.00 Aug. 1, 2007

1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document. 2. Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document, including, but not limited to, product data, diagrams, charts, programs, algorithms, and application circuit examples. 3. You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use. When exporting the products or technology described herein, you should follow the applicable export control laws and regulations, and procedures required by such laws and regulations. 4. All information included in this document such as product data, diagrams, charts, programs, algorithms, and application circuit examples, 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 products listed in this document, please confirm the latest product information with a Renesas sales office. Also, please pay regular and careful attention to additional and different information to be disclosed by Renesas such as that disclosed through our website. (http://www.renesas.com ) 5. Renesas has used reasonable care in compiling the information included in this document, but Renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document. 6. When using or otherwise relying on the information in this document, you should evaluate the information in light of the total system before deciding about the applicability of such information to the intended application. Renesas makes no representations, warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and use of the information in this document or Renesas products. 7. With the exception of products specified by Renesas as suitable for automobile applications, Renesas products are not designed, manufactured or tested for applications or otherwise in systems the failure or malfunction of which may cause a direct threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems, or equipment or systems for transportation and traffic, healthcare, combustion control, aerospace and aeronautics, nuclear power, or undersea communication transmission. If you are considering the use of our products for such purposes, please contact a Renesas sales office beforehand. Renesas shall have no liability for damages arising out of the uses set forth above. 8. Notwithstanding the preceding paragraph, you should not use Renesas products for the purposes listed below: (1) artificial life support devices or systems (2) surgical implantations (3) healthcare intervention (e.g., excision, administration of medication, etc.) (4) any other purposes that pose a direct threat to human life Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas Technology Corp., its affiliated companies and their officers, directors, and employees against any and all damages arising out of such applications. 9. You should use the products described herein within the range specified by Renesas, especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation characteristics, installation and other product characteristics. Renesas shall have no liability for malfunctions or damages arising out of the use of Renesas products beyond such specified ranges. 10. Although Renesas endeavors to improve the quality and reliability of its products, IC products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Please be sure to implement safety measures to guard against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a Renesas 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 applicable measures. Among others, since the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system manufactured by you. 11. In case Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed, the risk of accident such as swallowing by infants and small children is very high. You should implement safety measures so that Renesas products may not be easily detached from your products. Renesas shall have no liability for damages arising out of such detachment. 12. This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written approval from Renesas. 13. Please contact a Renesas sales office if you have any questions regarding the information contained in this document, Renesas semiconductor products, or if you have any other inquiries.

This manual describes the followings
- E8 Emulator functions - Preparation before use - Debugger functions - Tutorial - Appendix: (Components of the E8 Emulator, Notes on High-performance Embedded
Workshop, and Diagnostic Test Procedure) This manual does not intend to explain how to write C/C++ or assembly language programs, how to use any particular operating system or how best to tailor code for the individual devices. These issues are left to the respective manuals.
Microsoft® and Windows® are registered trademarks of Microsoft Corporation. IBM is a registered trademark of International Business Machines Corporation. All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organizations.

Document Conventions This manual uses the following typographic conventions:
Table 1 Typographic Conventions
[Menu->Menu Option] Bold text with ‘->’ is used to indicate menu options (for example, [File->Save As...]).
FILENAME.C Uppercase names are used to indicate filenames.
“enter this string” Used to indicate text that must be entered (excluding the “” quotes).
Key + Key Used to indicate required key presses. For example, CTRL+N means press the CTRL key and then, whilst holding the CTRL key down, press the N key.
(The “how to” symbol)
When this symbol is used, it is always located in the left hand margin. It indicates that the text to its immediate right is describing “how to” do something.
Convention Meaning

Before using this product, be sure to read the user’s manual (this user's manual) carefully. Keep this user’s manual, and refer to this when you have questions about this product.
Emulator: The emulator in this document refers to the following products that are manufactured by Renesas Technology Corp.: (1) Emulator (2) User system interface cable The emulator herein does not include the customer’s user system and host machine.
Purpose of use of the emulator: This emulator is a device to support the development of a system that uses the Renesas MCUs. It provides support for system development in both software and hardware. Be sure to use this emulator correctly according to said purpose of use. Please avoid using this emulator for other than its intended purpose of use.
For those who use this emulator: This emulator can only be used by those who have carefully read the user’s manual and know how to use it. Use of this emulator requires the basic knowledge of electric circuits, logical circuits, and MCUs.
When using the emulator: (1) This product is a development supporting unit for use in your program development and
evaluation stages. In mass-producing your program you have finished developing, be sure to make a judgment on your own risk that it can be put to practical use by performing integration test, evaluation, or some experiment else. (2) In no event shall Renesas Solutions Corp. be liable for any consequence arising from the use
of this product. (3) Renesas Solutions Corp. strives to renovate or provide a workaround for product malfunction
at some charge or without charge. However, this does not necessarily mean that Renesas Solutions Corp. guarantees the renovation or the provision under any circumstances. (4) This product has been developed by assuming its use for program development and
evaluation in laboratories. Therefore, it does not fall under the application of Electrical Appliance and Material Safety Law and protection against electromagnetic interference when used in Japan. (5) Renesas Solutions Corp. cannot predict all possible situations or possible cases of misuse
where a potential danger exists. Therefore, the warnings written in this user’s manual and the warning labels attached to this emulator do not necessarily cover all of such possible situations or cases. Please be sure to use this emulator correctly and safely on your own responsibility. (6) This product is not qualified under UL or other safety standards and IEC or other industry
standards. This fact must be taken into account when taking this product from Japan to some other country.

Usage restrictions: This emulator has been developed as a means of supporting system development by users. Therefore, do not use it as a device used for equipment-embedded applications. Also, do not use it for developing the systems or equipment used for the following purposes either: (1) Transportation and vehicular (2) Medical (equipment where human life is concerned) (3) Aerospace (4) Nuclear power control (5) Undersea repeater If you are considering the use of this emulator for one of the above purposes, please be sure to consult your local distributor.
About product changes: We are constantly making efforts to improve the design and performance of this emulator. Therefore, the specification or design of this emulator or its user’s manual may be changed without prior notice.
About the rights: We assume no responsibility for any damage or infringement on patent rights or any other rights arising from the use of any information, products or circuits presented in this user’s manual. (1) We assume no responsibility for any damage or infringement on patent rights or any other
rights arising from the use of any information, products or circuits presented in this user’s manual. (2) The information or data in this user’s manual does not implicitly or otherwise grant a license
for patent rights or any other rights belonging to us or third parties. (3) This user’s manual and this emulator are copyrighted, with all rights reserved by us. This
user’s manual may not be copied, duplicated or reproduced, in whole or part, without prior written consent of us.
About diagrams: The diagrams in this user’s manual may not all represent exactly the actual object.
Device names: Chapters 1 through 6 of the Debugger Part in this user’s manual use R8C/Tiny as an example of the device names.
Guarantee: If your product becomes faulty within one year after its purchase while being used under good conditions by observing "IMPORTANT" and "Precautions for Safety" described in this user's manual, we will repair or replace your faulty product free of charge. Note, however, that if your product's fault is raised by any one of the following causes, we will repair it or replace it with new one with extra-charge: - Misuse, abuse, or use under extraordinary conditions - Unauthorized repair, remodeling, maintenance, and so on - Inadequate user's system or misuse of it - Fires, earthquakes, and other unexpected disasters In the above cases, contact your local distributor.

Before using this product, be sure to read the user’s manual (this user's manual) carefully.
Keep this user’s manual, and refer to this when you have questions about this product.

Be sure to read and understand the warnings below before using this emulator. Note that these are the main warnings, not the complete list.
This is the safety alert symbol. It is used to alert you to potential personal injury hazards. Obey all safety messages that follow this symbol to avoid possible injury or death.

before connecting or disconnecting any CABLES or PARTS. Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY. The USER PROGRAM will be LOST.
user interface cable by confirming the correct direction.
CAUTION Place the host computer and user system so that no cable is bent or twisted. A bent or twisted cable will impose stress on the user interface leading to connection or contact failure. Make sure that the host computer and the user system are placed in a secure position so that they do not move during use nor impose stress on the user interface.




The High-performance Embedded Workshop is a Graphical User Interface intended to ease the development and debugging of applications written in C/C++ programming language and assembly language for Renesas microcomputers. Its aim is to provide a powerful yet intuitive way of accessing, observing and modifying the debugging platform in which the application is running.
The E8 emulator (hereafter referred to as the emulator) is a software and hardware development support tool for application systems using the Renesas microcomputer. For applicable MCUs, refer to the web site.
The main unit of the emulator is connected through the dedicated debugging interface to the user system. The user system can be debugged under the conditions similar to the actual application conditions. The emulator enables debugging anywhere indoors or out. The host computer for controlling the emulator must be an IBM PC compatible machine with USB.
This manual describes the contents that comply with versions of the High-performance Embedded Workshop 4.0 or later.
Figure 1.1 shows the system configuration using the emulator.

Figure 1.1 System Configuration with the Emulator

The emulator has three activation modes:
(1) A mode in which the emulator program is started after it has been downloaded to the target
device: This mode is used when there is no emulator program in the flash memory of the target device. (2) A mode in which the emulator program is started without downloading it to the target device: This mode is used when there is an emulator program in the flash memory of the target device. (3) A mode in which the emulator is used as the flash memory programmer: This mode is used when the emulator is used for programming the flash memory.
The emulator provides the following features:
(1) Excellent cost-performance card emulator Compactness and USB connection are obtained. (2) Realtime emulation Realtime emulation of the user system is enabled at the maximum operating frequency of the MCU. (3) Excellent operability Using the High-performance Embedded Workshop on the Microsoft® Windows® 2000, or Microsoft® Windows® XP operating system enables user program debugging using a pointing device such as a mouse. (4) Various debugging functions Various break and trace functions enable efficient debugging. Breakpoints and break conditions can be set by the specific window, trace information can be displayed on a window, and command-line functions can be used. (5) Debugging of the user system in the final development stage The user system can be debugged under conditions similar to the actual application conditions. (6) Compact debugging environment A laptop computer can be used as a host computer, creating a debugging environment in any place. (7) The emulator can be used to program the internal flash memory.

(1) Check all components against the component list provided at the side of the component box
after unpacking the emulator. (2) Never place heavy objects on the casing. (3) Protect the emulator from excessive impacts and stresses. For details, refer to section 1.2,
Environmental Conditions. (4) When moving the host computer or user system, take care not to vibrate or damage it. (5) After connecting the cable, check that it is connected correctly. For details, refer to section 3,
Preparation before Use. (6) Supply power to the connected equipment after connecting all cables. Cables must not be
connected or removed while the power is on.

Table 1.1 Environmental Conditions
Humidity Operating: 35% RH to 80% RH, no condensation Storage: 35% RH to 80% RH, no condensation
Vibration Operating: 2.45 m/s2 max. Storage: 4.9 m/s2 max. Transportation: 14.7 m/s2 max.
Ambient gases No corrosive gases may be present
Table 1.2 Operating Environments
Host computer IBM PC or compatible machine with built-in Pentium® III or higher- performance CPU (600 MHz or higher recommended)
OS Windows® 2000, or Windows® XP
128 Mbytes or more (double of the load module size)
Hard-disk capacity Installation disk capacity: 100 Mbytes or more. (Prepare an area at least double the memory capacity (four-times or more recommended) as the swap area.)
Interface USB (USB1.1, full-speed)*
Connectable to the host computer; compatible with Windows® 2000 or Windows® XP.
Pointing device such as mouse
Power voltage 5.0 ± 0.25 V (USB-bus power type)
Current consumption 500 mA (max)
CD drive Required to install the software for the emulator or refer to the emulator user’s manual.
* Can be connected to a host machine supporting USB 2.0.
* Not all hardware (such as host machine, USB devices, USB hub) combination will work and guaranteed.
Item Specifications · Item Description · Minimum memory capacity

Check all the components unpacking. For details on the E8 emulator components, refer to the component list provided at the side of the component box. If the components are not complete, contact our E-mail address for user registration or refer to the web site.



This section describes the emulator functions. They differ according to the device supported by the emulator.
Table 2.1 gives a functional overview of the emulator.
Table 2.1 Emulator Functions
No. Item Function
1 User program execution function
2 Reset function • Issues a reset from the High-performance Embedded Workshop to the device during break.
3 Trace function • Branch trace function incorporated in the device (four branches) The support of this function depends on a device.
4 Break functions • Hardware break condition (one condition) The support of this function depends on a device.

Table 2.1 Emulator Functions (cont)
No. Item Function
5 Memory access function • Downloading to RAM
6 General/control register access function
Reads or writes the general/control register.
7 Internal I/O register access function
Reads or writes the internal I/O register.
8 Source-level debugging function
Various source-level debugging functions.
9 Command line function Supports command input. Batch processing is enabled when a file is created by arranging commands in input order. 10 Help function Describes the usage of each function or command syntax input from the command line window.
The specific functions of the emulator are described in the next section.

The branch source addresses, mnemonics, operands, and source lines are displayed. Since this function uses the trace buffer built into the device, a realtime trace can be acquired.

The E8 emulator has the following four break functions.
(1) Hardware break function
H8 R8C series Uses a break controller incorporated in the device. The access address, instruction fetch address, data, or bus cycle condition can be set. This function can also be set from the [Event] column in the [Source] window. For the setting, refer to section 5.3.1 Address Interrupt Breakpoints.
(2) PC break function (BREAKPOINT)
Breaks when the dedicated instruction at the specified address that has been replaced is executed. This function can be set on the [Breakpoint] page in the [Eventpoint] dialog box. It can also be set when the [S/W Breakpoints] column for the line to be set is double-clicked in the [Source] or [Disassembly] window.
(3) Forced break function
Forcibly breaks the user program.
(4) Address match break function Stops the target program immediately before a specified address instruction is executed. This function is featured by the address match interrupt of the MCU. This function can be set from the [Event] column in the Source window. For the setting, refer to section 5.2.2, Viewing the Source Code.
operation when device's address match interrupts are used is not guaranteed.

The emulator has the following memory access functions.
(1) Memory read/write function
specified when the [Memory] window is opened can be read. If the memory is written in the [Memory] window, a read in the range displayed in the [Memory] window will occur for updating the window. When the [Memory] window is not to be updated, change the setting in [Lock Refresh] from the popup menu.
me command: A command line function that reads or writes the specified amount of memory at the specified address.
(2) User program downloading function A load module registered in the workspace can be downloaded. Such module can be selected from [Download Modules] in the [Debug] menu. Downloading is also possible by a popup menu that is opened by right-clicking on the mouse at the load module in the workspace. The user program is downloaded to the RAM or flash memory.
This function can download information required for source-level debugging with the Elf/Dwarf2 or IEEE695 file having the debugging information.
(3) Memory data uploading function The specified amount of memory from the specified address can be saved in an S-format file.
(4) Memory data downloading function The memory contents saved in the S-type-formatted file can be downloaded. Select [Load] from the popup menu in the [Memory] window.
(5) Displaying the variable contents The variable contents specified in the user program are displayed. For the usage of the function for displaying the variable contents, refer to High-performance Embedded Workshop User’s Manual.

(6) Other memory operation functions Other functions are as follows:
When memory is accessed from the memory window, etc. during execution of the user program, execution stops for the memory access and is then resumed. Therefore, realtime emulation cannot be performed. 2. Memory access during user program break: The program can also be downloaded and the BREAKPOINT can be set for the flash memory area by the emulator.
The emulator uses the information on the stack to display the names of functions in the sequence of calls that led to the function to which the program counter is currently pointing. This function can be used only when the load modules that have the following formats are loaded:
- M32C family C complier (M3T-NC308WA): IEEE695 - M16C family C compiler (M3T-NC30WA): IEEE695 - R8C series C compiler (M3T-NC8C): IEEE695 - H8,H8S,H8SX family C/C++ compiler (such as [R0C40008XSW06R]): Elf/Dwarf2 For the usage of this function, refer to section 6.19, Stack Trace Function.
An online help explains the usage of each function or the command syntax that can be entered from the command line window.
Select [Emulator Help] from the [Help] menu to view the emulator help.

Unpack the emulator and prepare it for use as follows:
READ the reference sections shaded in Figure 3.1 before using the emulator product. Incorrect operation will damage the user system and the emulator product. The USER PROGRAM will be LOST.
Check the components against the component List provided at the side of the component box .
is used first.
Set up the emulator
- Install the High- performance Embedded Workshop
- Insert the emulator
- Set up the main unit of the emulator
Start the High- performance Embedded Workshop
When the emulator is used for second time or later.
Turn on the user system
Figure 3.1 Emulator Preparation Flow Chart



As shown in Figure 3.2, the emulator consists of an emulator, a USB cable, and a user system interface cable. The emulator is connected to the host computer via USB 1.1, and also to the USB port conforming to USB 2.0.

Figure 3.2 Emulator Hardware Configuration

The names of each section of the emulator are explained next.
Emulator Upper-side Panel:

Figure 3.3 Emulator Upper-side Panel
(a) E8 logo plate: A pink plate dedicated for the emulator is provided to be easily distinguished from other E-series emulators. (b) Sliding switch cover: A cover to protect a switch for setting the emulator, which is closed
to prevent incorrect operation. Be sure to close this cover during emulation. (c) ACTION LED: Marked ‘ACT’. When this LED is lit, the E8 control software is in operation. (d) Host connector: Marked ‘ ’. A connector for the host computer is provided at the side of this mark. (e) User connector: Marked ‘USER I/F’. A connector for the user system interface cable is provided at the side of this mark. Note: Even if the LED is not lit when the emulator is connected to the host computer, the USB is
not malfunctioned.
(d) (e) · (a) · (b) (c)

Emulator Host-side Panel:

Figure 3.4 Emulator Host-side Panel
(a) Host-side connector: A USB connector for the host computer. Be sure to connect the provided USB cable.
Emulator User-side Panel:

Figure 3.5 Emulator User-side Panel
(a) User-side connector: A user system interface cable is connected.
(a) · (a)

Emulator Bottom Panel:

Figure 3.6 Emulator Bottom Panel
emulator are written to. The contents differ depending on the time when you purchased the product.
(a)

The following item is included with the emulator debugger when it is purchased: • E8 Emulator Debugger: R0E000080KCE00SR (CD)
Install the software as instructed by the displayed messages by inserting the included CD into the CD-ROM drive. The folders contain the files and programs listed below.
Table 3.1 Contents of the CD Directories
Directory Name Contents Description
Dlls Microsoft® runtime library A runtime library for the High-performance Embedded Workshop. The version is checked at installation and this library is copied to the hard disk as part of the installation process.
Drivers E8 emulator driver The E8 emulator drivers.
E8SCP Self check program for the E8 emulator
Diagnostic test program for the E8 emulator.
Help Online help for the E8 emulator An online help file
Manuals E8 emulator manual E8 emulator user’s manual. This is provided as a PDF file.

When the CD is inserted in the host computer’s CD drive, execute Setup.exe from the root directory of the CD.

This section describes how to connect the emulator to the host computer. For the position of each connector of the emulator, refer to section 3.2, Emulator Hardware Configuration.
for your device. (Recommended)] radio button and then the [Specify a location] check box to select the path to be searched for drivers. The location must be specified as :\DRIVERS. ( is the CD drive name.) 2. Be sure to install the emulator’s debugger before putting the emulator in place.
Always switch OFF the emulator product and the user system before connecting or disconnecting any CABLES except for the USB interface cable. Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY. The USER PROGRAM will be LOST.

The emulator is connected to the host computer via the USB 1.1, and also to the USB port conforming to USB 2.0. Figure 3.7 shows the system configuration.

Figure 3.7 System Configuration when Connecting the Emulator to the Host Computer

Use the procedure below to connect the emulator to the user system with the user system interface cable, or to disconnect them when moving the emulator or the user system.
Figure 3.8 shows the position of the connector.
Connector for user system interface cable
Figure 3.8 Position of the Connector
(1) The connector must be installed to the user system. Table 3.2 shows the recommended
connector for the emulator.
Table 3.2 Recommended Connector
Type Number Manufacturer Specifications
2514-6002 3M Limited 14-pin straight type

(2) The pin assignments of the connector are shown in section 2 in the additional documents,

Figure 3.9 Connecting the User System Interface Cable to the User System
Notes: 1. To connect the signals output from the connector, refer to the MCU pin alignment. 2. To remove the user system interface cable from the user system, pull the tab on the connector upward. 3. The range of frequencies that the emulator operates at is different according to the MCUs used. 4. Connect the signals from the connector as shown in section 2 in the additional documents, Notes on Connecting the xxxxx.

WARNING
Separate the frame ground from the signal ground at the user system. Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY.
The emulator's signal ground is connected to the user system's signal ground. In the emulator, the signal ground and frame ground are connected. In the user system, connect the frame ground only; do not connect the signal ground to the frame ground (Figure 3.10).
User system E8 emulator
Figure 3.10 Connecting System Ground

When the software is executed, use the procedure below to check that the emulator is connected correctly. Here, use the workspace for a tutorial provided on the product.
Refer to section 4, Preparations for Debugging, for the other activating method to create a new project or use a workspace for the High-performance Embedded Workshop of the old version.

Figure 3.11 [Welcome!] dialog box
[Create a new project workspace] radio button: Creates a new workspace.
[Open a recent project workspace] radio button: Uses the current workspace and displays the history of the opened workspace.
[Browse to another project workspace] radio button: Uses the current workspace; this radio button is used when the history of the opened workspace does not remain
To use a workspace for the tutorial, select the [Browse to another project workspace] radio button and click the [OK] button.

When the [Open workspace] dialog box is opened, specify the following directory:
\WorkSpace\Tutorial\E8\xxxx\Tutorial After the directory has been specified, select the following file and click the [Open] button.

Figure 3.12 [Open Workspace] Dialog Box Note: The directory for a tutorial differs depending on the device. z M32C Drive where the OS has been installed: \WorkSpace\Tutorial\E8\M32C\Tutorial z R16C Drive where the OS has been installed: \WorkSpace\Tutorial\E8\M16C\Tutorial z R8C/Tiny Drive where the OS has been installed: \WorkSpace\Tutorial\E8\R8C\Tutorial z H8/Tiny normal mode Drive where the OS has been installed: \WorkSpace\Tutorial\E8\H8\Tutorial z H8/Tiny advanced mode Drive where the OS has been installed: \WorkSpace\Tutorial\E8\H8\TutorialADV z H8/ Super Low Power Drive where the OS has been installed: \WorkSpace\Tutorial\E8\H8\TutorialSLP


Figure 3.13 [Emulator Setting] Dialog Box
Select the device name in use from the [MCU Group] drop-down list box.
Power series.
Select the device name in use from the [Device] drop-down list box. The following items are selected in the [Mode] group box.
⎯ Erase Flash and Connect
This mode is used to erase data of the MCU flash memory and activate the debugger. A program for the emulator is also written to at the same time. Note: The emulator occupies the user’s flash memory area according to the target MCUs. For
details, refer to the additional document, Notes on Connecting the xxxxx.
⎯ Keep Flash and Connect
This mode is used to activate the debugger while retaining data of the MCU flash memory. However, areas for the emulator program and vector areas used by the emulator will be changed.

This mode is used when the emulator is used as a flash memory programmer. It cannot be used for debugging programs. Register the load module in the workspace to download it. Note: It is necessary to input the ID code of the flash memory by the target device. For details,
refer to the additional document, Notes on Connecting the xxxxx.
⎯ Debugging of CPU rewrite mode
This mode is used to debug the program that rewrites the CPU. In this mode, the following debug operations, which require reprogramming of the flash memory, are not available: - Setting the PC breakpoint - Changing the memory contents in the flash memory area The debugger is activated by erasing data of the MCU flash memory. A program for the emulator program is also written to at the same time. Note: This mode is not supported in the H8/Tiny or H8/Super Low Power series.
When the [Execute the user program after ending the debugger.] check box is selected, the user program is executed at the same time as the debugger operation is ended with the emulator connected to the user system. This check box is only available when the [Program Flash] mode has been selected.
When the [Power Target from Emulator. (MAX 300mA)] check box is selected, power will be supplied to the user system up to 300 mA. Then select 3.3 V or 5.0 V according to the power voltage of the user system.
Before carrying out the power supply, check the power specification of the user system and there is no short circuit in the user system. Incorrect operation will damage the user system and the emulator product. The USER PROGRAM will be LOST.
⎯ Program Flash


Figure 3.14 [Connecting] Dialog Box

Figure 3.15 Dialog Box for confirming the E8 firmware download
connect/disconnect the USB cable until the download status dialog box closes.


Figure 3.16 Dialog Box of the Power-on Request Message

Figure 3.17 [Power Supply] Dialog Box
When [Power supply is carried out. (MAX 300mA)] is checked, power will be supplied to the user system up to 300 mA. Then select 3.3 V or 5.0 V according to the power voltage of the user system.
Before carrying out the power supply, check the power specification of the user system and there is no short circuit in the user system. Incorrect operation will damage the user system and the emulator product. The USER PROGRAM will be LOST.


Figure 3.18 High-performance Embedded Workshop Window
debugging cannot be executed because there is no debugging information on the user program after the emulator has been activated. Be sure to load the debugging information file. For details, refer to section 4.2.1, Setting at Emulator Activation.

system, the following dialog box will appear.

Figure 3.19 [Connector disconnected] Dialog Box
(a) The following dialog box is displayed when the flash memory cannot be erased.
Exchange the MCU since the flash memory has been programmed more times than the limitation.

Figure 3.20 [Flash memory erase error!] Dialog Box
(b) The following dialog box is displayed when the flash memory cannot be programmed.
An incorrect system clock value has been input or the flash memory has been programmed more times than the limitation.

Figure 3.21 [Error sending Flash memory write program] Dialog Box

(c) The following dialog box is displayed when an incorrect ID code has been input. For
the H8/Tiny, H8/ Super Low Power, R8C/10, 11, 12 and 13, if an ID code does not match, the flash memory will be completely erased.

Figure 3.22 [ID code error!] Dialog Box
(d) The following dialog box is displayed when the MCU cannot communicate with the
emulator. Check the MCU settings.

Figure 3.23 [Boot Failed!] Dialog Box

Figure 3.24 [Unable to restore the previous driver settings] Dialog Box

Follow this procedure to remove the installed emulator’s debugger from the user’s host computer. As the installed product is known by the High-performance Embedded Workshop, uninstall the product on the High-performance Embedded Workshop screen.

Figure 3.25 [Welcome!] Dialog Box

Figure 3.26 [Tools Administration] Dialog Box

Click the [+] mark at the left of [Debugger Components] in the [Registered components] list box to list the installed components. Then, highlight the product name to be uninstalled.

Figure 3.27 Highlighting the Product to be Uninstalled
Click the [Unregister] button. After the following message box is displayed, click the [Yes] button.

Figure 3.28 [Unregistering this tool] Message Box
This is the end of canceling the High-performance Embedded Workshop registration. Then, remove the file for the emulator from the host computer.
Click the [Uninstaller…] button in the [Tools Administration] dialog box to open the [Uninstall HEW Tool] dialog box.


Figure 3.29 [Uninstall HEW Tool] Dialog Box
Click the [Start] button to list the installed components.

Figure 3.30 Highlighting the Product to be Uninstalled

Highlight the product name to be uninstalled and click the [Uninstall] button. This is the end of uninstallation.

To activate the High-performance Embedded Workshop, follow the procedure listed below.
Figure 4.1 [Welcome!] Dialog Box
[Create a new project workspace] radio button: Creates a new workspace.
[Open a recent project workspace] radio button: Uses the current workspace and displays the history of the opened workspace.
[Browse to another project workspace] radio button: Uses the current workspace; this radio button is used when the history of the opened workspace does not remain.
In this section, we describe the following three ways to start up the High-performance Embedded Workshop:
The [Open a recent project workspace] radio button is used to omit the operation for specifying the workspace file when [Browse to another project workspace] is selected.

4.1.1 Creating the New Workspace (Toolchain Not Used)
Figure 4.2 [Welcome!] Dialog Box


Figure 4.3 [New Project Workspace] Dialog Box
[Workspace Name] edit box: Enter the new workspace name. Here, enter ‘test’. [Project Name] edit box: Enter the project name. When the project name is the same as the workspace name, it needs not be entered.
[CPU family] drop-down list box: Select the target CPU family.
M32C: Select [M16C/80, M32C] R8C, M16C: Select [M16C]. H8 Tiny/ Super Low Power: Select [H8S, H8/300]. [Tool chain] drop-down list box: Here, select [None].
Other list boxes are used for setting the toolchain; the fixed information is displayed when the toolchain has not been installed.


Figure 4.4 [Setting the Target System for Debugging] Dialog Box
Select the target system for debugging and click the [Next] button. [Target system for debugging] [Target MCU] M32C E8 SYSTEM: M32C M16C E8 SYSTEM: M16C R8C E8 SYSTEM: R8C/Tiny H8 Tiny/Super Low Power E8 SYSTEM 300H: H8/300H Tiny, H8/300H Super Low Power H8 Tiny/Super Low Power E8 SYSTEM 300L: H8/300 Super Low Power


Figure 4.5 [Setting the Debugger Options] Dialog Box
This is the end of the emulator setting. Click the [Finish] button to exit the Project Generator. The High-performance Embedded Workshop is activated.

4.1.2 Creating the New Workspace (Toolchain Used)
Figure 4.6 [Welcome!] Dialog Box


Figure 4.7 [New Project Workspace] Dialog Box

[Workspace Name] edit box: Enter the new workspace name. Here, enter ‘test’. [Project Name] edit box: Enter the project name. When the project name is the same as the workspace name, it needs not be entered. [CPU family] drop-down list box: Select the target CPU family. [Tool chain] drop-down list box: Select the target toolchain name when using the toolchain. Otherwise, select [None]. [Project type] list box: Select the project type to be used.


Figure 4.8 [New Project-1/6-Select Target CPU. Toolchain version] Dialog Box
Select your toolchain version, CPU series and click the [Next] button.


Figure 4.9 [New Project-2/6-Select RTOS] Dialog Box
Select the RTOS you use, type of startup file and click the [Next] button.


Figure 4.10 [New Project-3/6-Setting the Contents of Files to be Generated] Dialog Box
Set the heap size etc. and click the [Next] button.


Figure 4.11 [New Project-4/6-Setting the Stack Area] Dialog Box
Set the stack size and click the [Next] button.


Figure 4.12 [New Project-5/6-Setting the Target System for Debugging] Dialog Box
Select the target system for debugging and click the [Next] button. [Target system for debugging] [Target MCU] M32C E8 SYSTEM: M32C M16C E8 SYSTEM: M16C R8C E8 SYSTEM: R8C/Tiny H8 Tiny/Super Low Power E8 SYSTEM 300H: H8/300H Tiny, H8/300H Super Low Power H8 Tiny/Super Low Power E8 SYSTEM 300L: H8/300 Super Low Power
Select another product, if necessary.


Figure 4.13 [New Project-6/7-Setting the Debugger Options] Dialog Box


Figure 4.14 [New Project-7/7-Changing the File Names to be Created] Dialog Box
The files which will be generated by the High-performance Embedded Workshop are displayed If you want to change the file name, select and click it then enter the new name.
This is the end of the emulator settings. Exit the Project Generator following the instructions on the screen. The High-performance Embedded Workshop is activated.

(a) Connecting the emulator after the setting at emulator activation
Select [Debug settings] from the [Debug] menu to open the [Debug Settings] dialog box. It is possible to register the download module or the command chain that is automatically executed at activation. For details on the [Debug Settings] dialog box, refer to section 4.2, Setting at E8 Emulator Activation. After the [Debug Settings…] dialog box has been set, when the dialog box is closed, the emulator is connected.

(b) Connecting the emulator without the setting at emulator activation
The emulator can be easily connected by switching the session file that the setting for the emulator use has been registered.

Figure 4.15 Selecting the Session File
In the list box that is circled in Figure 4.15, select the session file name including the character string that has been set in the [Target name] text box in Figure 4.13, [New Project-6/7-Setting the Debugger Options] dialog box. The setting for using the emulator has been registered in this session file.
After selected, the emulator is automatically connected.

4.1.3 Selecting an Existing Workspace

Figure 4.16 [Welcome!] Dialog Box

Figure 4.17 [Open Workspace] Dialog Box

4.2.1 Setting at Emulator Activation
When the emulator is activated, the command chain can be automatically executed. It is also possible to register multiple load modules to be downloaded. The registered load modules are displayed on the workspace window.

Figure 4.18 [Debug Settings] Dialog Box ([Target] Page)


Figure 4.19 [Debug Settings] Dialog Box ([Options] Page)
xecuted at the specified timing is registered. The following three timings can be specified:
The command chain that is automatically e
Specify the timing for executing the command chain in the [Command batch file load timing] drop-down list box. In addition, register the command-cha
in file that is executed at the specified timing in the [Command Line Batch Processing] list box.

4.2.2 Downloading a Program
A download module is added under [Download modules] in the [Workspace] window.
Open the load module of [Download modules] in the [Workspace] window by clicking the right- hand mouse button and select [Download module] to start downloading the module.

Figure 4.20 Download Menu of the [Workspace] Window ([Projects])
Modules]. 2. The emulator downloads programs to the flash memory just before execution of the user program.

4.2.3 Setting the Writing Flash Memory Mode
The following describes the procedures when the emulator is used as the programming tool. The load module to be downloaded to the new workspace is registered and programmed.
(a) Select the new project workspace.

Figure 4.21 [New Project Workspace] Dialog Box

(b) Select the target MCU and click the [Next] button.
Figure 4.22 [Setting the Target System for Debugging] Dialog Box

(c) Set a configuration file name and click the [Finish] button.
Figure 4.23 [Setting he Debugger Options] Dialog Box

(d) The [Emulator Setting] dialog box is displayed.

Figure 4.24 [Select Emulator mode] Dialog Box
Select the [Program Flash] mode. When the [Power Target from Emulator. (MAX 300mA)] check box is selected, power will be supplied to the user system up to 300 mA. Then select 3.3 V or 5.0 V according to the power voltage of the user system.

(e) When [Power supply is carried out. (MAX 300mA)] is not checked, the dialog box shown in Figure 4.25 will be displayed.
Figure 4.25 Dialog Box of Power-on request message
When [Power supply is carried out. (MAX 300mA)] is not checked, turn on the power to the user system.
(f) Enter the ID code printed on the flash memory.

Figure 4.26 [ID Code verification] Dialog Box
a target device. For details, refer to the additional document “Notes on Connecting the xxxxx”.

(g) Select [Debug Setting…] from the [Debug] menu.

Figure 4.27 High-performance Embedded Workshop Window

(h) Select the target MCU and then the download module with the [Add…] button.

Figure 4.28 [Debug Setting] Dialog Box ([Target] Page)
(i) The download file is displayed on [Project Files].

Figure 4.29 [Workspace] Window ([Project Files])

(j) Select and download the file with the right-hand mouse button.

Figure 4.30 Download Menu of the [Workspace] Window ([Project Files])
(k) The dialog box for sum checking is displayed and writing is completed.

Figure 4.31 Message for Completion of Flash Memory Writing

(l) When the following dialog box is displayed, close and restart or exit the workspace.

Figure 4.32 Message for Restarting or Exiting Writing Flash Memory Mod



This section describes the debugging operations and their related windows and dialog boxes. For details on the common functions of the High-performance Embedded Workshop products, refer to the High-performance Embedded Workshop User’s Manual.
5.1.1 Opening the [Configuration] Dialog Box
Selecting [Setup -> Emulator -> System…] or clicking the [Emulator System] toolbar button (
) opens the [Configuration] dialog box.
![Page 88 of the Renesas E8 user manual — 5.1.2 [General] Page](/cdn/reader/c8/c849f908a174477258a1e3a9b6ab6b867476cbf5ac9e3aeb6693121675ef91df/images/page-88.webp?w=400)
5.1.2 [General] Page
Sets the emulator operation conditions.
![Renesas E8 — 5.1.2 [General] Page diagram (page 88)](/cdn/reader/c8/c849f908a174477258a1e3a9b6ab6b867476cbf5ac9e3aeb6693121675ef91df/images/rimg-54.webp)
Figure 5.1 [Configuration] Dialog Box ([General] Page)
Items that can be displayed in the sheet are listed below.
[Device] combo box Displays the MCU name. [Emulation mode] combo box Selects the emulation mode at user program execution. Select Normal to perform normal emulation. Select No break to disable PC breakpoint or break condition settings during emulation. [User interface clock] combo box Displays the transfer clock of the user interface.
![Page 89 of the Renesas E8 user manual — 5.1.2 [General] Page](/cdn/reader/c8/c849f908a174477258a1e3a9b6ab6b867476cbf5ac9e3aeb6693121675ef91df/images/page-89.webp?w=400)
[Flash memory synchronization] combo box
Selects whether or not the contents of the flash memory are acquired by the emulator when the user program is stopped or the position where the PC break is set is put back as the original code. When the flash memory is not programmed by the user program, its contents need not be acquired by the emulator. If there is no problem with the state that the program in the flash memory has been replaced as the PC break code, the position where the PC break is set needs not be put back as the original code. Disable: Read or program is not performed for the flash
memory except when the emulator is activated, the flash memory area is modified, and the settings of the PC break to the flash memory area are changed. PC to flash memory: When the user program is stopped, the
specified PC break code is replaced as the original instruction. Select this option if there is a problem with the state that the program in the flash memory has been replaced as the PC break code. Flash memory to PC: When the user program is stopped, the
contents of the flash memory are read by the emulator. Select this option if the flash memory is reprogrammed by the user program. PC to flash memory, Flash memory to PC: When the user program is stopped, the contents of the flash memory are read by the emulator and the specified PC break code is replaced as the original instruction. Select this option if the flash memory is reprogrammed by the user program and there is a problem with the state that the program in the flash memory has been replaced as the PC break code.

This section describes how to download a program and view it as source code or assembly- language mnemonics.
location of the program counter (PC). In most cases, for example if an Elf/Dwarf2-based project is moved from its original path (at the build), the source file may not be automatically found. In this case, the High-performance Embedded Workshop will open a source file browser dialog box to allow you to manually locate the file.
5.2.1 Downloading a Program
A load module to be debugged must be downloaded.
To download a program, select the load module from [Debug -> Download] or select [Download] from the popup menu opened by clicking the right-hand mouse button on the load module in [Download modules] of the [Workspace] window.
Workshop as a load module. For registration, refer to section 4.2, Setting at E8 Emulator Activation.

5.2.2 Viewing the Source Code
Select a source file name in the [Workspace] window and click [Open] in the popup menu to make the High-performance Embedded Workshop display the source file in the editor. It is also possible to display your source files by double-clicking on their names in the [Workspace] window.

Figure 5.2 [Source] Window

In this window, the following items are shown on the left as line information.
The first column (Line Number column) Line number
The second column (Source address column): Address information
The fourth column (S/W Breakpoints column): PC, bookmark, and breakpoint information
The right window that shows the source is called as the [Source] window.
Event column The Event column displays the following item:
: An address condition as a break condition is set.
: An address interrupt break is set.
This is also set by using the popup menu.
The bitmap symbol above is shown by double-clicking the Event column. This is also set by using the popup menu.

Figure 5.3 Popup Menu
S/W Breakpoints column S/W Breakpoints column displays the following items:
: A bookmark is set.
: A PC Break is set.
: PC location

To switch off a column in all source files
1. Click the right-hand mouse button on the [Source] window or select the [Edit] menu. 2. Click the [Define Column Format…] menu item. 3. The [Global Editor Column States] dialog box is displayed. 4. A check box indicates whether the column is enabled or not. If it is checked, the column is enabled. If the check box is gray, the column is enabled in some files and disabled in others. Deselect the check box of a column you want to switch off. 5. Click the [OK] button for the new column settings to take effect.

Figure 5.4 [Global Editor Column States] Dialog Box
To switch off a column in one source file

This section describes how you can halt execution of your application's code. This section describes how to stop the program by setting an address match breakpoints at specific locations in your code.
5.3.1 Address Interrupt Breakpoints
When you are trying to debug your program you will want to be able to stop the program running when it reaches a specific point or points in your code. You can do this by setting the address match breakpoint on the line or instruction at which you want the execution to stop. The following instructions will show you how to quickly set and clear address match breakpoint.
instruction at which you set a address interrupt breakpoint. If you choose Go or Step after stopping at the address interrupt breakpoint, then the line marked with an arrow will be the next instruction to be executed.
About address interrupt break, see also section 5.4.13, Setting Break Conditions.

The emulator has the event point function that performs breaking by specifying higher-level conditions along with the PC breakpoints standard for the High-performance Embedded Workshop.
5.4.1 PC Breakpoints
When the instruction of the specified address is fetched, the user program is stopped. Up to 255 points can be set.
5.4.2 Break Conditions
Break conditions can be used for higher-level conditions such as the data condition as well as specification of the single address.
5.4.3 Opening the [Event] Window
Select [View -> Code -> Eventpoints] or click the [Eventpoints] toolbar button (
) to open the [Event] window.
The [Event] window has the following two sheets:
[Breakpoint] sheet: Displays the settings made for PC breakpoints. It is also possible to set, modify, and cancel PC breakpoints.
[Breakcondition] sheet: Displays or sets the settings made for break condition channels.
5.4.4 Setting PC Breakpoints
It is possible to display, modify, and add PC breakpoints on the [Breakpoint] sheet.

Figure 5.5 [Eventpoint] Window ([Breakpoint] Sheet)

This window displays and sets the breakpoints. Items that can be displayed in the sheet are listed below.
[State] Whether the breakpoint is enabled or disabled
[Condition] An address that the breakpoint is set Address = Program counter (Corresponding file name, line, and symbol name)
[Action] Operation of the emulator when a break condition is satisfied Break: Halts execution
When a breakpoint is double-clicked in this window, the [Set Break] dialog box is opened and break conditions can be modified.
A popup menu containing the following options is available by right-clicking within the window.
5.4.5 Add
Sets breakpoints. Clicking this item will open the [Set Break] dialog box and break conditions can be specified.
5.4.6 Edit
Only enabled when one breakpoint is selected. Select a breakpoint to be edited and click this item. The [Set Break] dialog box will open and break conditions can be changed.
5.4.7 Enable
Enables the selected breakpoint(s).
5.4.8 Disable
Disables the selected breakpoint(s). When a breakpoint is disabled, the breakpoint will remain in the list; when specified conditions have been satisfied, a break will not occur.
5.4.9 Delete
Removes the selected breakpoint. To retain the details of the breakpoint but not have it cause a break when its conditions are met, use the Disable option (see section 5.4.8, Disable).
5.4.10 Delete All
Removes all breakpoints.
[Type] Breakpoint

5.4.11 Go to Source
Only enabled when one breakpoint is selected. Opens the [Source] window at the address of the breakpoint.
5.4.12 [Set Break] Dialog Box

Figure 5.6 [Set Break] Dialog Box
This dialog box specifies break conditions.
A breakpoint address to be set is specified in the [Address] edit box. Up to 255 breakpoints can be specified.
When [Address] is selected, if an overloaded function or class name including a member function is specified in address, the [Select Function] dialog box opens.
Clicking the [OK] button sets the break conditions. Clicking the [Cancel] button closes this dialog box without setting the break conditions.

1. When an odd address is set for the H8/Tiny and H8/ Super Low Power series, the address is rounded down to an even address. 2. A Breakpoint is accomplished by replacing instructions. Accordingly, it can be set only to the flash memory or RAM area. However, a software break cannot be set to the following addresses: ⎯ An area other than the flash memory or RAM ⎯ An area occupied by the E8 emulator program ⎯ An instruction in which Break Condition 1 is satisfied 3. During step execution, a software breakpoint is disabled. 4. A condition set at Break Condition 1 is disabled immediately after starting execution when an instruction at a software breakpoint is executed. A break does not occur even if a condition of Break Condition 1 is satisfied immediately after starting the execution. 5. When execution resumes from the breakpoint address after the program execution stops at the software breakpoint, single-step execution is performed at the address before execution resumes. Therefore, realtime operation cannot be performed. 6. Settings of software breakpoint and Break Condition 1 are invalid while the STEP OVER function is being used.
5.4.13 Setting Break Conditions
On the [Breakcondition] sheet, the settings for break conditions are displayed, modified, and added. For R8C/Tiny series, on the [Breakcondition] sheet, the settings for address interrupt breakpoint are displayed, modified, and added.

Figure 5.7 [Eventpoint] Window ([Breakcondition] Sheet)
for each product, refer to the online help.
This window displays and sets the break condition.

Items that can be displayed in the sheet are listed below.
[Type] Break channel number
[State] Whether the breakpoint is enabled or disabled
[Condition] A condition that satisfies a break
[Action] Operation of the emulator when a break condition is satisfied Break: Halts execution
When a breakpoint is double-clicked in this window, the [Break condition 1] dialog box is opened and break conditions can be modified. For details on the [Break condition 1] dialog box, refer to the online help for each product.
A popup menu containing the following options is available by right-clicking within the window.
5.4.14 Edit...
Only enabled when one breakpoint is selected. Select a breakpoint to be edited and click this item. The [Break condition 1] dialog box will open and break conditions can be changed.
5.4.15 Enable
Enables the selected break channel(s). A break channel that the condition has not been set is not enabled.

5.4.16 Disable
Disables the selected break channel(s). When a break channel is disabled, a break will not occur even if specified conditions have been satisfied.
5.4.17 Delete
Initializes the condition of the selected break channel. To retain the details of the break channel but not have it cause a break when its conditions are met, use the Disable option (see section 5.4.16, Disable).
5.4.18 Delete All
Initializes conditions of all break channels.
5.4.19 Go to Source
Only enabled when one break channel is selected. Opens the [Source] window at address of break channel.
If an address value has not been set to the break channel, this option cannot be used.
5.4.20 Sequential Conditions
Sets the sequential condition of the break channel.
5.4.21 Editing Break Conditions
Handlings for settings other than PC breakpoints and break conditions are common. The following describes examples of such handling.
5.4.22 Modifying Break Conditions
Select a break condition to be modified, and choose [Edit...] from the popup menu to open the dialog box for the event, which allows the user to modify the break conditions. The [Edit...] menu is only available when one break condition is selected.
5.4.23 Enabling Break Conditions
Select a break condition and choose [Enable] from the popup menu to enable the selected break condition.
5.4.24 Disabling Break Conditions
Select a break condition and choose [Disable] from the popup menu to disable the selected break condition. When a break condition is disabled, the break condition will remain in the list, but an event will not occur when the specified conditions have been satisfied. 84

5.4.25 Deleting Break Conditions
Select a break condition and choose [Delete] from the popup menu to remove the selected break condition. To retain the break condition but not have it cause an event when its conditions are met, use the [Disable] option (see section 5.4.24, Disabling Break Conditions).
5.4.26 Deleting All Break Conditions
Choose [Delete All] from the popup menu to remove all break conditions.
5.4.27 Viewing the Source Line for Break Conditions
Select a break condition and choose [Go to Source] from the popup menu to open the [Source] or [Disassembly] window at the address of the break condition. The [Go to Source] menu is only available when one break condition that has the corresponding source file is selected.
5.4.28 [Break condition x] Dialog Box

Figure 5.8 [Break condition 3] Dialog Box
R8C/Tiny Series, only the address can be specified.
This page sets the address bus, data bus, and read/write cycle conditions. For R8C/Tiny series, only address can be specified.

The [Address] group box sets address bus conditions.
[Don’t care] check box Does not set address conditions.
[Address] radio button Sets the use of the normal address bus as break conditions.
[Only program fetched address after] radio button
Sets a break after prefetched address execution as break conditions.
[Address] edit box Sets the address bus value with a number or a symbol.
[Mask] edit box Sets a value to be masked when [User mask] is selected. For masked bits, the break condition is satisfied for any values.
The contents of an option that can be will change depending on the radio button selected.
[Address] radio button All options can be set.
[Only program fetched address after] radio button
The [Address] option can be set.
The [Data] group box sets the data bus conditions.
[Don’t care] check box No data conditions are set.
[Value] edit box Sets the data bus with a number.
[Low byte] radio button Sets data access size as the lower 8-bit access.
[High byte] radio button Sets data access size as the upper 8-bit access.
[Word] radio button Sets data access size as the word access.
The [Read/Write] group box sets the read/write cycle conditions.
[Read/Write] radio button Sets the read/write cycle conditions as break conditions.
[Read] radio button Sets read cycles as break conditions.
[Write] radio button Sets write cycles as break conditions.

For the description on the trace function, refer to section 2.2, Trace Functions.
5.5.1 Opening the [Trace] Window
To open the [Trace] window, choose [View -> Code -> Trace] or click the [Trace] toolbar button (
).
5.5.2 Acquiring Trace Information
The acquired trace information is displayed in the [Trace] window.

Figure 5.9 [Trace] Window
This window displays the following trace information items:
[PTR] Pointer to a location in the trace buffer (+0 for the last executed instruction) [IP] The amount of acquired trace information [Type] Type of branch: BRANCH: branch source [Address] Instruction address [Instruction] Instruction mnemonic [Source] The C/C++ or assembly-language source program [Label] Label information It is possible to hide any column not necessary in the [Trace] window. Selecting a column you want to hide from the popup menu displayed by clicking the right-hand mouse button on the header column hides that column. To display the hidden column, select the column from the said popup menu again.
differ depending on the product. For the specification of each product, refer to the online help.

5.5.3 Clearing the Trace Information
When [Clear] is selected from the popup menu, the trace buffer that stores the trace information becomes empty. If several [Trace] windows are open, all [Trace] windows will be cleared as they all access the same buffer.
5.5.4 Saving the Trace Information in a File
Select [Save...] from the popup menu to open the [Save As] file dialog box, which allows the user to save the information displayed in the [Trace] window as a text file. A range can be specified based on the [PTR] number. This file can only be saved; it cannot be reloaded into the [Trace] window.
5.5.5 Viewing the [Source] Window
The [Source] window corresponding to the selected trace record can be displayed in the following two ways:
5.5.6 Trimming the Source
Choose [Trim Source] from the popup menu to remove the white space from the left side of the source.
When the white space is removed, a check mark is shown to the left of the [Trim Source] menu. To restore the white space, choose [Trim Source] while the check mark is shown.

The emulator executes the specified routine of the user program immediately before starting and immediately after halting program execution. This function is used to control the user system in synchronization with execution and halting of the user program.
the R8C/10, R8C/11, R8C/12, or R8C/13 group.
5.6.1 Opening the [Start/Stop Function Setting] Dialog Box
The routine executed immediately before starting and immediately after halting the user program execution is specified in the [Start/Stop Function Setting] dialog box.
To open the [Start/Stop Function Setting] dialog box, choose [Setup -> Emulator -> Start/Stop Function Setting…] from the [Start] menu.

Figure 5.10 [Start/Stop Function Setting] Dialog Box
5.6.2 Specifying the Routine to be Executed
It is possible to specify the respective routines immediately before starting and immediately after halting the user program execution.
When the [The specified routine is executed immediately before execution of the user’s program.] check box is selected, the routine specified in the [starting address] combo box, which is below this check box, is executed immediately before starting user program execution.

If no specified routine is executed immediately before starting user program execution, do not select the [The specified routine is executed immediately before execution of the user’s program.] check box.
When the [The specified routine is executed immediately after the stop of the user’s program.] check box is selected, the routine specified in the [starting address] combo box, which is below this check box, is executed immediately after halting user program execution.
If no specified routine is executed immediately after halting user program execution, do not select the [The specified routine is executed immediately after the stop of the user’s program.] check box.

5.6.3 Restrictions on the Start/Stop Function
The start/stop function has the following restrictions.
Register and Flag Names Restrictions
ISP register When execution of the specified routine is ended, put the value back to the one at the start of that routine.
Flag U Be sure to set the flag value as 0 when execution of the specified routine is ended.
Flag B Do not set the flag value as 1 in the specified routine.
Flag I No interrupts are allowed during execution of the specified routine. Do not set the flag value as 1 in the specified routine.



This section describes the main functions of the emulator by using a tutorial program.
The tutorial program is based on the C program that sorts ten random data items in ascending or descending order. The tutorial program performs the following actions:
The file tutorial.c contains source code for the tutorial program. The file Tutorial.x30 is a compiled load module in the IEEE695 format.

To run the High-performance Embedded Workshop, refer to section 3.8, System Check.
This section describes the basic settings of the emulator.
![Page 111 of the Renesas E8 user manual — 6.4 Setting the [Configuration] Dialog Box](/cdn/reader/c8/c849f908a174477258a1e3a9b6ab6b867476cbf5ac9e3aeb6693121675ef91df/images/page-111.webp?w=400)
![Renesas E8 — 6.4 Setting the [Configuration] Dialog Box diagram (page 111)](/cdn/reader/c8/c849f908a174477258a1e3a9b6ab6b867476cbf5ac9e3aeb6693121675ef91df/images/rimg-64.webp)
Figure 6.1 [Configuration] Dialog Box
settings for each product, refer to the online help.
![Page 112 of the Renesas E8 user manual — 6.4 Setting the [Configuration] Dialog Box](/cdn/reader/c8/c849f908a174477258a1e3a9b6ab6b867476cbf5ac9e3aeb6693121675ef91df/images/page-112.webp?w=400)
Set options as follows:
Table 6.1 [General] Page Options
Device Select a device you use
Emulation mode Normal (normal execution, default)
User interface clock According to the system clock frequency, the maximum user interface clock is automatically set.
Flash memory synchronization Disable (default)
Click the [OK] button to set a configuration.
Option Value

Check that RAM is operating correctly.
Display and edit the contents of the memory in the [Memory] window to check that the memory is operating correctly.
the above way of checking the operation of memory may be inadequate. It is recommended that a program for checking the memory be created.

Figure 6.2 [Display Address] Dialog Box
hardware manual.


Figure 6.3 [Memory] Window

6.6.1 Downloading the Tutorial Program
Download the object program to be debugged.
In this emulator, it is enabled to download the program and set the PC breakpoint in the internal flash memory area. For the method to set the PC breakpoint, refer to section 6.16.1, PC Break Function.
Figure 6.4 Downloading the Tutorial Program

6.6.2 Displaying the Source Program
The High-performance Embedded Workshop allows the user to debug a user program at the source level.

Figure 6.5 [Source] Window (Displaying the Source Program)
Select the [Display] option from the [Setup] menu to set a font and size that are legible, if necessary. Initially the [Source] window shows the start of the user program, but the user can use the scroll bar to scroll through the user program and look at the other statements.

A PC breakpoint is a simple debugging function.
The [Source] window provides a very simple way of setting a PC breakpoint at any point in a program. For example, to set a PC breakpoint at the sort function call:

Figure 6.6 [Source] Window (Setting a PC Breakpoint)
The symbol • will appear on the line containing the sort function. This shows that a PC breakpoint has been set.

Set values of the program counter and the stack pointer before executing the program.

Figure 6.7 [Register] Window

z To change the value of the program counter (PC), double-click the value area in the [Register] window with the mouse. The following dialog box is then displayed, and the value can be changed. Set the program counter to 0E612 in this tutorial program, and click the [OK] button.

Figure 6.8 [Register] Dialog Box (PC)

Execute the program as described in the following:
Figure 6.9 [Go] Button
When the program execution is started, ‘**RUNNING’ is displayed on the status bar.
The program will be executed up to the breakpoint that has been set, and an arrow will be displayed in the [S/W Breakpoints] column to show the position that the program has halted, with the message [BREAKPOINT] in the status bar.
The location of the source file is as follows:
The High-performance Embedded Workshop is installed to: \ WorkSpace \Tutorial\E8\xxxx\Tutorial\Tutorial\source The directory xxxx varies depending on each device. e.g.: M32C \WorksSpace\Tutorial\E8\M32C\Tutorial\Tutorial\Source
e.g.: M16C \WorksSpace\Tutorial\E8\M16C\Tutorial\Tutorial\Source
e.g.: R8C/Tiny \WorksSpace\Tutorial\E8\E8C\Tutorial\Tutorial\Source
e.g.: H8/Tiny normal mode \WorksSpace\Tutorial\E8\H8\Tutorial
e.g.: H8/Tiny advanced mode \WorksSpace\Tutorial\E8\H8\TutorialADV
e.g.: H8/ Super Low Power \WorksSpace\Tutorial\E8\H8\TutorialSLP


Figure 6.10 [Source] Window (Break State)

The user can see the cause of the break that occurred last time in the [Status] window.

Figure 6.11 [Status] Window
for each product, refer to the online help.

The user can see all the breakpoints set in the program in the [Eventpoint] window.

Figure 6.12 [Eventpoint] Window
The popup menu, opened by clicking the [Eventpoint] window with the right-hand mouse button, allows the user to set or change breakpoints, define new breakpoints, and delete, enable, or disable breakpoints.

When the label name is specified, the user can view the memory contents that the label has been registered in the [Memory] window. For example, to view the memory contents corresponding to _main in word size:

Figure 6.13 [Display Address] Dialog Box

Figure 6.14 [Memory] Window

As the user steps through a program, it is possible to watch that the values of variables used in the user program are changed. For example, set a watch on the long-type array a declared at the beginning of the program, by using the following procedure:
The following dialog box will be displayed.

Figure 6.15 [Instant Watch] Dialog Box

Figure 6.16 [Watch] Window (Displaying the Array)

The user can also add a variable to the [Watch] window by specifying its name.
The following dialog box will be displayed. Enter variable i.

Figure 6.17 [Add Watch] Dialog Box
The [Watch] window will now also show the int-type variable i.

Figure 6.18 [Watch] Window (Displaying the Variable)

The user can click mark ‘+’ at the left side of array a in the [Watch] window to watch all the elements.

Figure 6.19 [Watch] Window (Displaying Array Elements)

The High-performance Embedded Workshop provides a range of step menu commands that allow efficient program debugging.
Table 6.2 Step Option
Step In Executes each statement, including statements within functions.
Step Over Executes a function call in a single step.
Step Out Steps out of a function, and stops at the statement following the statement in the program that called the function.
Step… Steps the specified times repeatedly at a specified rate.
6.13.1 Executing [Step In] Command The [Step In] command steps into the called function and stops at the first statement of the called function. • To step through the sort function, select [Step In] from the [Debug] menu, or click the [Step In] button on the toolbar.
Figure 6.20 [Step In] Button

Figure 6.21 [Source] Window (Step In) • The highlighted line moves to the first statement of the sort function in the [Source] window.
Menu Command Description
![Page 129 of the Renesas E8 user manual — 6.13.2 Executing [Step Out] Command](/cdn/reader/c8/c849f908a174477258a1e3a9b6ab6b867476cbf5ac9e3aeb6693121675ef91df/images/page-129.webp?w=400)
6.13.2 Executing [Step Out] Command
The [Step Out] command steps out of the called function and stops at the next statement of the calling statement in the main function.
Cursor].
Figure 6.22 [Step Out] Button
![Renesas E8 — 6.13.2 Executing [Step Out] Command diagram (page 129)](/cdn/reader/c8/c849f908a174477258a1e3a9b6ab6b867476cbf5ac9e3aeb6693121675ef91df/images/rimg-82.webp)
Figure 6.23 [High-performance Embedded Workshop] Window (Step Out)
The data of variable a displayed in the [Watch] window is sorted in ascending order.
![Page 130 of the Renesas E8 user manual — 6.13.3 Executing [Step Over] Command](/cdn/reader/c8/c849f908a174477258a1e3a9b6ab6b867476cbf5ac9e3aeb6693121675ef91df/images/page-130.webp?w=400)
6.13.3 Executing [Step Over] Command
The [Step Over] command executes a function call as a single step and stops at the next statement of the main program.
Figure 6.24 [Step Over] Button
![Renesas E8 — 6.13.3 Executing [Step Over] Command diagram (page 130)](/cdn/reader/c8/c849f908a174477258a1e3a9b6ab6b867476cbf5ac9e3aeb6693121675ef91df/images/rimg-83.webp)
Figure 6.25 [High-performance Embedded Workshop] Window (Step Over)

The High-performance Embedded Workshop can force a break in the execution of a program.
Figure 6.26 [Go] Button
Figure 6.27 [Halt] Button

The user can display local variables in a function using the [Locals] window. For example, we will examine the local variables in the main function, which declares four local variables: a, j, i, and p_sam.
The [Locals] window shows the local variables in the function currently pointed to by the program counter, along with their values. Note, however, that the [Locals] window is initially empty because local variables are yet to be declared.

Figure 6.28 [Locals] Window

The emulator has PC and hardware break functions. With the High-performance Embedded Workshop, a PC breakpoint can be set using the [Breakpoint] sheet of the [Event] window, and a hardware break condition can be set using the [Breakcondition] sheet.
An overview and setting of the break function are described below.
6.16.1 PC Break Function
The emulator can set up to 255 PC breakpoints. Other methods for setting a PC breakpoint than in section 6.7, Setting a PC Breakpoint, are described below.

Figure 6.29 [Eventpoint] Window (Before PC Breakpoint Setting)


Figure 6.30 [Set Break] Dialog Box

The PC breakpoint that has been set is displayed in the [Eventpoint] window.

Figure 6.31 [Eventpoint] Window (PC Breakpoint Setting)
To stop the tutorial program at the PC breakpoint, the following procedure must be executed:
The program runs, and stops at the set PC breakpoint.

Figure 6.32 [Source] Window at Execution Stop (PC Break)

The [Status] window displays the following contents.

Figure 6.33 Displayed Contents of the [Status] Window (PC Break)
for each product, refer to the online help.

A method is given below in which the address bus condition is set under Break Condition 1 as hardware break conditions.

Figure 6.34 [High-performance Embedded Workshop] Window ([Break condition 1])


Figure 6.35 [condition] Page ([Break condition 1] Dialog Box)
Click the [OK] button. The first point display in the State line changes from Disable to Enable. The first point display in the Condition line changes from None to Address = H’0000e1f2(Tutorial.c/41)pcbefore. Set the program counter value (PC = H’0E6C6) that was set in section 6.8, Setting Registers, in the [Register] window. Click the [Go] button.
each product, refer to the online help.

The program runs and then stops at the condition specified under Break Condition 1.

Figure 6.36 [Source] Window at Execution Stop (Break Condition 1)
The [Status] window displays the following contents.

Figure 6.37 Displayed Contents of the [Status] Window (Break Condition 1)
for each product, refer to the online help.

The emulator has a branch-instruction trace function.
The branch source addresses, mnemonics, operands, source lines, and labels are displayed for four branches.
Devices which have no trace function cannot use this function.
6.18.1 Displaying the Trace Window
Select [Trace] from the [Code] submenu of the [View] menu.
Run the program as shown in the example of section 6.16.1, PC Break Function. The trace results are displayed in the [Trace] window after the program execution is completed.

Figure 6.38 [Trace] Window
If necessary, adjust the column widths by dragging borders in the header bar (immediately below the title bar).
differ depending on the product. For the specification of each product, refer to the online help.

The emulator uses the information on the stack to display the names of functions in the sequence of calls that led to the function to which the program counter is currently pointing.
debugging information is loaded.

Figure 6.39 [Source] Window (PC Breakpoint Setting)


Figure 6.40 [Stack Trace] Window
Figure 6.40 shows that the position of the program counter is currently at the selected line of the sort() function, and that the sort() function is called from the tutorial() function.

This tutorial has described the major features of the emulator and the use of the High-performance Embedded Workshop.
Sophisticated debugging can be carried out by using the emulation functions that the emulator offers. This provides for effective investigation of hardware and software problems by accurately isolating and identifying the conditions under which such problems arise.



Table A.1 lists the components of the R8C E8 emulator.
Table A.1 Components of the Emulator (R0E000080KCE00)
Classi- fication Component Appearance Quantity Remarks
User system interface cable
E8 emulator setup program, R0E000080KCE00SR,
E8 Emulator User’s Manual, R0E000080KCE00J, R0E000080KCE00E,
E8 Emulator additional documents, Notes on Connecting the xxxx
R0E000080KCE00JPn, R0E000080KCE00EPn (n = 1, 2, 3, 4, …),
E8 emulator check program
M3T-NC308WA
M3T-NC30WA
(Provided with the R8C E8 emulator setup program)
(Provided with the H8 E8 emulator setup program)



This section describes the window functions that can be used with the High-performance Embedded Workshop for E8 emulator. Here, the High-performance Embedded Workshop common functions are omitted, and only the emulation functions are described.
Table B.1 Window Functions
Menu Option Shortcut Toolbar
View Disassembly Ctrl + D
Opens the [Disassembly] window.
Command Line Ctrl + L
Opens the [Command Line] window.
Workspace Alt + K
Opens the [Workspace] window.
Output Alt + U
Opens the [Output] window.
CPU Registers Ctrl + R
Opens the [Register] window.
Memory… Ctrl + M
Opens the [Memory] window.
IO Ctrl + I
Opens the [IO] window.
Status Ctrl + U
Opens the [Status] window.
Symbol Labels Shift + Ctrl + A
Opens the [Labels] window.
Watch Ctrl + W
Opens the [Watch] window.
Locals Shift + Ctrl + W
Opens the [Locals] window.
Code Eventpoints Ctrl + E
Opens the [Event] window.
Trace Ctrl + T
Opens the [Trace] window.
Stack Trace Ctrl + K
Opens the [Stack Trace] window.
Gra-phic Image… Shift + Ctrl + G
Opens the [Image] window.
Waveform… Shift + Ctrl + V
Opens the [Waveform] window.
Button Remarks

Table B.1 Window Functions (cont)
Menu Option Shortcut Toolbar
Uses a hexadecimal for displaying a radix in which the numerical values will be displayed and entered by default.
Uses a decimal for displaying a radix in which the numerical values will be displayed and entered by default.
Uses an octal for displaying a radix in which the numerical values will be displayed and entered by default.
Uses a binary for displaying a radix in which the numerical values will be displayed and entered by default.
Opens the [Configuration Properties] dialog box allowing the user to modify the debugging platform settings.
Debug Debug Sessions… Opens the [Debug Sessions] dialog box to list, add, or remove the debug session.
Debug Settings… Opens the [Debug Settings] dialog box to set the debugging conditions or download modules.
Resets the target hardware and sets the PC to the reset vector address.
Starts executing the user program at the current PC.
Reset Go Shift + F5
Resets the target microcomputer and executes the user program from the reset vector address.
Starts executing the user program at the current PC until the PC reaches the address indicated by the current text cursor position.
Set PC To Cursor
Sets the PC to the address at the row of the text cursor.

Table B.1 Window Functions (cont)
Menu Option Shortcut Toolbar
Run… Launches the [Run Program] dialog box allowing the user to enter the PC or PC breakpoint during executing the user program.
Display PC Shift + Ctrl + Y
Displays the current PC value.
Executes a block of user program before breaking.
Executes a block of user program before breaking. If a subroutine call is reached, then the subroutine will not be entered.
Step Out Shift + F11
Executes the user program to reach the end of the current function.
Step… Launches the [Step Program] dialog box allowing the user to modify the settings for stepping.
Auto Steps only one source line when the [Source] window is active. When the [Disassembly] window is active, stepping is executed in a unit of assembly instructions.
Assembly Executes stepping in a unit of assembly instructions.
Source Steps only one source line.
Stops the execution of the user program.
Initialize Disconnects the debugging platform and connects it again.
Connects the debugging platform.
Disconnects the debugging platform. This option cannot be used in some products.
Save Memory… Saves the specified memory area data to a file.
Verify Memory… Verifies file contents against memory contents.

Table B.1 Window Functions (cont)
Menu Option Shortcut Toolbar
Download Modules Downloads the object program.
Unload Modules Unloads the object program.
Button Remarks

The emulator supports the commands that can be used in the command-line window.
For details, refer to the online help.



Workshop
Do not display source files that do not correspond to the load module in the program window. For a file having the same name as the source file that corresponds to the load module, only its addresses are displayed in the program window. The file cannot be operated in the program window.
Even standard C libraries are executed. To return to a higher-level function, enter Step Out. In a for statement or a while statement, executing a single step does not move execution to the next line. To move to the next line, execute two steps.
Depending on the generated object code, local variables in a C source file that is compiled with the optimization option enabled will not be displayed correctly. Check the generated object code by displaying the [Disassembly] window. If the allocation area of the specified local variable does not exist, displays as follows.
Example: The variable name is asc.
asc = ? - target error 2010 (xxxx)
⎯ Variable name specification
When a name other than a variable name, such as a symbol name or function name, is specified, no data is displayed.
Example: The function name is main.
A variable that is allocated to register cannot be selected for monitoring.
⎯ Step · main =

For updating of the content of the variable that has been registered in the [Watch] window, read the data after the break in user program execution. The realtime operation for the user program is disabled because the user program is temporarily stopped.
Regardless of the Radix setting, the default for line assembly input is decimal. Specify H’ or 0x for the H8 series microcomputers and xxxxh for the R8C/Tiny, M32C and M16C series microcomputers as the radix for a hexadecimal input.
To display the message “Not currently available” while executing a batch file, enter the sleep command. Adjust the sleep time length which differs according to the operating environment.
memory_fill 0 ffff 0
⎯ File specification by commands
The current directory may be altered by file specifications in commands. It is recommended to use absolute paths to specify the files in a command file so that the current directory alteration is not affected.
Do not change values in the [I/O] window because the emulator uses the address break controller.
⎯ Note that the E8 emulator does not support the display of the invalid module in the [I/O]
window. For the H8/Tiny and H8/ Super Low Power series, the E8 emulator dose not support the display of the bit information in the [I/O] window.
⎯ Variable updating · sleep d’3000

11 Using Register Contents Use the value contained in a CPU register by specifying the register name prefixed by the “#” character, e.g.: #R1, #PC, #R6L, or #ER3 when you are entering a value elsewhere in the High-performance Embedded Workshop, for example when displaying a specified address in the [Disassembly] or [Memory] window. In the R8C/Tiny, specify and enter the bank number before a register name; e.g., #0R0 or #0R0H.
memory each time the user program is executed. At this time, note that the number of rewritable times will be decreased. ⎯ BREAKPOINT cancellation
When the contents of the BREAKPOINT address is modified during user program execution, the following message is displayed when the user program stops. BREAKPOINT IS DELETED A=xxxxxxxx If the above message is displayed, cancel all BREAKPOINT settings with the [Delete All] or [Disable] button in the [Breakpoints] window.
⎯ [Fill Memory] dialog box ⎯ [Search Memory] dialog box

The [Format] specification in the [Copy Memory] dialog box is ignored. Memory is copied in a byte unit.
the breakpoint becomes Enable when the user program stops.
18 [Stack Trace] window When using the NC30WA or NC8C, if parameters and local variables of a function are referred in the call stack window and one or more parameters are on a register, the register parameters may be interchanged with the local variables. However, the correct values are displayed.
20 Internal Flash Memory The emulator is also available as the programming tool for mass production. However, the actual MCU, which has been used by connecting to the emulator, has been programmed to the flash memory at emulation and stressed. Do not use the MCU that has been used for debugging for the mass products.
21 Suspend during Emulator Use [When using the E8 emulator software V.2.03 Release 00 or later] The host computer cannot enter suspend mode. [When using the E8 emulator software V.2.02 Release 00 or older] Do not set the host computer to suspend mode while using the emulator. If the host computer enters suspend mode, exit and restart the High-performance Embedded Workshop.
22 Verification of Memory Use the FILE_VERIFY command to verify memory. Do not use [Verify Memory…] in the [Debug] menu.
23 Overwrite of a File In command line interface, a file that has the same name as the output file is overwritten without asking the user.
⎯ MEMORY_FILL command

24 Usage with Other Products To install the SuperH™ RISC engine C/C++ compiler package or H8, H8/300 series C/C++ compiler package after installing the emulator debugger for High-performance Embedded Workshop, select [High-performance Embedded Workshop] as the component to be installed in [Select Components] during installation of the compiler package.
25 Download of Load Modules When load modules are downloaded, select [Debug] -> [Download] -> [All DownLoad Modules].
26 Writing Flash Memory Mode When microcomputers are continuously programmed, be sure to turn the target on or off.
27 Memory Access in the Writing Flash Memory Mode Memory cannot be accessed in the Writing Flash Memory mode. In this mode, values displayed in the [Memory] or [IO] window are dummy.
28 Memory Access during Flash Memory Programming During flash memory programming (e.g., user program execution), operation for memory accessing such as opening the [Memory] window is not allowed. Values displayed here are dummy. Access the memory again after flash memory programming has been completed.



This manual describes the troubleshooting procedure that applies the check program for the E8 emulator.
(1) The following equipments are required to execute the check program. Do not connect the user
system interface cable or the user system while the check program is running.
(2) Start up the host computer, and connect the E8 emulator to the USB connector of the host
computer via the USB cable attached. Prior to this, the user interface cable must be disconnected.
(1) Execute [Program]-[Renesas]-[High-performance Embedded Workshop]-[E8 Self Check
Program].

Figure E.1 Starting Up the Check Program

(2) Click the ‘START’ button appeared on the window. This starts execution of the check
program showing the message ‘RUNNING’.

Figure E.2 Running the Check Program
(3) The message ‘FAIL’ or ‘PASS’ will be displayed. ‘PASS’ indicates that the emulator is
working correctly. Click the ‘QUIT’ button to exit the check program.

Figure E.3 Quitting the Check Program

(1) If ‘FAIL’ is displayed during execution of the check program, a status number is also
displayed at the right bottom of the window.
(2) Click the ‘LOG’ button to create a log file.

Figure E.4 ‘FAIL’ Message
(3) Send a file ‘SCP_LOG.TXT’, which has been created in the folder where ‘E8SCP.EXE’ was
executed, to our customer support center by e-mail. The e-mail address is written on the following website:



E8 Emulator User's Manual
Rev.1.00 Rev.10.00
Published by: Sales Strategic Planning Div. Renesas Technology Corp.
Edited by: Microcomputer Tool Development Department Renesas Solutions Corp.
© 2007. Renesas Technology Corp. and Renesas Solutions Corp., All rights reserved. Printed in Japan.

Pages referenced in this manual — manufacturer, support and downloads.
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.