REJ06J0008-0100 Renesas E8 Emulator Introductory Guide for H8/300H Tiny Application Notes Renesas Single-Chip Microcomputer H8 Family / H8/Tiny Series Rev.1.00 Mar.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny Renesas E8 Emulator Introductory Guide for H8/300H Tiny Introduction Notes Renesas Technology Corp. (hereafter referred to as Renesas) reserves the right to change, wholly or partially, the specifications, design, user's manual, and other documentation at any time without notice. This documentation and emulator product are copyrighted and all rights are reserved by Renesas.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny Contents 1. Overview ........................................................................................................................................... 3 2. Components and Environment ......................................................................................................... 4 3. Product Specifications....................................................................................................................... 7 4.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 1. Overview This introductory guide (application note) is intended for first-time users of the E8 emulator. It provides simple descriptions regarding the E8 emulator to help the user easily follow a straight path from unpacking of the emulator to running and stopping of a program without getting lost on the way. The operating procedures are described in sections 4 through 6.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 2. Components and Environment This section shows the components of the E8 emulator and the devices and environment needed to use the E8 emulator. Unpack the E8 emulator package and check the components against the component list. 2.1 Components Table 2.1 is a list of the E8 emulator components. Table 2.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 2.2 Operating Environment The software products provided together with the E8 emulator operate on the host computer and OS version shown in table 2.2. Table 2.3 Operating Environment Host computer IBM PC/AT with the USB1.1 or USB2.0 (Full-Speed) interface OS Microsoft Windows® 2000 or XP CPU Pentium® III or higher-performance CPU (600 MHz or higher performance recommended) 128 Mbytes or more (512 Mbytes or more recommended) Memory 2.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 2.5 Machines and Tools to be Prepared by the User Please prepare the following machines and tools. • Host computer • Update files for the E8 emulator software (*1) • Update files for integrated development environment High-performance Embedded Workshop (*1) Notes: 1. Please visit the Renesas website and obtain update modules if a newer version exists.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 3. 3.1 Product Specifications C Compiler The free evaluation-version C/C++ compiler package for the H8SX, H8S, and H8 family is provided in the CD-ROM. This C/C++ compiler package creates a debugging information file from the C or assembly-language source programs. Note that the free evaluation version has limitations in comparison with the production-version C compiler. For the limitations, refer to section 7.1, Limitations on C Compiler. 3.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 4. Installing the Software 4.1 4.1.1 Installing the Provided Software Before Starting Installation (1) Do not connect the E8 emulator to the host computer before the provided software is installed. ⎯ Installing the provided software transfers the E8 emulator driver to the host computer, and the new hardware detection processing will automatically start.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (3) The [Choose Setup Language] dialog box will appear. Select [English] and click the [Next] button. Figure 4.2 Choosing the Language for Installation (4) The [E8 Emulator Software] installation starts as the first component in the full-screen mode. Figure 4.3 Starting the E8 Emulator Software Installation REJ06J0008-0100/Rev.1.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (5) The [Welcome to the InstallShield Wizard for E8 Emulator Software] dialog box will appear. Click the [Next] button. Figure 4.4 Dialog Box for Starting the E8 Emulator Software Installation (6) The [License Agreement] dialog box will appear. Read the contents and click the [Yes] button. Figure 4.5 License Agreement for the E8 Emulator Software (7) The [Region Selection] dialog box will appear.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (8) The [Select Features] dialog box will appear. Deselect the functions that will not be used, and click the [Next] button. This guide shows an example of deselecting the M32C/M16C/R8C series. Figure 4.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (9) The [Choose Destination Location] dialog box will appear. To change [Destination folder], click the [Browse...] button and select the target folder. Check [Destination folder], and click the [Next] button. This guide shows an example of using the default installation folder. Figure 4.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (11) The following progress bar will be displayed while the program files are being copied. Figure 4.11 Progress Bar for E8 Emulator Software Installation (12) The [InstallShield Wizard Complete] dialog box will appear. Click the [Finish] button. Figure 4.12 Completing E8 Emulator Software Installation REJ06J0008-0100/Rev.1.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (13) The [Supplementary and Precautions for Emulator E8] window will be displayed in html form. Figure 4.13 Supplementary and Precautions for Emulator E8 Be sure to read the notes and remarks on the E8 emulator. This also includes the website address where the latestversion software for the E8 emulator is available. For more information about the latest version and other supplementary information, refer to the descriptions at the website.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (15) The [Welcome to the InstallShield Wizard for Renesas AutoUpdate Utility V.*.**.**] dialog box will appear. Click the [Next] button. Figure 4.15 Dialog Box for Starting AutoUpdate Utility Installation (16) The [Choose Destination Location] dialog box will appear. To change [Destination folder], click the [Browse...] button and select the target folder. Check [Destination folder], and click the [Next] button.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (17) The [Installation options] dialog box will appear. Selecting [I want to register the AutoUpdate utility to the startup folder] enables the product update information to be automatically monitored. Select the installation option if necessary and click the [Next] button. Figure 4.17 Option for AutoUpdate Utility Installation (18) The [Start Copying Files] dialog box will appear. Click the [Next] button. Figure 4.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (19) After file copying finishes, notes on the Renesas AutoUpdate Utility installation will be displayed in html form. Read the notes and close the window. Figure 4.19 Notes on AutoUpdate Utility Installation (20) After the [AutoUpdate Utility] component has been installed, the [InstallShield Wizard Complete] dialog box will appear. Click the [Finish] button. Figure 4.20 Completing AutoUpdate Utility Installation REJ06J0008-0100/Rev.1.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (21) If the [Restarting Windows] dialog box appears, select the [No, I will restart my computer later.] radio button and click the [OK] button. Restart the computer manually after completing the installation of all components. Figure 4.21 Dialog Box for Confirming Windows® Restart (22) The [Autorun] dialog box will appear. Click the [OK] button. This completes installation of all selected components. Figure 4.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 5. Installing the Driver 5.1 Wizard for Adding Hardware (1) Connect the E8 emulator body to the host computer through the USB cable. (2) The [Found New Hardware Wizard] dialog box will appear. Select the [No, not this time] radio button and click [Next]. Figure 5.1 [Found New Hardware Wizard] Dialog Box This guide shows an example of the wizard in Windows® XP Service Pack 2 (SP2).
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (4) Windows® automatically detects and installs the driver. To enable automatic driver detection, the E8 emulator software should be installed in advance. For the E8 emulator software installation, refer to section 4, Installing the Software. Figure 5.3 Dialog Box Shown during Driver Installation Note: When a driver is installed in Windows® XP, a warning message from the Windows® logo test may be displayed, but this is not a problem.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 6. Let's Try Using the E8 Emulator This section describes the basic usage of the E8 emulator with regard to the sample program in the supplied CD-ROM. 6.1 6.1.1 Before Starting Checking the Software This example uses the C compiler, High-performance Embedded Workshop, and the E8 emulator software supplied with the emulator. Be sure to check that the software is installed in the computer before using the emulator.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 6.3 Sample Program Execution Procedures This section guides you through the procedures for loading the sample program in memory, executing it, and checking the resultant value of a variable through the following procedures. Start of operation Opening a workspace Connecting the E8 emulator Loading a sample program Opening a source file Setting a breakpoint Executing a program Break occurrence Checking a variable End of Operation Figure 6.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny Select the [Browse to another project workspace] radio button in the [Welcome!] dialog box and click the [OK] button. Figure 6.5 Selecting the Workspace Processing (2)The [Open Workspace] dialog box will appear. Figure 6.6 Selecting a Workspace File When the software from the CD-ROM of this product has been installed, workspace "Tutorial.hws" is stored in the folder structure shown below (standard location).
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (3) If the workspace version is old, the following dialog box will appear. To update it to the new version, click the [OK] button. Figure 6.8 Dialog Box Shown for Old-Version Workspace (4) If the [Toolchain missing] dialog box appears, select the target project name and click the [OK] button. Figure 6.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (6) If the [Change Toolchain Version Summary] dialog box appears, just click the [OK] button. Figure 6.11 Checking the New Toolchain Version 6.3.2 Connecting the E8 Emulator (1) The [Select Emulator mode] dialog box will appear. Figure 6.12 Target Device Name and Flash Memory Processing for Emulation In the [Device] menu, the name of the device mounted on the user system should be specified. Select [H8/3664F] here.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (2) When the E8 emulator is connected for the first time, the [Please choose driver] dialog box will appear. Click the [OK] button. Figure 6.13 Prompt to Choose the Driver for the First-Time Connection of E8 Emulator through USB If the E8 emulator had been connected to the host computer through a USB before, the [Please choose driver] dialog box and the subsequent [Driver Details] dialog box are skipped.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (4) If the [e8h8] dialog box appears, just click the [OK] button. Figure 6.15 Dialog Box Requesting Older-Version E8 Firmware (5) The [Power Supply] dialog box will appear. Figure 6.16 Selecting the Power Supply Method Select [Power supply is carried out. (MAX 300mA)]. Select the [5.0 V] radio button for [Voltage select] and click the [OK] button. (6) The [System Clock] dialog box will appear. Figure 6.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (8) While the E8 emulator connection is in progress, the [Connecting] dialog box is shown. Figure 6.19 Dialog Box Shown during E8 Emulator Connection (9) After the E8 emulator has been connected, [Connected] is displayed in the [Debug] tab. Figure 6.20 Message Shown When E8 Emulator Connection is Established REJ06J0008-0100/Rev.1.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 6.3.3 Loading a Sample Program (1) Select [Download Modules] form the [Debug] menu to load the sample program. Figure 6.21 Downloading the Sample Program (2) Select the file with extension .abs registered in the workspace. Figure 6.22 Selecting the Sample Program File REJ06J0008-0100/Rev.1.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 6.3.4 Opening a Source File (1) Double-click the target source file name in the workspace to open the source code. Figure 6.23 Opening a Source File Select "tutorial.cpp" here. REJ06J0008-0100/Rev.1.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 6.3.5 Setting a Breakpoint (1) Scroll the source code display to show line 47 by using the scroll bar. Double-click line 47 Figure 6.24 Setting a Hardware Break Here, double-click the [Event] column on line 47 to set a break condition. A blue dot indicates that a break condition has been set. To clear a break condition previously set, double-click the blue dot.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 6.3.6 Executing a Program (1) Select [Reset Go] from the [Debug] menu to execute a program. Figure 6.25 Executing a Program after a Reset REJ06J0008-0100/Rev.1.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 6.3.7 Break Occurrence (1) When a break condition is satisfied, the source window shows the program stop position. Figure 6.26 Screen Showing Break Condition Satisfaction The yellow arrow points to the program counter location and the corresponding source line is highlighted in yellow. "BREAK CONDITION 1" is displayed as the program stop cause in the [Debug] tab and on the status bar. REJ06J0008-0100/Rev.1.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 6.3.8 Checking Variable Contents (1) To show the contents of a variable, select [Symbol] from the [View] menu and select [Watch]. Figure 6.27 Selecting the Memory Watch Function (2) Select [Add Watch...] from the menu opened by right-clicking on the Watch window. Right-click Figure 6.28 Adding a Symbol in the Watch Window REJ06J0008-0100/Rev.1.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny (3) The [Add Watch] dialog box will appear. Enter "a" (symbol name) in the [Variable or expression:] edit box and click the [OK] button. Figure 6.29 Specifying a Symbol Name When specifying a local variable in C language as a watch symbol, note that the variable has a scope (a valid range). A local variable is only valid while the program counter (PC) points to a location in the function that declared the local variable.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 7. Limitations 7.1 Limitations on Free Evaluation-Version C Compiler 1) The free evaluation-version compiler has no limitations in usage for 60 days after it is used for compilation for the first time. 2) From the 61st day on, the linkage size is limited to within 64 Kbytes. 7.2 Limitations on Emulator Software There are two types of documents related to the E8 emulator: common documents and additional documents.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 7.3 Memory Map The H8/3664 group device has a 64-Kbyte address area including both the program area and data area. Figure 7.1 shows the memory map of the flash memory-version device. Figure 7.1 H8/3664 Memory Map REJ06J0008-0100/Rev.1.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 8. 8.1 Frequently Asked Questions A communication error has occurred at startup. If a communication error has occurred at startup, confirm the following. 1) The USB cable and user system interface cable are correctly connected. 2) The power is supplied to the CPU board when an external power source is used. (Turn on the power after the [Power Supply] dialog box appears.) 3) The H8/3664 is selected for the target device. 8.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 9. Related Documents The E8 emulator and HEW provide many other useful functions not mentioned in this document. Please refer to the following related documents for important information such as detailed specifications, technical information, or restrictions.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 10. For More Information Access the following addresses for information on this product. Ask technical questions about the E10A-USB emulator through the following e-mail addresses. USA: techsupport.rta@renesas.com Europe: tools.support.eu@renesas.com Japan: csc@renesas.com Information on the E8 emulator is available at the following Renesas websites: http://www.renesas.com/e8 (Global site) http://japan.renesas.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny Revision Record Rev. 1.00 Date Mar.13.07 REJ06J0008-0100/Rev.1.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny Notes regarding these materials 1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny 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.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny Publication Date: Mar. 13, 2007 Rev.1.00 Sales Strategic Planning Div. Published by: Edited by: Renesas Technology Corp. Microcomputer Tool Development Department Renesas Solutions Corp. © 2007. Renesas Technology Corp. and Renesas Solutions Corp., All rights reserved. Printed in Japan.
Renesas E8 Emulator Introductory Guide for H8/300H Tiny