EN
Renesas logo
Official user manual

Renesas E8

164 pages·2.5 MB·Network Card·PDF·ENDEFRITNLJA
Renesas E8
Table of Contents 121 sections Introduction · IMPORTANT · Precautions for Safety · DEFINITION OF SIGNAL WORDS · … ShowHide
Introductionp.3IMPORTANTp.5Precautions for Safetyp.7DEFINITION OF SIGNAL WORDSp.8Contentsp.11Section 1 Overviewp.171.1 Warningsp.191.2 Environmental Conditionsp.201.3 Componentsp.21Section 2 E8 Emulator Functionsp.232.1 Overviewp.232.2 Trace Functionsp.252.3 Break Functionsp.262.4 Memory Access Functionsp.272.5 Stack Trace Functionp.282.6 Online Helpp.28Section 3 Preparation before Usep.293.1 Emulator Preparationp.293.2 Emulator Hardware Configurationp.313.3 Emulator Software Configurationp.353.3.1 CDp.353.4 Installing Emulator’s Debuggerp.363.5 Connecting the Emulator to the Host Computerp.373.6 Connecting the Emulator to the User Systemp.393.7 Connecting System Groundp.413.8 System Checkp.423.9 Uninstalling the Emulator’s Debuggerp.51Section 4 Preparations for Debuggingp.554.1 Method for Activating High-performance Embedded Workshopp.554.1.1 Creating the New Workspace (Toolchain Not Used)p.564.1.2 Creating the New Workspace (Toolchain Used)p.604.1.3 Selecting an Existing Workspacep.724.2 Setting at E8 Emulator Activationp.744.2.1 Setting at Emulator Activationp.744.2.2 Downloading a Programp.764.2.3 Setting the Writing Flash Memory Modep.77Section 5 Debuggingp.875.1 Setting the Environment for Emulationp.875.1.1 Opening the [Configuration] Dialog Boxp.875.1.2 [General] Pagep.885.2 Downloading a Programp.905.2.1 Downloading a Programp.905.2.2 Viewing the Source Codep.915.3 Stopping Your Programp.945.3.1 Address Interrupt Breakpointsp.945.4 Using the Event Pointsp.955.4.1 PC Breakpointsp.955.4.2 Break Conditionsp.955.4.3 Opening the [Event] Windowp.955.4.4 Setting PC Breakpointsp.955.4.5 Addp.965.4.6 Editp.965.4.7 Enablep.965.4.8 Disablep.965.4.9 Deletep.965.4.10 Delete Allp.965.4.11 Go to Sourcep.975.4.12 [Set Break] Dialog Boxp.975.4.13 Setting Break Conditionsp.985.4.14 Edit...p.995.4.15 Enablep.995.4.16 Disablep.1005.4.17 Deletep.1005.4.18 Delete Allp.1005.4.19 Go to Sourcep.1005.4.20 Sequential Conditionsp.1005.4.21 Editing Break Conditionsp.1005.4.22 Modifying Break Conditionsp.1005.4.23 Enabling Break Conditionsp.1005.4.24 Disabling Break Conditionsp.1005.4.25 Deleting Break Conditionsp.1015.4.26 Deleting All Break Conditionsp.1015.4.27 Viewing the Source Line for Break Conditionsp.1015.4.28 [Break condition x] Dialog Boxp.1015.5 Viewing the Trace Informationp.1035.5.1 Opening the [Trace] Windowp.1035.5.2 Acquiring Trace Informationp.1035.5.3 Clearing the Trace Informationp.1045.5.4 Saving the Trace Information in a Filep.1045.5.5 Viewing the [Source] Windowp.1045.5.6 Trimming the Sourcep.1045.6 Using the Start/Stop Functionp.1055.6.1 Opening the [Start/Stop Function Setting] Dialog Boxp.1055.6.2 Specifying the Routine to be Executedp.1055.6.3 Restrictions on the Start/Stop Functionp.107Section 6 Tutorialp.1096.1 Introductionp.1096.2 Running the High-performance Embedded Workshopp.1106.3 Setting up the E8 Emulatorp.1106.4 Setting the [Configuration] Dialog Boxp.1116.5 Checking the Operation of RAMp.1136.6 Downloading the Tutorial Programp.1156.6.1 Downloading the Tutorial Programp.1156.6.2 Displaying the Source Programp.1166.7 Setting a PC Breakpointp.1176.8 Setting Registersp.1186.9 Executing the Programp.1206.10 Reviewing Breakpointsp.1236.11 Viewing Memoryp.1246.12 Watching Variablesp.1256.13 Stepping Through a Programp.1286.13.1 Executing [Step In] Commandp.1286.13.2 Executing [Step Out] Commandp.1296.13.3 Executing [Step Over] Commandp.1306.14 Forced Breaking of Program Executionsp.1316.15 Displaying Local Variablesp.1326.16 Break Functionp.1336.16.1 PC Break Functionp.1336.17 Hardware Break Functionp.1376.18 Trace Functionsp.1406.18.1 Displaying the Trace Windowp.1406.19 Stack Trace Functionp.1416.20 What Next?p.143Appendix A Components of the E8 Emulatorp.145Appendix B Window Functionsp.147Appendix C Command-Line Functionsp.151Appendix D Notes on High-performance Embedded Workshopp.153Appendix E Diagnostic Hardware Programp.159E.1. System Setup to Execute the Check Programp.159E.2. Executing the Check Programp.159E.3 When an Error Occursp.161
Page 1 of the Renesas E8 user manual — REJ10J0768-1000
Page 1 · click to enlarge
Page 1

REJ10J0768-1000

E8 Emulator

User's Manual R0E000080KCE00E

Renesas Microcomputer Development Environment System

Rev.10.00 Aug. 1, 2007

Page 2 of the Renesas E8 user manual
Page 2 · click to enlarge
Page 2

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.

Page 3 of the Renesas E8 user manual — Introduction
Page 3 · click to enlarge
Page 3

Introduction

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.

Page 4 of the Renesas E8 user manual — Introduction
Page 4 · click to enlarge
Page 4

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

Page 5 of the Renesas E8 user manual — READ FIRST
Page 5 · click to enlarge
Page 5

IMPORTANT

READ FIRST

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.

Page 6 of the Renesas E8 user manual — IMPORTANT
Page 6 · click to enlarge
Page 6

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.

Page 7 of the Renesas E8 user manual — READ FIRST
Page 7 · click to enlarge
Page 7

Precautions for Safety

READ FIRST

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.

Page 8 of the Renesas E8 user manual — DEFINITION OF SIGNAL WORDS
Page 8 · click to enlarge
Page 8

DEFINITION OF SIGNAL WORDS

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.

Page 9 of the Renesas E8 user manual — 3. Connect the connectors in the user system and in the
Page 9 · click to enlarge
Page 9

WARNING

1. Do not repair or remodel the emulator product by yourself for electric shock prevention and quality assurance.

2. Always switch OFF the host computer and user system

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.

3. Connect the connectors in the user system and in the

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.

Page 10 of the Renesas E8 user manual — DEFINITION OF SIGNAL WORDS
Page 10 · click to enlarge
Page 10
Page 10 of the Renesas E8 user manual — DEFINITION OF SIGNAL WORDS
Page 11 of the Renesas E8 user manual — Table of Contents
Page 11 · Contents
Contents

Contents

Introductionp.3IMPORTANTp.5Precautions for Safetyp.7DEFINITION OF SIGNAL WORDSp.8Contentsp.11Section 1 Overviewp.171.1 Warningsp.191.2 Environmental Conditionsp.201.3 Componentsp.21Section 2 E8 Emulator Functionsp.232.1 Overviewp.232.2 Trace Functionsp.252.3 Break Functionsp.262.4 Memory Access Functionsp.272.5 Stack Trace Functionp.282.6 Online Helpp.28Section 3 Preparation before Usep.293.1 Emulator Preparationp.293.2 Emulator Hardware Configurationp.313.3 Emulator Software Configurationp.353.3.1 CDp.353.4 Installing Emulator’s Debuggerp.363.5 Connecting the Emulator to the Host Computerp.373.6 Connecting the Emulator to the User Systemp.393.7 Connecting System Groundp.413.8 System Checkp.423.9 Uninstalling the Emulator’s Debuggerp.51Section 4 Preparations for Debuggingp.554.1 Method for Activating High-performance Embedded Workshopp.554.1.1 Creating the New Workspace (Toolchain Not Used)p.564.1.2 Creating the New Workspace (Toolchain Used)p.604.1.3 Selecting an Existing Workspacep.724.2 Setting at E8 Emulator Activationp.744.2.1 Setting at Emulator Activationp.744.2.2 Downloading a Programp.764.2.3 Setting the Writing Flash Memory Modep.77Section 5 Debuggingp.875.1 Setting the Environment for Emulationp.875.1.1 Opening the [Configuration] Dialog Boxp.875.1.2 [General] Pagep.885.2 Downloading a Programp.905.2.1 Downloading a Programp.905.2.2 Viewing the Source Codep.915.3 Stopping Your Programp.945.3.1 Address Interrupt Breakpointsp.945.4 Using the Event Pointsp.955.4.1 PC Breakpointsp.955.4.2 Break Conditionsp.955.4.3 Opening the [Event] Windowp.955.4.4 Setting PC Breakpointsp.955.4.5 Addp.965.4.6 Editp.965.4.7 Enablep.965.4.8 Disablep.965.4.9 Deletep.965.4.10 Delete Allp.965.4.11 Go to Sourcep.975.4.12 [Set Break] Dialog Boxp.975.4.13 Setting Break Conditionsp.985.4.14 Edit...p.995.4.15 Enablep.995.4.16 Disablep.1005.4.17 Deletep.1005.4.18 Delete Allp.1005.4.19 Go to Sourcep.1005.4.20 Sequential Conditionsp.1005.4.21 Editing Break Conditionsp.1005.4.22 Modifying Break Conditionsp.1005.4.23 Enabling Break Conditionsp.1005.4.24 Disabling Break Conditionsp.1005.4.25 Deleting Break Conditionsp.1015.4.26 Deleting All Break Conditionsp.1015.4.27 Viewing the Source Line for Break Conditionsp.1015.4.28 [Break condition x] Dialog Boxp.1015.5 Viewing the Trace Informationp.1035.5.1 Opening the [Trace] Windowp.1035.5.2 Acquiring Trace Informationp.1035.5.3 Clearing the Trace Informationp.1045.5.4 Saving the Trace Information in a Filep.1045.5.5 Viewing the [Source] Windowp.1045.5.6 Trimming the Sourcep.1045.6 Using the Start/Stop Functionp.1055.6.1 Opening the [Start/Stop Function Setting] Dialog Boxp.1055.6.2 Specifying the Routine to be Executedp.1055.6.3 Restrictions on the Start/Stop Functionp.107Section 6 Tutorialp.1096.1 Introductionp.1096.2 Running the High-performance Embedded Workshopp.1106.3 Setting up the E8 Emulatorp.1106.4 Setting the [Configuration] Dialog Boxp.1116.5 Checking the Operation of RAMp.1136.6 Downloading the Tutorial Programp.1156.6.1 Downloading the Tutorial Programp.1156.6.2 Displaying the Source Programp.1166.7 Setting a PC Breakpointp.1176.8 Setting Registersp.1186.9 Executing the Programp.1206.10 Reviewing Breakpointsp.1236.11 Viewing Memoryp.1246.12 Watching Variablesp.1256.13 Stepping Through a Programp.1286.13.1 Executing [Step In] Commandp.1286.13.2 Executing [Step Out] Commandp.1296.13.3 Executing [Step Over] Commandp.1306.14 Forced Breaking of Program Executionsp.1316.15 Displaying Local Variablesp.1326.16 Break Functionp.1336.16.1 PC Break Functionp.1336.17 Hardware Break Functionp.1376.18 Trace Functionsp.1406.18.1 Displaying the Trace Windowp.1406.19 Stack Trace Functionp.1416.20 What Next?p.143Appendix A Components of the E8 Emulatorp.145Appendix B Window Functionsp.147Appendix C Command-Line Functionsp.151Appendix D Notes on High-performance Embedded Workshopp.153Appendix E Diagnostic Hardware Programp.159E.1. System Setup to Execute the Check Programp.159E.2. Executing the Check Programp.159E.3 When an Error Occursp.161
Page 17 of the Renesas E8 user manual — Section 1 Overview
Page 17 · click to enlarge
Page 17

Section 1 Overview

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.

Renesas E8 — Section 1 Overview diagram (page 17)
Fig. 1 · Section 1 Overview

Figure 1.1 System Configuration with the Emulator

Page 18 of the Renesas E8 user manual — Section 1 Overview
Page 18 · click to enlarge
Page 18

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.

Page 19 of the Renesas E8 user manual — 1.1 Warnings
Page 19 · click to enlarge
Page 19

1.1 Warnings

(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.

Page 20 of the Renesas E8 user manual — 1.2 Environmental Conditions
Page 20 · click to enlarge
Page 20

1.2 Environmental Conditions

Table 1.1 Environmental Conditions

Temperature Operating+10°C to +35°C Storage: –10°C to +50°C

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

Page 21 of the Renesas E8 user manual — 1.3 Components
Page 21 · click to enlarge
Page 21

1.3 Components

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.

Page 22 of the Renesas E8 user manual — 1.3 Components
Page 22 · click to enlarge
Page 22
Page 22 of the Renesas E8 user manual — 1.3 Components
Page 23 of the Renesas E8 user manual — 2.1 Overview
Page 23 · click to enlarge
Page 23

Section 2 E8 Emulator Functions

This section describes the emulator functions. They differ according to the device supported by the emulator.

2.1 Overview

Table 2.1 gives a functional overview of the emulator.

Table 2.1 Emulator Functions

No. Item Function

1 User program execution function

  • Executes a program with the operating frequency within a range guaranteed by devices.
  • Reset emulation
  • Step functions: Single step (one step: one instruction) Source-level step (one step: one source) Step over (a break did not occur in a subroutine) Step out (when the PC points to a location within a subroutine, execution continues until it returns to the calling 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.

  • PC break condition (255 points)
  • Forced break function
  • Address match break function
Page 24 of the Renesas E8 user manual — Section 2 E8 Emulator Functions
Page 24 · click to enlarge
Page 24

Table 2.1 Emulator Functions (cont)

No. Item Function

5 Memory access function • Downloading to RAM

  • Downloading to flash memory
  • Single-line assembly
  • Reverse assembly (disassembly)
  • Reading of memory
  • Writing to memory
  • Automatic updating of a display of selected variables during user program execution
  • FILL
  • Search
  • Move
  • Copy

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.

Page 25 of the Renesas E8 user manual — 2.2 Trace Functions
Page 25 · click to enlarge
Page 25

2.2 Trace Functions

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.

Page 26 of the Renesas E8 user manual — 2.3 Break Functions
Page 26 · click to enlarge
Page 26

2.3 Break Functions

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.

Page 27 of the Renesas E8 user manual — 2.4 Memory Access Functions
Page 27 · click to enlarge
Page 27

2.4 Memory Access Functions

The emulator has the following memory access functions.

(1) Memory read/write function

[Memory] windowThe memory contents are displayed in the window. Only the amount

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.

Page 28 of the Renesas E8 user manual — 2.6 Online Help
Page 28 · click to enlarge
Page 28

(6) Other memory operation functions Other functions are as follows:

  • Memory fill
  • Memory copy
  • Memory save
  • Memory verify
  • Memory search
  • Internal I/O display
  • Displaying label and variable names and their contents

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.

2.5 Stack Trace Function

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.

2.6 Online Help

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.

Page 29 of the Renesas E8 user manual — WARNING
Page 29 · click to enlarge
Page 29

Section 3 Preparation before Use

3.1 Emulator Preparation

Unpack the emulator and prepare it for use as follows:

WARNING

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

Show 5 more labels / short text on this page
Reference · Unpack the emulator · When the emulator · Section 3 · Section 4
Page 30 of the Renesas E8 user manual — Section 3 Preparation before Use
Page 30 · click to enlarge
Page 30
Page 30 of the Renesas E8 user manual — Section 3 Preparation before Use
Page 31 of the Renesas E8 user manual — 3.2 Emulator Hardware Configuration
Page 31 · click to enlarge
Page 31

3.2 Emulator Hardware Configuration

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.

Renesas E8 — 3.2 Emulator Hardware Configuration diagram (page 31)
Fig. 2 · 3.2 Emulator Hardware Configuration

Figure 3.2 Emulator Hardware Configuration

Page 32 of the Renesas E8 user manual — 3.2 Emulator Hardware Configuration
Page 32 · click to enlarge
Page 32

The names of each section of the emulator are explained next.

Emulator Upper-side Panel:

Renesas E8 — 3.2 Emulator Hardware Configuration diagram (page 32)
Fig. 3 · 3.2 Emulator Hardware Configuration

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)

Page 33 of the Renesas E8 user manual — 3.2 Emulator Hardware Configuration
Page 33 · click to enlarge
Page 33

Emulator Host-side Panel:

Renesas E8 — 3.2 Emulator Hardware Configuration diagram (page 33)
Fig. 4 · 3.2 Emulator Hardware Configuration

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:

Renesas E8 — 3.2 Emulator Hardware Configuration diagram (page 33)
Fig. 5 · 3.2 Emulator Hardware Configuration

Figure 3.5 Emulator User-side Panel

(a) User-side connector: A user system interface cable is connected.

(a) · (a)

Page 34 of the Renesas E8 user manual — 3.2 Emulator Hardware Configuration
Page 34 · click to enlarge
Page 34

Emulator Bottom Panel:

Renesas E8 — 3.2 Emulator Hardware Configuration diagram (page 34)
Fig. 6 · 3.2 Emulator Hardware Configuration

Figure 3.6 Emulator Bottom Panel

(a) Seal for product managementThe serial number, revision, and safety standard, etc. of the

emulator are written to. The contents differ depending on the time when you purchased the product.

(a)

Page 35 of the Renesas E8 user manual — 3.3.1 CD
Page 35 · click to enlarge
Page 35

3.3 Emulator Software Configuration

The following item is included with the emulator debugger when it is purchased: • E8 Emulator Debugger: R0E000080KCE00SR (CD)

3.3.1 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.

Page 36 of the Renesas E8 user manual — 3.4 Installing Emulator’s Debugger
Page 36 · click to enlarge
Page 36

3.4 Installing Emulator’s Debugger

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

Page 37 of the Renesas E8 user manual — WARNING
Page 37 · click to enlarge
Page 37

3.5 Connecting the Emulator to the Host Computer

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.

WARNING

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.

Page 38 of the Renesas E8 user manual — 3.5 Connecting the Emulator to the Host Computer
Page 38 · click to enlarge
Page 38

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.

Renesas E8 — 3.5 Connecting the Emulator to the Host Computer diagram (page 38)
Fig. 7 · 3.5 Connecting the Emulator to the Host Computer

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

Page 39 of the Renesas E8 user manual — 3.6 Connecting the Emulator to the User System
Page 39 · click to enlarge
Page 39

3.6 Connecting the Emulator to the User System

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.

1. Check that the host computer is turned off or the emulator is not connected to the host computer with the USB cable. 2. Connect the user system interface cable to the user-side connector of the emulator. 3. Connect the USB cable to the host-side connector of the emulator.

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

Page 40 of the Renesas E8 user manual — 3.6 Connecting the Emulator to the User System
Page 40 · click to enlarge
Page 40

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

Renesas E8 — 3.6 Connecting the Emulator to the User System diagram (page 40)
Fig. 8 · 3.6 Connecting the Emulator to the User System

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.

Page 41 of the Renesas E8 user manual — USB
Page 41 · click to enlarge
Page 41

3.7 Connecting System Ground

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

USB

Figure 3.10 Connecting System Ground

Show 10 more labels / short text on this page
Signal ground · E7 emulator · Signal · Signal · Logic Logic · Host computer · Signal ground · Signal ground · Power supply · Frame ground
Page 42 of the Renesas E8 user manual — 3.8 System Check
Page 42 · click to enlarge
Page 42

3.8 System Check

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.

1. Connect the emulator to the host computer. 2. Connect the user system interface cable to the connector of the emulator. 3. Connect the user system interface cable to the connector in the user system. 4. Select [Renesas] -> [High-performance Embedded Workshop] -> [High-performance Embedded Workshop] from [Programs] in the [Start] menu of Windows ®
5. The [Welcome!] dialog box is displayed.
Renesas E8 — 3.8 System Check diagram (page 42)
Fig. 9 · 3.8 System Check

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.

Page 43 of the Renesas E8 user manual — 3.8 System Check
Page 43 · click to enlarge
Page 43

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.

Renesas E8 — 3.8 System Check diagram (page 43)
Fig. 10 · 3.8 System Check

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

Page 44 of the Renesas E8 user manual — 3.8 System Check
Page 44 · click to enlarge
Page 44
6. The [Select Emulator mode] dialog box is displayed.
Renesas E8 — 3.8 System Check diagram (page 44)
Fig. 11 · 3.8 System Check

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.

Page 45 of the Renesas E8 user manual — CAUTION
Page 45 · click to enlarge
Page 45

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.

CAUTION

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

Page 46 of the Renesas E8 user manual — 3.8 System Check
Page 46 · click to enlarge
Page 46
7. The [Connecting] dialog box is displayed and the emulator connection is started.
Renesas E8 — 3.8 System Check diagram (page 46)
Fig. 12 · 3.8 System Check

Figure 3.14 [Connecting] Dialog Box

8. When the version of the E8 firmware downloaded into the emulator is old, the message box shown in Figure 3.15 will be displayed.
Renesas E8 — 3.8 System Check diagram (page 46)
Fig. 13 · 3.8 System Check

Figure 3.15 Dialog Box for confirming the E8 firmware download

connect/disconnect the USB cable until the download status dialog box closes.

Page 47 of the Renesas E8 user manual — CAUTION
Page 47 · click to enlarge
Page 47
9. When [Power supply is carried out. (MAX 300mA)] is not checked, the dialog box shown in Figure 3.17 will be displayed.
Renesas E8 — 3.8 System Check diagram (page 47)
Fig. 14 · 3.8 System Check

Figure 3.16 Dialog Box of the Power-on Request Message

10. The dialog box for confirming the power supply status of the user system will be displayed.
Renesas E8 — 3.8 System Check diagram (page 47)
Fig. 15 · 3.8 System Check

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.

CAUTION

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.

Page 48 of the Renesas E8 user manual — 3.8 System Check
Page 48 · click to enlarge
Page 48
11. When [Power supply is carried out. (MAX 300mA)] is not checked, power on the user system and click the [OK] button. 12. When "Connected" is displayed in the [Output] window of the High-performance Embedded Workshop, the emulator initiation is completed
Renesas E8 — 3.8 System Check diagram (page 48)
Fig. 16 · 3.8 System Check

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.

Page 49 of the Renesas E8 user manual — 3.8 System Check
Page 49 · click to enlarge
Page 49

system, the following dialog box will appear.

Renesas E8 — 3.8 System Check diagram (page 49)
Fig. 17 · 3.8 System Check

Figure 3.19 [Connector disconnected] Dialog Box

2. If the emulator is not properly initialized, one of the dialog boxes shown in figures 3.20 through 3.24 will appear.

(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.

Renesas E8 — 3.8 System Check diagram (page 49)
Fig. 18 · 3.8 System Check

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.

Renesas E8 — 3.8 System Check diagram (page 49)
Fig. 19 · 3.8 System Check

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

Page 50 of the Renesas E8 user manual — 3.8 System Check
Page 50 · click to enlarge
Page 50

(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.

Renesas E8 — 3.8 System Check diagram (page 50)
Fig. 20 · 3.8 System Check

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.

Renesas E8 — 3.8 System Check diagram (page 50)
Fig. 21 · 3.8 System Check

Figure 3.23 [Boot Failed!] Dialog Box

3. If an incorrect driver has been selected, the following dialog box will appear.
Renesas E8 — 3.8 System Check diagram (page 50)
Fig. 22 · 3.8 System Check

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

Page 51 of the Renesas E8 user manual — 3.9 Uninstalling the Emulator’s Debugger
Page 51 · click to enlarge
Page 51

3.9 Uninstalling the Emulator’s Debugger

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.

1. Activate the High-performance Embedded Workshop. 2. Click the [Administration…] button in the [Welcome!] dialog box.
Renesas E8 — 3.9 Uninstalling the Emulator’s Debugger diagram (page 51)
Fig. 23 · 3.9 Uninstalling the Emulator’s Debugger

Figure 3.25 [Welcome!] Dialog Box

3. The [Tools Administration] dialog box is opened.
Renesas E8 — 3.9 Uninstalling the Emulator’s Debugger diagram (page 51)
Fig. 24 · 3.9 Uninstalling the Emulator’s Debugger

Figure 3.26 [Tools Administration] Dialog Box

Page 52 of the Renesas E8 user manual — 3.9 Uninstalling the Emulator’s Debugger
Page 52 · click to enlarge
Page 52

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.

Renesas E8 — 3.9 Uninstalling the Emulator’s Debugger diagram (page 52)
Fig. 25 · 3.9 Uninstalling the Emulator’s Debugger

Figure 3.27 Highlighting the Product to be Uninstalled

Click the [Unregister] button. After the following message box is displayed, click the [Yes] button.

Renesas E8 — 3.9 Uninstalling the Emulator’s Debugger diagram (page 52)
Fig. 26 · 3.9 Uninstalling the Emulator’s Debugger

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.

Page 53 of the Renesas E8 user manual — 3.9 Uninstalling the Emulator’s Debugger
Page 53 · click to enlarge
Page 53
Renesas E8 — 3.9 Uninstalling the Emulator’s Debugger diagram (page 53)
Fig. 27 · 3.9 Uninstalling the Emulator’s Debugger

Figure 3.29 [Uninstall HEW Tool] Dialog Box

Click the [Start] button to list the installed components.

Renesas E8 — 3.9 Uninstalling the Emulator’s Debugger diagram (page 53)
Fig. 28 · 3.9 Uninstalling the Emulator’s Debugger

Figure 3.30 Highlighting the Product to be Uninstalled

Page 54 of the Renesas E8 user manual — 3.9 Uninstalling the Emulator’s Debugger
Page 54 · click to enlarge
Page 54

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

Page 55 of the Renesas E8 user manual — 4.1 Method for Activating High-performance Embedded Workshop
Page 55 · click to enlarge
Page 55

Section 4 Preparations for Debugging

4.1 Method for Activating High-performance Embedded Workshop

To activate the High-performance Embedded Workshop, follow the procedure listed below.

1. Connect the emulator to the host computer and the user system, then turn on the user system. 2. Select [Renesas] -> [High-performance Embedded Workshop] -> [High-performance Embedded Workshop] from [Programs] in the [Start] menu of Windows ® 3. The [Welcome!] dialog box is displayed.

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:

  • [Create a new project workspace] - a toolchain is not in use
  • [Create a new project workspace] - a toolchain is in use [Browse to another project workspace]

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.

Page 56 of the Renesas E8 user manual — 4.1.1 Creating the New Workspace (Toolchain Not Used)
Page 56 · click to enlarge
Page 56

4.1.1 Creating the New Workspace (Toolchain Not Used)

1. In the [Welcome!] dialog box that is displayed when the High-performance Embedded Workshop is activated, select [Create a new project workspace] radio button and click the [OK] button.

Figure 4.2 [Welcome!] Dialog Box

2. The Project Generator is started. This section omits the description on the setting for the toolchain. If you have not purchased the toolchain, the following dialog box is displayed.
Page 57 of the Renesas E8 user manual — 4.1.1 Creating the New Workspace (Toolchain Not Used)
Page 57 · click to enlarge
Page 57
Renesas E8 — 4.1.1 Creating the New Workspace (Toolchain Not Used) diagram (page 57)
Fig. 29 · 4.1.1 Creating the New Workspace (Toolchain Not Used…

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.

Page 58 of the Renesas E8 user manual — 4.1.1 Creating the New Workspace (Toolchain Not Used)
Page 58 · click to enlarge
Page 58
3. The following dialog box is displayed.
Renesas E8 — 4.1.1 Creating the New Workspace (Toolchain Not Used) diagram (page 58)
Fig. 30 · 4.1.1 Creating the New Workspace (Toolchain Not Used…

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

4. Set the configuration file name. The configuration file saves the setting of the Highperformance Embedded Workshop except the emulator.
Page 59 of the Renesas E8 user manual — 4.1.1 Creating the New Workspace (Toolchain Not Used)
Page 59 · click to enlarge
Page 59
Renesas E8 — 4.1.1 Creating the New Workspace (Toolchain Not Used) diagram (page 59)
Fig. 31 · 4.1.1 Creating the New Workspace (Toolchain Not Used…

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.

5. After the High-performance Embedded Workshop has been activated, the emulator is automatically connected. For operation during connection, refer to section 3.8, System Check.
Page 60 of the Renesas E8 user manual — 4.1.2 Creating the New Workspace (Toolchain Used)
Page 60 · click to enlarge
Page 60

4.1.2 Creating the New Workspace (Toolchain Used)

1. In the [Welcome!] dialog box that is displayed when the High-performance Embedded Workshop is activated, select [Create a new project workspace] radio button and click the [OK] button.

Figure 4.6 [Welcome!] Dialog Box

2. The Project Generator is started. If you have purchased the toolchain, the following dialog box is displayed.
Renesas E8 — 4.1.2 Creating the New Workspace (Toolchain Used) diagram (page 60)
Fig. 32 · 4.1.2 Creating the New Workspace (Toolchain Used)
Page 61 of the Renesas E8 user manual — 4.1.2 Creating the New Workspace (Toolchain Used)
Page 61 · click to enlarge
Page 61

Figure 4.7 [New Project Workspace] Dialog Box

Page 62 of the Renesas E8 user manual — 4.1.2 Creating the New Workspace (Toolchain Used)
Page 62 · click to enlarge
Page 62

[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.

Page 63 of the Renesas E8 user manual — 4.1.2 Creating the New Workspace (Toolchain Used)
Page 63 · click to enlarge
Page 63
3. Make the required setting for the toolchain.
Renesas E8 — 4.1.2 Creating the New Workspace (Toolchain Used) diagram (page 63)
Fig. 33 · 4.1.2 Creating the New Workspace (Toolchain 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.

Page 64 of the Renesas E8 user manual — 4.1.2 Creating the New Workspace (Toolchain Used)
Page 64 · click to enlarge
Page 64
4. Make the required settings for the RTOS.
Renesas E8 — 4.1.2 Creating the New Workspace (Toolchain Used) diagram (page 64)
Fig. 34 · 4.1.2 Creating the New Workspace (Toolchain Used)

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.

Page 65 of the Renesas E8 user manual — 4.1.2 Creating the New Workspace (Toolchain Used)
Page 65 · click to enlarge
Page 65
5. Make the required settings for the heap area etc.
Renesas E8 — 4.1.2 Creating the New Workspace (Toolchain Used) diagram (page 65)
Fig. 35 · 4.1.2 Creating the New Workspace (Toolchain Used)

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.

Page 66 of the Renesas E8 user manual — 4.1.2 Creating the New Workspace (Toolchain Used)
Page 66 · click to enlarge
Page 66
6. Make the required setting for the stack area.
Renesas E8 — 4.1.2 Creating the New Workspace (Toolchain Used) diagram (page 66)
Fig. 36 · 4.1.2 Creating the New Workspace (Toolchain Used)

Figure 4.11 [New Project-4/6-Setting the Stack Area] Dialog Box

Set the stack size and click the [Next] button.

Page 67 of the Renesas E8 user manual — 4.1.2 Creating the New Workspace (Toolchain Used)
Page 67 · click to enlarge
Page 67
7. When the tool chain settings have been completed, the following dialog box is displayed.
Renesas E8 — 4.1.2 Creating the New Workspace (Toolchain Used) diagram (page 67)
Fig. 37 · 4.1.2 Creating the New Workspace (Toolchain Used)

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.

Page 68 of the Renesas E8 user manual — 4.1.2 Creating the New Workspace (Toolchain Used)
Page 68 · click to enlarge
Page 68
8. Set a configuration file name. The configuration file saves the settings of the High-performance Embedded Workshop except for the emulator.
Renesas E8 — 4.1.2 Creating the New Workspace (Toolchain Used) diagram (page 68)
Fig. 38 · 4.1.2 Creating the New Workspace (Toolchain Used)

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

Page 69 of the Renesas E8 user manual — 4.1.2 Creating the New Workspace (Toolchain Used)
Page 69 · click to enlarge
Page 69
9. Finally, confirm the file name you create.
Renesas E8 — 4.1.2 Creating the New Workspace (Toolchain Used) diagram (page 69)
Fig. 39 · 4.1.2 Creating the New Workspace (Toolchain Used)

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.

Page 70 of the Renesas E8 user manual — 4.1.2 Creating the New Workspace (Toolchain Used)
Page 70 · click to enlarge
Page 70
10. After the High-performance Embedded Workshop has been activated, connect the emulator. However, it is not needed to connect the emulator immediately after the High-performance Embedded Workshop has been activated. To connect the emulator, use one of the methods (a) and (b) below. For operation during connection, refer to section 3.8, System Check.

(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.

Page 71 of the Renesas E8 user manual — 4.1.2 Creating the New Workspace (Toolchain Used)
Page 71 · click to enlarge
Page 71

(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.

Renesas E8 — 4.1.2 Creating the New Workspace (Toolchain Used) diagram (page 71)
Fig. 40 · 4.1.2 Creating the New Workspace (Toolchain Used)

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.

Page 72 of the Renesas E8 user manual — 4.1.3 Selecting an Existing Workspace
Page 72 · click to enlarge
Page 72

4.1.3 Selecting an Existing Workspace

1. In the [Welcome!] dialog box that is displayed when the High-performance Embedded Workshop is activated, select [Browse to another project workspace] radio button and click the [OK] button.
Renesas E8 — 4.1.3 Selecting an Existing Workspace diagram (page 72)
Fig. 41 · 4.1.3 Selecting an Existing Workspace

Figure 4.16 [Welcome!] Dialog Box

Page 73 of the Renesas E8 user manual — 4.1.3 Selecting an Existing Workspace
Page 73 · click to enlarge
Page 73
2. The [Open Workspace] dialog box is displayed. Select a directory in which you have created a workspace. After that, select the workspace file (.hws) and press the [Open] button.

Figure 4.17 [Open Workspace] Dialog Box

3. This activates the High-performance Embedded Workshop and recovers the state of the selected workspace at the time it was saved. When the saved state information of the selected workspace includes connection to the emulator, the emulator will automatically be connected. To connect the emulator when the saved state information does not include connection to the emulator, refer to section 4.1.2, Creating the New Workspace (Toolchain Used).
Page 74 of the Renesas E8 user manual — 4.2 Setting at E8 Emulator Activation
Page 74 · click to enlarge
Page 74

4.2 Setting at E8 Emulator Activation

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.

1. Select [Debug Settings…] from the [Debug] menu to open the [Debug Settings] dialog box.
Renesas E8 — 4.2 Setting at E8 Emulator Activation diagram (page 74)
Fig. 42 · 4.2 Setting at E8 Emulator Activation

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

2. Select the product name to be connected in the [Target] drop-down list box. 3. Select the format of the load module to be downloaded in the [Default Debug Format] dropdown list box, then register the corresponding download module in the [Download Modules] list box. 4. Click the [Options] tab.
Page 75 of the Renesas E8 user manual — 4.2 Setting at E8 Emulator Activation
Page 75 · click to enlarge
Page 75
Renesas E8 — 4.2 Setting at E8 Emulator Activation diagram (page 75)
Fig. 43 · 4.2 Setting at E8 Emulator Activation

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

  • At connecting the emulator
  • Immediately before downloading
  • Immediately after downloading

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.

Page 76 of the Renesas E8 user manual — 4.2.2 Downloading a Program
Page 76 · click to enlarge
Page 76

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.

Renesas E8 — 4.2.2 Downloading a Program diagram (page 76)
Fig. 44 · 4.2.2 Downloading a Program

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.

Page 77 of the Renesas E8 user manual — 4.2.3 Setting the Writing Flash Memory Mode
Page 77 · click to enlarge
Page 77

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.

Renesas E8 — 4.2.3 Setting the Writing Flash Memory Mode diagram (page 77)
Fig. 45 · 4.2.3 Setting the Writing Flash Memory Mode

Figure 4.21 [New Project Workspace] Dialog Box

Page 78 of the Renesas E8 user manual — 4.2.3 Setting the Writing Flash Memory Mode
Page 78 · click to enlarge
Page 78

(b) Select the target MCU and click the [Next] button.

Figure 4.22 [Setting the Target System for Debugging] Dialog Box

Page 79 of the Renesas E8 user manual — 4.2.3 Setting the Writing Flash Memory Mode
Page 79 · click to enlarge
Page 79

(c) Set a configuration file name and click the [Finish] button.

Figure 4.23 [Setting he Debugger Options] Dialog Box

Page 80 of the Renesas E8 user manual — 4.2.3 Setting the Writing Flash Memory Mode
Page 80 · click to enlarge
Page 80

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

Renesas E8 — 4.2.3 Setting the Writing Flash Memory Mode diagram (page 80)
Fig. 46 · 4.2.3 Setting the Writing Flash Memory Mode

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.

Page 81 of the Renesas E8 user manual — 4.2.3 Setting the Writing Flash Memory Mode
Page 81 · click to enlarge
Page 81

(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.

Renesas E8 — 4.2.3 Setting the Writing Flash Memory Mode diagram (page 81)
Fig. 47 · 4.2.3 Setting the Writing Flash Memory Mode

Figure 4.26 [ID Code verification] Dialog Box

a target device. For details, refer to the additional document “Notes on Connecting the xxxxx”.

Page 82 of the Renesas E8 user manual — 4.2.3 Setting the Writing Flash Memory Mode
Page 82 · click to enlarge
Page 82

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

Renesas E8 — 4.2.3 Setting the Writing Flash Memory Mode diagram (page 82)
Fig. 48 · 4.2.3 Setting the Writing Flash Memory Mode

Figure 4.27 High-performance Embedded Workshop Window

Page 83 of the Renesas E8 user manual — 4.2.3 Setting the Writing Flash Memory Mode
Page 83 · click to enlarge
Page 83

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

Renesas E8 — 4.2.3 Setting the Writing Flash Memory Mode diagram (page 83)
Fig. 49 · 4.2.3 Setting the Writing Flash Memory Mode

Figure 4.28 [Debug Setting] Dialog Box ([Target] Page)

(i) The download file is displayed on [Project Files].

Renesas E8 — 4.2.3 Setting the Writing Flash Memory Mode diagram (page 83)
Fig. 50 · 4.2.3 Setting the Writing Flash Memory Mode

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

Page 84 of the Renesas E8 user manual — 4.2.3 Setting the Writing Flash Memory Mode
Page 84 · click to enlarge
Page 84

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

Renesas E8 — 4.2.3 Setting the Writing Flash Memory Mode diagram (page 84)
Fig. 51 · 4.2.3 Setting the Writing Flash Memory Mode

Figure 4.30 Download Menu of the [Workspace] Window ([Project Files])

(k) The dialog box for sum checking is displayed and writing is completed.

Renesas E8 — 4.2.3 Setting the Writing Flash Memory Mode diagram (page 84)
Fig. 52 · 4.2.3 Setting the Writing Flash Memory Mode

Figure 4.31 Message for Completion of Flash Memory Writing

Page 85 of the Renesas E8 user manual — 4.2.3 Setting the Writing Flash Memory Mode
Page 85 · click to enlarge
Page 85

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

Renesas E8 — 4.2.3 Setting the Writing Flash Memory Mode diagram (page 85)
Fig. 53 · 4.2.3 Setting the Writing Flash Memory Mode

Figure 4.32 Message for Restarting or Exiting Writing Flash Memory Mod

Page 86 of the Renesas E8 user manual — 4.2.3 Setting the Writing Flash Memory Mode
Page 86 · click to enlarge
Page 86
Page 86 of the Renesas E8 user manual — 4.2.3 Setting the Writing Flash Memory Mode
Page 87 of the Renesas E8 user manual — 5.1 Setting the Environment for Emulation
Page 87 · click to enlarge
Page 87

Section 5 Debugging

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 Setting the Environment for Emulation

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
Page 88 · click to enlarge
Page 88

5.1.2 [General] Page

Sets the emulator operation conditions.

Renesas E8 — 5.1.2 [General] Page diagram (page 88)
Fig. 54 · 5.1.2 [General] Page

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
Page 89 · click to enlarge
Page 89

[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.

Page 90 of the Renesas E8 user manual — 5.2 Downloading a Program
Page 90 · click to enlarge
Page 90

5.2 Downloading a Program

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.

Page 91 of the Renesas E8 user manual — 5.2.2 Viewing the Source Code
Page 91 · click to enlarge
Page 91

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.

Renesas E8 — 5.2.2 Viewing the Source Code diagram (page 91)
Fig. 55 · 5.2.2 Viewing the Source Code

Figure 5.2 [Source] Window

Page 92 of the Renesas E8 user manual — 5.2.2 Viewing the Source Code
Page 92 · click to enlarge
Page 92

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 third column (Event column)Event information (break condition)

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.

  • Line Number column A line number for the current source file is displayed.
  • Source address column When a program is downloaded, an address for the current source file is displayed on the Source address column. These addresses are helpful when setting the PC value or a breakpoint.

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.

Renesas E8 — 5.2.2 Viewing the Source Code diagram (page 92)
Fig. 56 · 5.2.2 Viewing the Source Code

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

Page 93 of the Renesas E8 user manual — 5.2.2 Viewing the Source Code
Page 93 · click to enlarge
Page 93

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.

Renesas E8 — 5.2.2 Viewing the Source Code diagram (page 93)
Fig. 57 · 5.2.2 Viewing the Source Code

Figure 5.4 [Global Editor Column States] Dialog Box

To switch off a column in one source file

1. Open the source file which contains the column you want to remove and click the [Edit] menu. 2. Click the [Columns] menu item to display a cascaded menu item. The columns are displayed in this popup menu. If a column is enabled, it has a tick mark next to its name. Clicking the entry will toggle whether the column is displayed or not.
Page 94 of the Renesas E8 user manual — 5.3 Stopping Your Program
Page 94 · click to enlarge
Page 94

5.3 Stopping Your Program

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.

  • To set a PC breakpoint in the [Source] window 1. Make sure that the [Disassembly] or [Source] window is open at the place you want to set a PC breakpoint. 2. Double-click in the event column at the line which you want the program to stop. 3 You will see a blue circle appear in the column to indicate that a address interrupt breakpoint has been set. Now when you run your program and it reaches the address at which you set the address interrupt breakpoint, execution halts with the message "BREAK CONDITION" displayed in the [Debug] sheet of the [Output] window, and the [Source] or [Disassembly] window is updated with the address interrupt breakpoint line marked with an arrow in the gutter.

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.

Page 95 of the Renesas E8 user manual — 5.4 Using the Event Points
Page 95 · click to enlarge
Page 95

5.4 Using the Event Points

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.

Renesas E8 — 5.4 Using the Event Points diagram (page 95)
Fig. 58 · 5.4 Using the Event Points

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

Page 96 of the Renesas E8 user manual — 5.4.5 Add
Page 96 · click to enlarge
Page 96

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

Page 97 of the Renesas E8 user manual — 5.4.11 Go to Source
Page 97 · click to enlarge
Page 97

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

Renesas E8 — 5.4.11 Go to Source diagram (page 97)
Fig. 59 · 5.4.11 Go to Source

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.

Page 98 of the Renesas E8 user manual — 5.4.13 Setting Break Conditions
Page 98 · click to enlarge
Page 98

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.

Renesas E8 — 5.4.13 Setting Break Conditions diagram (page 98)
Fig. 60 · 5.4.13 Setting Break Conditions

Figure 5.7 [Eventpoint] Window ([Breakcondition] Sheet)

for each product, refer to the online help.

This window displays and sets the break condition.

Page 99 of the Renesas E8 user manual — 5.4.14 Edit...
Page 99 · click to enlarge
Page 99
1. When [Go to cursor], [Step In], [Step Over], or [Step Out] is selected, the settings of Break Condition 1 are disabled. 2. Setting of Break Condition 1 is disabled when an instruction to which a BREAKPOINT has been set is executed. 3. When step over function is used, the settings of BREAKPOINT and Break Condition 1 are disabled.
1. When [Go to cursor], [Step In], [Step Over], or [Step Out] is selected, the settings of Break Condition are disabled. 2. Setting of Break Condition is disabled when an instruction to which a BREAKPOINT has been set is executed. 3. Setting of BREAKPOINT is disabled when BREAKPOINT and Break Condition are set at same address. 4. When step over function is used, the settings of BREAKPOINT and Break Condition are disabled.

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.

Page 100 of the Renesas E8 user manual — 5.4.16 Disable
Page 100 · click to enlarge
Page 100

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

Page 101 of the Renesas E8 user manual — 5.4.25 Deleting Break Conditions
Page 101 · click to enlarge
Page 101

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

Renesas E8 — 5.4.25 Deleting Break Conditions diagram (page 101)
Fig. 61 · 5.4.25 Deleting Break Conditions

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.

Page 102 of the Renesas E8 user manual — 5.4.25 Deleting Break Conditions
Page 102 · click to enlarge
Page 102

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.

Show 4 more labels / short text on this page
Option Description · Option Description · Option Description · Option Description
Page 103 of the Renesas E8 user manual — 5.5 Viewing the Trace Information
Page 103 · click to enlarge
Page 103

5.5 Viewing the Trace Information

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.

Renesas E8 — 5.5 Viewing the Trace Information diagram (page 103)
Fig. 62 · 5.5 Viewing the Trace Information

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.

Page 104 of the Renesas E8 user manual — 5.5.3 Clearing the Trace Information
Page 104 · click to enlarge
Page 104

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:

  • Select a trace record and choose [View Source] from the popup menu.
  • Double-click a trace record The [Source] or [Disassembly] window opens and the selected line is marked with a cursor.

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.

Page 105 of the Renesas E8 user manual — 5.6 Using the Start/Stop Function
Page 105 · click to enlarge
Page 105

5.6 Using the Start/Stop Function

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.

Renesas E8 — 5.6 Using the Start/Stop Function diagram (page 105)
Fig. 63 · 5.6 Using the Start/Stop Function

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.

Page 106 of the Renesas E8 user manual — 5.6 Using the Start/Stop Function
Page 106 · click to enlarge
Page 106

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.

Page 107 of the Renesas E8 user manual — 5.6.3 Restrictions on the Start/Stop Function
Page 107 · click to enlarge
Page 107

5.6.3 Restrictions on the Start/Stop Function

The start/stop function has the following restrictions.

  • Do not change the SFR used by the firmware.
  • When the watchdog timer is used, refresh the watchdog timer in the specified routine.
  • Do not set any breakpoints in the specified routine.
  • When a stack is used in the specified routine, be sure to use the user stack.
  • A register value is undefined when execution of the specified routine is started. It is possible to change the register value in the specified routine, however, the following register and flags have 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.

  • When the content of the [Start/Stop Function Setting] dialog box is changed, the flash memory will be reprogrammed in the block which the firmware has been allocated at user program execution.
  • The specified routine is also executed when the following operations are performed: ⎯ Step operations ⎯ Watching or changing memory during user program execution ⎯ Setting an event break during user program execution
Page 108 of the Renesas E8 user manual — 5.6.3 Restrictions on the Start/Stop Function
Page 108 · click to enlarge
Page 108
Page 108 of the Renesas E8 user manual — 5.6.3 Restrictions on the Start/Stop Function
Page 109 of the Renesas E8 user manual — 6.1 Introduction
Page 109 · click to enlarge
Page 109

Section 6 Tutorial

6.1 Introduction

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 main function generates random data to be sorted.
  • The sort function sorts the generated random data in ascending order.
  • The change function then sorts the data in descending order.

The file tutorial.c contains source code for the tutorial program. The file Tutorial.x30 is a compiled load module in the IEEE695 format.

1. After recompilation, the addresses may differ from those given in this section.
2. The file Tutorial.cpp contains source code for the tutorial program of the H8 family devices. The file Tutorial.abs is a compiled load module in the Elf/Dwarf2 format.
Page 110 of the Renesas E8 user manual — 6.3 Setting up the E8 Emulator
Page 110 · click to enlarge
Page 110

6.2 Running the High-performance Embedded Workshop

To run the High-performance Embedded Workshop, refer to section 3.8, System Check.

6.3 Setting up the E8 Emulator

This section describes the basic settings of the emulator.

Page 111 of the Renesas E8 user manual — 6.4 Setting the [Configuration] Dialog Box
Page 111 · click to enlarge
Page 111

6.4 Setting the [Configuration] Dialog Box

  • Select [Emulator] then [Systems…] from the [Setup] menu for the basic settings of the emulator. The [Configuration] dialog box is displayed.
Renesas E8 — 6.4 Setting the [Configuration] Dialog Box diagram (page 111)
Fig. 64 · 6.4 Setting the [Configuration] Dialog Box

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
Page 112 · click to enlarge
Page 112

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

Page 113 of the Renesas E8 user manual — 6.5 Checking the Operation of RAM
Page 113 · click to enlarge
Page 113

6.5 Checking the Operation of RAM

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.

  • Select [Memory…] from the [CPU] submenu of the [View] menu and enter the RAM address in the [Display Address]. Here, enter ’0480’ , and ‘ 0000’ and ’FFFF’ in the [Scroll Start Address] and [Scroll End Address] edit boxes, respectively.
Renesas E8 — 6.5 Checking the Operation of RAM diagram (page 113)
Fig. 65 · 6.5 Checking the Operation of RAM

Figure 6.2 [Display Address] Dialog Box

hardware manual.

  • Click the [OK] button. The [Memory] window is displayed and shows the specified memory area.
Page 114 of the Renesas E8 user manual — 6.5 Checking the Operation of RAM
Page 114 · click to enlarge
Page 114
Renesas E8 — 6.5 Checking the Operation of RAM diagram (page 114)
Fig. 66 · 6.5 Checking the Operation of RAM

Figure 6.3 [Memory] Window

  • Placing the mouse cursor on a point in the display of data in the [Memory] window and double-clicking allows the values at that point to be changed. Data can also be directly edited around the current position of the text cursor.
Page 115 of the Renesas E8 user manual — 6.6 Downloading the Tutorial Program
Page 115 · click to enlarge
Page 115

6.6 Downloading the Tutorial Program

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.

  • Select [Download module] from [Tutorial.x30] under [Download modules].

Figure 6.4 Downloading the Tutorial Program

Page 116 of the Renesas E8 user manual — 6.6.2 Displaying the Source Program
Page 116 · click to enlarge
Page 116

6.6.2 Displaying the Source Program

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

  • Double-click [tutorial.c] under [C source file].
Renesas E8 — 6.6.2 Displaying the Source Program diagram (page 116)
Fig. 67 · 6.6.2 Displaying the Source Program

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.

Page 117 of the Renesas E8 user manual — 6.7 Setting a PC Breakpoint
Page 117 · click to enlarge
Page 117

6.7 Setting a PC Breakpoint

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:

  • Select by double-clicking the [S/W Breakpoints] column on the line containing the sort function call.
Renesas E8 — 6.7 Setting a PC Breakpoint diagram (page 117)
Fig. 68 · 6.7 Setting a PC Breakpoint

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.

Page 118 of the Renesas E8 user manual — 6.8 Setting Registers
Page 118 · click to enlarge
Page 118

6.8 Setting Registers

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

  • Select [Registers] from the [CPU] submenu of the [View] menu. The [Register] window is displayed.
Renesas E8 — 6.8 Setting Registers diagram (page 118)
Fig. 69 · 6.8 Setting Registers

Figure 6.7 [Register] Window

Page 119 of the Renesas E8 user manual — 6.8 Setting Registers
Page 119 · click to enlarge
Page 119

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.

Renesas E8 — 6.8 Setting Registers diagram (page 119)
Fig. 70 · 6.8 Setting Registers

Figure 6.8 [Register] Dialog Box (PC)

Page 120 of the Renesas E8 user manual — 6.9 Executing the Program
Page 120 · click to enlarge
Page 120

6.9 Executing the Program

Execute the program as described in the following:

  • To execute the program, select [Go] from the [Debug] menu, or click the [Go] button on the toolbar.

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

Page 121 of the Renesas E8 user manual — 6.9 Executing the Program
Page 121 · click to enlarge
Page 121
Renesas E8 — 6.9 Executing the Program diagram (page 121)
Fig. 71 · 6.9 Executing the Program

Figure 6.10 [Source] Window (Break State)

Page 122 of the Renesas E8 user manual — 6.9 Executing the Program
Page 122 · click to enlarge
Page 122

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

  • Select [Status] from the [CPU] submenu of the [View] menu. After the [Status] window is displayed, open the [Platform] sheet, and check the Status of Cause of last break .
Renesas E8 — 6.9 Executing the Program diagram (page 122)
Fig. 72 · 6.9 Executing the Program

Figure 6.11 [Status] Window

for each product, refer to the online help.

Page 123 of the Renesas E8 user manual — 6.10 Reviewing Breakpoints
Page 123 · click to enlarge
Page 123

6.10 Reviewing Breakpoints

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

  • Select [Eventpoints] from the [Code] submenu of the [View] menu. The [Eventpoint] window is displayed. Select the [Breakpoint] sheet.
Renesas E8 — 6.10 Reviewing Breakpoints diagram (page 123)
Fig. 73 · 6.10 Reviewing Breakpoints

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.

Page 124 of the Renesas E8 user manual — 6.11 Viewing Memory
Page 124 · click to enlarge
Page 124

6.11 Viewing Memory

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:

  • Select [Memory …] from the [CPU] submenu of the [View] menu, enter _main in the [Display Address] edit box, enter 0000 and FFFF in the [Scroll Start Address] and [Scroll End Address] edit boxes, respectively.
Renesas E8 — 6.11 Viewing Memory diagram (page 124)
Fig. 74 · 6.11 Viewing Memory

Figure 6.13 [Display Address] Dialog Box

  • Click the [OK] button. The [Memory] window showing the specified area of memory is displayed.
Renesas E8 — 6.11 Viewing Memory diagram (page 124)
Fig. 75 · 6.11 Viewing Memory

Figure 6.14 [Memory] Window

Page 125 of the Renesas E8 user manual — 6.12 Watching Variables
Page 125 · click to enlarge
Page 125

6.12 Watching Variables

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:

  • Click the left of displayed array a in the [Source] window to position the cursor.
  • Select [Instant Watch...] with the right-hand mouse button.

The following dialog box will be displayed.

Renesas E8 — 6.12 Watching Variables diagram (page 125)
Fig. 76 · 6.12 Watching Variables

Figure 6.15 [Instant Watch] Dialog Box

  • Click the [Add] button to add a variable to the [Watch] window.
Renesas E8 — 6.12 Watching Variables diagram (page 125)
Fig. 77 · 6.12 Watching Variables

Figure 6.16 [Watch] Window (Displaying the Array)

Page 126 of the Renesas E8 user manual — 6.12 Watching Variables
Page 126 · click to enlarge
Page 126

The user can also add a variable to the [Watch] window by specifying its name.

  • Click the [Watch] window with the right-hand mouse button and select [Add Watch…] from the popup menu.

The following dialog box will be displayed. Enter variable i.

Renesas E8 — 6.12 Watching Variables diagram (page 126)
Fig. 78 · 6.12 Watching Variables

Figure 6.17 [Add Watch] Dialog Box

  • Click the [OK] button.

The [Watch] window will now also show the int-type variable i.

Renesas E8 — 6.12 Watching Variables diagram (page 126)
Fig. 79 · 6.12 Watching Variables

Figure 6.18 [Watch] Window (Displaying the Variable)

Page 127 of the Renesas E8 user manual — 6.12 Watching Variables
Page 127 · click to enlarge
Page 127

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

Renesas E8 — 6.12 Watching Variables diagram (page 127)
Fig. 80 · 6.12 Watching Variables

Figure 6.19 [Watch] Window (Displaying Array Elements)

Page 128 of the Renesas E8 user manual — 6.13 Stepping Through a Program
Page 128 · click to enlarge
Page 128

6.13 Stepping Through a Program

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

Renesas E8 — 6.13 Stepping Through a Program diagram (page 128)
Fig. 81 · 6.13 Stepping Through a Program

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
Page 129 · click to enlarge
Page 129

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.

  • To step out of the sort function, select [Step Out] from the [Debug] menu, or click the [Step Out] button on the toolbar.

Cursor].

Figure 6.22 [Step Out] Button

Renesas E8 — 6.13.2 Executing [Step Out] Command diagram (page 129)
Fig. 82 · 6.13.2 Executing [Step Out] Command

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
Page 130 · click to enlarge
Page 130

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.

  • To step through all statements in the change function at a single step, select [Step Over] from the [Debug] menu, or click the [Step Over] button on the toolbar.

Figure 6.24 [Step Over] Button

Renesas E8 — 6.13.3 Executing [Step Over] Command diagram (page 130)
Fig. 83 · 6.13.3 Executing [Step Over] Command

Figure 6.25 [High-performance Embedded Workshop] Window (Step Over)

Page 131 of the Renesas E8 user manual — 6.14 Forced Breaking of Program Executions
Page 131 · click to enlarge
Page 131

6.14 Forced Breaking of Program Executions

The High-performance Embedded Workshop can force a break in the execution of a program.

  • Cancel all breaks.
  • To execute the remaining sections of the main function, select [Go] from the [Debug] menu or the [Go] button on the toolbar.

Figure 6.26 [Go] Button

  • The program goes into an endless loop. To force a break in execution, select [Halt] from the [Debug] menu or the [Halt] button on the toolbar.

Figure 6.27 [Halt] Button

Page 132 of the Renesas E8 user manual — 6.15 Displaying Local Variables
Page 132 · click to enlarge
Page 132

6.15 Displaying Local Variables

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.

  • Select [Locals] from the [Symbol] submenu of the [View] menu. The [Locals] window is displayed.

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.

Renesas E8 — 6.15 Displaying Local Variables diagram (page 132)
Fig. 84 · 6.15 Displaying Local Variables

Figure 6.28 [Locals] Window

  • Click mark ‘+’ at the left side of array a in the [Locals] window to display the elements.
  • When the user refers to the elements of array a before and after the execution of the sort function, it is clarified that random data is sorted in descending order.
Page 133 of the Renesas E8 user manual — 6.16 Break Function
Page 133 · click to enlarge
Page 133

6.16 Break Function

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.

  • Select [Eventpoints] from the [Code] submenu of the [View] menu. The [Eventpoint] window is displayed.
  • Select the [Breakpoint] sheet.
Renesas E8 — 6.16 Break Function diagram (page 133)
Fig. 85 · 6.16 Break Function

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

Page 134 of the Renesas E8 user manual — 6.16 Break Function
Page 134 · click to enlarge
Page 134
  • Click the [Event] window with the right-hand mouse button and select [Add…] from the popup menu.
  • Enter H'0E1F2 in the [Address] edit box.
Renesas E8 — 6.16 Break Function diagram (page 134)
Fig. 86 · 6.16 Break Function

Figure 6.30 [Set Break] Dialog Box

  • Click the [OK] button.
Page 135 of the Renesas E8 user manual — 6.16 Break Function
Page 135 · click to enlarge
Page 135

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

Renesas E8 — 6.16 Break Function diagram (page 135)
Fig. 87 · 6.16 Break Function

Figure 6.31 [Eventpoint] Window (PC Breakpoint Setting)

To stop the tutorial program at the PC breakpoint, the following procedure must be executed:

  • Close the [Eventpoint] window.
  • 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.
  • If program execution is failed, reset the device and execute again the procedures above.

The program runs, and stops at the set PC breakpoint.

Renesas E8 — 6.16 Break Function diagram (page 135)
Fig. 88 · 6.16 Break Function

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

Page 136 of the Renesas E8 user manual — 6.16 Break Function
Page 136 · click to enlarge
Page 136

The [Status] window displays the following contents.

Renesas E8 — 6.16 Break Function diagram (page 136)
Fig. 89 · 6.16 Break Function

Figure 6.33 Displayed Contents of the [Status] Window (PC Break)

for each product, refer to the online help.

Page 137 of the Renesas E8 user manual — 6.17 Hardware Break Function
Page 137 · click to enlarge
Page 137

6.17 Hardware Break Function

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

  • Select [Eventpoints] from the [Code] submenu of the [View] menu. The [Eventpoint] window is displayed.
  • The PC breakpoint that has been previously set is deleted. Click the [Eventpoint] window with the right-hand mouse button and select [Delete All] from the popup menu to cancel all PC breakpoints that have been set.
  • To set a Break condition 1, click the [Break condition] tab.
  • Select a line of Break condition 1 in the [Eventpoint] window. When highlighted, double-click this line.
Renesas E8 — 6.17 Hardware Break Function diagram (page 137)
Fig. 90 · 6.17 Hardware Break Function

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

Page 138 of the Renesas E8 user manual — 6.17 Hardware Break Function
Page 138 · click to enlarge
Page 138
  • The [Break condition 1] dialog box is displayed.
  • Clear the [Don't care] check box in the [Address] group box.
  • Select the [Only program fetched address after] radio button and enter H'0E1F2 as the value in the [Address] edit box.
Renesas E8 — 6.17 Hardware Break Function diagram (page 138)
Fig. 91 · 6.17 Hardware Break Function

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.

Page 139 of the Renesas E8 user manual — 6.17 Hardware Break Function
Page 139 · click to enlarge
Page 139

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

Renesas E8 — 6.17 Hardware Break Function diagram (page 139)
Fig. 92 · 6.17 Hardware Break Function

Figure 6.36 [Source] Window at Execution Stop (Break Condition 1)

The [Status] window displays the following contents.

Renesas E8 — 6.17 Hardware Break Function diagram (page 139)
Fig. 93 · 6.17 Hardware Break Function

Figure 6.37 Displayed Contents of the [Status] Window (Break Condition 1)

for each product, refer to the online help.

Page 140 of the Renesas E8 user manual — 6.18 Trace Functions
Page 140 · click to enlarge
Page 140

6.18 Trace Functions

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.

Renesas E8 — 6.18 Trace Functions diagram (page 140)
Fig. 94 · 6.18 Trace Functions

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.

Page 141 of the Renesas E8 user manual — 6.19 Stack Trace Function
Page 141 · click to enlarge
Page 141

6.19 Stack Trace Function

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.

  • Double-click the [S/W Breakpoints] column in the sort function and set a PC breakpoint.
Renesas E8 — 6.19 Stack Trace Function diagram (page 141)
Fig. 95 · 6.19 Stack Trace Function

Figure 6.39 [Source] Window (PC Breakpoint Setting)

  • Set the same program counter value (PC = H’0E612) as was set in section 6.8, Setting Registers (again, use the [Register] window). Click the [Go] button.
Page 142 of the Renesas E8 user manual — 6.19 Stack Trace Function
Page 142 · click to enlarge
Page 142
  • After the break in program execution, select [Stack Trace] from the [Code] submenu of the [View] menu to open the [Stack Trace] window.
Renesas E8 — 6.19 Stack Trace Function diagram (page 142)
Fig. 96 · 6.19 Stack Trace Function

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.

Page 143 of the Renesas E8 user manual — 6.20 What Next?
Page 143 · click to enlarge
Page 143

6.20 What Next?

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.

Page 144 of the Renesas E8 user manual — 6.20 What Next?
Page 144 · click to enlarge
Page 144
Page 144 of the Renesas E8 user manual — 6.20 What Next?
Page 145 of the Renesas E8 user manual — R0C40008XSW06R
Page 145 · click to enlarge
Page 145

Appendix A Components of the E8 Emulator

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

1 R0E000080KCE00Depth: 65 mm, Width: 97 mm, Height: 21 mm, Mass: 60.0 g
(ModelR0E000080KCE00)

User system interface cable

1 Length20 cm (connector part not included), Mass: 20.0 g
1 Length1.5 m, Mass: 52.0 g

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

E8SCP.EXE

M3T-NC308WA

M3T-NC30WA

(Provided with the R8C E8 emulator setup program)

R0C40008XSW06R

(Provided with the H8 E8 emulator setup program)

Show 9 more labels / short text on this page
Hard- ware · E8 emulator · USB cable · Soft- ware · M32C evaluation compiler · M16C evaluation compiler · and · and · H8 evaluation compiler
Page 146 of the Renesas E8 user manual — Appendix A Components of the E8 Emulator
Page 146 · click to enlarge
Page 146
Page 146 of the Renesas E8 user manual — Appendix A Components of the E8 Emulator
Page 147 of the Renesas E8 user manual — Appendix B Window Functions
Page 147 · click to enlarge
Page 147

Appendix B Window Functions

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

Page 148 of the Renesas E8 user manual — Appendix B Window Functions
Page 148 · click to enlarge
Page 148

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.

Show 9 more labels / short text on this page
Button Remarks · Setup Radix Hexadecimal · Decimal · Octal · Binary · Emulator System… · Reset CPU · Go F5 · Go To Cursor
Page 149 of the Renesas E8 user manual — Appendix B Window Functions
Page 149 · click to enlarge
Page 149

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.

Show 9 more labels / short text on this page
Button Remarks · Debug (cont) · Step In F11 · Step Over F10 · Step Mode · Halt Program Esc · Debug (cont) · Connect · Disconnect
Page 150 of the Renesas E8 user manual — Appendix B Window Functions
Page 150 · click to enlarge
Page 150

Table B.1 Window Functions (cont)

Menu Option Shortcut Toolbar

Download Modules Downloads the object program.

Unload Modules Unloads the object program.

Button Remarks

Page 151 of the Renesas E8 user manual — Appendix C Command-Line Functions
Page 151 · click to enlarge
Page 151

Appendix C Command-Line Functions

The emulator supports the commands that can be used in the command-line window.

For details, refer to the online help.

Page 152 of the Renesas E8 user manual — Appendix C Command-Line Functions
Page 152 · click to enlarge
Page 152
Page 152 of the Renesas E8 user manual — Appendix C Command-Line Functions
Page 153 of the Renesas E8 user manual — Appendix D Notes on High-performance Embedded
Page 153 · click to enlarge
Page 153

Appendix D Notes on High-performance Embedded

Workshop

1. Note on Moving Source File Position after Creating Load Module When the source file is moved after creating the load module, the [Open] dialog box may be displayed to specify the source file during the debugging of the created load module. Select the corresponding source file and click the [Open] button.
2. Source-Level Execution ⎯ Source file

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.

3. Operation During Accessing Files Do not perform other operations during downloading the load module or saving in the [Verify Memory], [Save Memory], or [Trace] window because this will not allow correct file accessing to be performed.
4. Watch ⎯ Local variables at optimization

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 =

Page 154 of the Renesas E8 user manual — Appendix D Notes on High-performance Embedded Workshop
Page 154 · click to enlarge
Page 154

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.

5. Line Assembly ⎯ Input radix

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.

6. Command Line Interface ⎯ Batch file

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.

ExampleTo display “Not currently available” during memory_fill execution:

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.

ExampleFILE_LOAD C:\Hew3\Tools\Renesas\DebugComp\Platform\E8\ E8R8C\TutorialR8C\Tutorial\Debug_R8C_E8_SYSTEM\Tutorial.x30
7. Memory Save During User Program Execution Do not execute memory save or verifying during user program execution.
8. Load of Motorola S-type Files This High-performance Embedded Workshop does not support Motorola S-type files with only the CR code (H'0D) at the end of each record. Load Motorola S-type files with the CR and LF codes (H'0D0A) at the end of each record.
9. [I/O] window ⎯ Display and modification

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

Page 155 of the Renesas E8 user manual — Appendix D Notes on High-performance Embedded Workshop
Page 155 · click to enlarge
Page 155
10. Note on [Register] Window Operation During Program Execution The register value cannot be changed in the [Register] window during program execution. Even if the changed value is displayed, the register contents are not changed actually.

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.

12. Break Functions ⎯ When the PC breakpoint is set in the flash memory area, the program is written to the flash

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.

13. Number of BREAKPOINT and [Stop At] Settings in the [Run...] Menu The maximum number of BREAKPOINTs and [Stop At] settings allowed in the [Run...] menu is 255. Therefore, when 255 BREAKPOINTs are set, specification by [Stop At] in the [Run...] menu becomes invalid. Use the BREAKPOINTs and [Stop At] in the [Run...] menu with 255 or less total settings.
14. Note on RUN-TIME Display The execution time of the user program displayed in the [Status] window is not a correct value since the timer in the host computer has been used.
15. Note on Displaying Timeout error If Timeout error is displayed, the emulator cannot communicate with the target microcomputer. Turn off the emulator and the user system and connect the emulator again by using the High-performance Embedded Workshop.
16. Support of Double Float Format In the following memory operations, the double float format is not supported:

⎯ [Fill Memory] dialog box ⎯ [Search Memory] dialog box

Page 156 of the Renesas E8 user manual — Appendix D Notes on High-performance Embedded Workshop
Page 156 · click to enlarge
Page 156

The [Format] specification in the [Copy Memory] dialog box is ignored. Memory is copied in a byte unit.

17. Note on Using the [Run Program] Dialog Box When [Run...] is selected from the [Debug] menu to specify the stop address, there is the following note: ⎯ When the breakpoint that has been set as Disable is specified as the stop address, note that

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.

19. Memory Access during User Program Execution When a memory is accessed from the memory window, etc. during user program execution, the user program is resumed after it has stopped in the E8 emulator to access the memory. Therefore, realtime emulation cannot be performed

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

Page 157 of the Renesas E8 user manual — Appendix D Notes on High-performance Embedded Workshop
Page 157 · click to enlarge
Page 157

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.

Page 158 of the Renesas E8 user manual — Appendix D Notes on High-performance Embedded Workshop
Page 158 · click to enlarge
Page 158
Page 158 of the Renesas E8 user manual — Appendix D Notes on High-performance Embedded Workshop
Page 159 of the Renesas E8 user manual — E.2. Executing the Check Program
Page 159 · click to enlarge
Page 159

Appendix E Diagnostic Hardware Program

This manual describes the troubleshooting procedure that applies the check program for the E8 emulator.

E.1. System Setup to Execute the Check Program

(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.

  • E8 emulator station
  • USB cable included with the E8 emulator
  • CD included with the E8 emulator
  • Host computer (hareafter, PC) Install the High-performance Embedded Workshop and USB driver on the PC in advance.

(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.

E.2. Executing the Check Program

(1) Execute [Program]-[Renesas]-[High-performance Embedded Workshop]-[E8 Self Check

Program].

Renesas E8 — E.2. Executing the Check Program diagram (page 159)
Fig. 97 · E.2. Executing the Check Program

Figure E.1 Starting Up the Check Program

Page 160 of the Renesas E8 user manual — Appendix E Diagnostic Hardware Program
Page 160 · click to enlarge
Page 160

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

program showing the message ‘RUNNING’.

Renesas E8 — Appendix E Diagnostic Hardware Program diagram (page 160)
Fig. 98 · Appendix E Diagnostic Hardware Program

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.

Renesas E8 — Appendix E Diagnostic Hardware Program diagram (page 160)
Fig. 99 · Appendix E Diagnostic Hardware Program

Figure E.3 Quitting the Check Program

Page 161 of the Renesas E8 user manual — E.3 When an Error Occurs
Page 161 · click to enlarge
Page 161

E.3 When an Error Occurs

(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.

Renesas E8 — E.3 When an Error Occurs diagram (page 161)
Fig. 100 · E.3 When an Error Occurs

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:

Renesas Tool Homepagehttp://www.renesas.com/fmwk.jsp?cnt=software_tools_landing.jsp&fp=/ products/tools/&site=I
Page 162 of the Renesas E8 user manual — E.3 When an Error Occurs
Page 162 · click to enlarge
Page 162
Page 162 of the Renesas E8 user manual — E.3 When an Error Occurs
Page 163 of the Renesas E8 user manual — E.3 When an Error Occurs
Page 163 · click to enlarge
Page 163

E8 Emulator User's Manual

Publication DateAug. 1, 2004 Aug. 1, 2007

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.

Page 164 of the Renesas E8 user manual — E8 Emulator User's Manual
Page 164 · click to enlarge
Page 164

E8 Emulator User's Manual

Sources

References & links

Pages referenced in this manual — manufacturer, support and downloads.

Ask about the Renesas E8

Owners and our team usually reply within a day — and your question helps the next person too.

Add your email to get notified when it’s answered — no spam, ever.

0 questions
No questions yet about the Renesas E8

Be the first to ask — other owners or our team will answer.

Original document

Renesas E8 manual PDF

164 pages·2.5 MB·Network Card·PDF
Click any page above to open it here
Page 1 / …
100%
Loading pages…