Renesas M3A-HS19G50 Installation Manual
Renesas M3A-HS19G50 Installation Manual

Renesas M3A-HS19G50 Installation Manual

Sh7619 cpu board
Table of Contents

Advertisement

Quick Links

To our customers,
st
On April 1
, 2010, NEC Electronics Corporation merged with Renesas Technology
Corporation, and Renesas Electronics Corporation took over all the business of both
companies. Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry.
Old Company Name in Catalogs and Other Documents
Renesas Electronics website:
http://www.renesas.com
st
April 1
, 2010
Renesas Electronics Corporation

Advertisement

Table of Contents
loading

Summary of Contents for Renesas M3A-HS19G50

  • Page 1 On April 1 , 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the old company name remains in this document, it is a valid Renesas Electronics document. We appreciate your understanding.
  • Page 2 Renesas Electronics. Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as “Specific”...
  • Page 3 SH7619 CPU Board M3A-HS19G50 Installation Manual Renesas 32-Bit RISC Microcomputers SuperH™ RISC engine Family/SH7619 Group Rev.1.00 2008.07...
  • Page 4 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.
  • Page 5 Indication of Warnings and Cautions The following explains the warnings and cautions indicated for the handling of the product. If the product is improperly handled without regard for this indication, there will be a WARNING possibility of inflicting death or heavy wound on persons. If the product is improperly handled without regard for this indication, there will be a CAUTION possibility of inflicting an injury on persons or physical damage.
  • Page 6 (2) In no event shall Renesas be liable for any consequence arising from the use of this product. (3) This product has been developed by assuming its use for program development and evaluation in laboratories.
  • Page 7 (3) Aerospace (4) Nuclear power control (5) Undersea repeater If you are considering the use of this product for one of the above purposes, be sure to consult Renesas Technology, Renesas Solutions, Renesas Technology Sales or your distributor. About product changes: Renesas is constantly making efforts to improve the design and performance of this product.
  • Page 9: Table Of Contents

    TABLE OF CONTENTS CHAPTER 1 INTRODUCTION ......................1-1 1.1 Overview ..................................1-2 1.2 Usage Precautions............................... 1-2 1.2.1 Symbols Used ..............................1-3 1.3 Installation Procedure ..............................1-4 1.4 Operating Guarantee for This Product ......................... 1-4 1.5 What You Need to Get Started (Not included in this product) ..................1-5 1.5.1 Recommended Host Computer Environment .......................
  • Page 10 5.2.3 Activate the Command Line Window ........................5-8 5.3 Add/Modify Hardware Setup Files..........................5-9 5.3.1 Copy Hardware Setup Files..........................5-9 5.3.2 Remove the Standard Source Files ........................5-9 5.3.3 Add Hardware Setup Files ..........................5-10 5.3.4 Set Compiler Options............................5-12 5.3.5 Set Link/Library..............................
  • Page 11: Chapter 1 Introduction

    Chapter 1 Introduction Chapter 1 Introduction...
  • Page 12: Overview

    To ensure the correct use, be sure to read these precautions, and understand the written contents before you use the product. Not all precautions described in this manual relate to the Renesas product alone, some of them apply to an entire personal computer system incorporating the Renesas product also.
  • Page 13: Symbols Used

    Introduction 1.2.1 Symbols Used Caution Indication> CAUTION Regarding the reconstruction of this product: • Do not reconstruct this product. If the product has gotten out of order for reasons of disassembly or reconstruction, requests for repair may not be accepted. Regarding the handling of this product: Handle this product with caution, not to let it drop or fall down or apply strong mechanical shock.
  • Page 14: Installation Procedure

    To use this product, the type of host computer is specified for its operating environment (IBM PC/AT and its compatible). However, it only indicates the operating environment assumed by Renesas, and does not guarantee that the M3A-HS19 CPU board operates normally in all relevant types of machines or in all relevant environments (e.g., device driver and peripheral device).
  • Page 15: What You Need To Get Started (Not Included In This Product)

    1.5 A min. <For the Development Environment> This manual describes how to install this product using the Renesas development tools. To install this product as described in this manual, prepare following Renesas development tools. Table 1.5.2 Renesas Development Tools Item...
  • Page 16 Introduction 1.5 What You Need to Get Started (Not included in this product) This page intentionally left blank. Rev. 1.00 July 11, 2008 REJ10J1328-0100...
  • Page 17: Chapter 2Setting Up The Hardware

    Chapter 2Setting Up the Hardware Chapter 2 Setting Up the Hardware...
  • Page 18: The M3A-Hs19 And The E10A-Usb Emulator Configuration

    2.1 The M3A-HS19 and the E10A-USB Emulator 2.1 The M3A-HS19 and the E10A-USB Emulator Configuration Figure 2.1.1 shows the configuration of the M3A-HS19 CPU board and the E10A-USB emulator. SH7619 CPU Board M3A-HS19G50 5V DC Regulated Power Supply (1.5A min.)
  • Page 19: Switch Setting

    Setting Up the Hardware 2.3 System Configuration and Power-on 2.2 Switch Setting Following describes the M3A-HS19 switch setting. CAUTION • Do not change DIP switches and jumper settings while the M3A-HS19 is operating. Always be sure to turn off the power before changing DIP switches or jumper settings. This is necessary to prevent unrecoverable damage to the M3A-HS19 that may otherwise occur.
  • Page 20: System Configuration And Power-On

    Setting Up the Hardware 2.3 System Configuration and Power-on 2.3 System Configuration and Power-on Be sure to turn OFF the host computer, and not to connect the E10A-USB emulator and the host computer by a USB cable. Then, follow the procedure below.
  • Page 21: Chapter 3Setting Up The Software

    Chapter 3Setting Up the Software Chapter 3 Setting Up the Software...
  • Page 22: About The High-Performance Embedded Workshop

    The High-performance Embedded Workshop is an integrated development environment with a graphical user interface to simplify the development and debug of applications written in C/C++ and assembly languages for Renesas MCUs. Software development on the M3A-HS19 is carried out by the High-performance Embedded Workshop.
  • Page 23 Setting Up the Software 3.1 About the High-performance Embedded Workshop Following dialog box will appear as Figure 3.1.2. Click “Next”. Figure 3.1.2 Installation Procedure (2/4) Note: If the High-performance Embedded Workshop is already installed, select the “Install a new High-performance Embedded Workshop”...
  • Page 24 Setting Up the Software 3.1 About the High-performance Embedded Workshop Follow the on-screen instructions to continue installation. When all installation is completed, following window will appear as Figure 3.1.4. Click “Exit”. Figure 3.1.4 Installation Procedure (4/4) Rev. 1.00 July 11, 2008 REJ10J1328-0100...
  • Page 25: Set Up The E10A-Usb Emulator Software

    Setting Up the Software 3.2.1 E10A-USB Emulator Software Installation 3.2 Set up the E10A-USB Emulator Software This section explains how to set up the E10A-USB emulator software. 3.2.1 E10A-USB Emulator Software Installation (1) Execute “HewInstMan.exe” stored in the E10A-USB emulator software CD-ROM. The Install Manager will start up automatically. Click [Installation].
  • Page 26 Setting Up the Software 3.2.1 E10A-USB Emulator Software Installation Note: If the High-performance Embedded Workshop is already installed, select the “Install a new High-performance Embedded Workshop” radio button to install it in another directory. (3) Following dialog box will appear as Figure 3.2.3. Select “SuperH RISC engine Family SH-2 Device Group”, “SH7619” and click “Next”.
  • Page 27 Setting Up the Software 3.2.1 E10A-USB Emulator Software Installation (5) Click “Next” to install the AutoUpdate Utility. Figure 3.2.5 E10A-USB Software Installation (5/7) (6) Following window will appear after the installation is completed. Click “Finish”. Figure 3.2.6 E10A-USB Software Installation (6/7) Rev.
  • Page 28 Setting Up the Software 3.2.1 E10A-USB Emulator Software Installation (7) Following window will appear when the installation is completed. Click “Exit”. Figure 3.2.7 E10A-USB Software Installation (7/7) Rev. 1.00 July 11, 2008 REJ10J1328-0100...
  • Page 29: Set Up The E10A-Usb Emulator

    Setting Up the Software 3.2.2 Set up the E10A-USB Emulator 3.2.2 Set up the E10A-USB Emulator (i) Set up New Firmware This section explains how to set up the E10A-USB emulator firmware for the first time. When the installed E10A-USB emulator firmware supports the SH-2 device group, skip this step and go to paragraph (ii) “Set up the E10A-USB Emulator Driver”.
  • Page 30 (1) Open the sliding switch cover and check that the switch (SW1) for setting the emulator is turned to “1”. (2) Select [All Programs] -> [Start] -> [Renesas High-performance Embedded Workshop] -> [Tools] -> [Setup Tool for E10A-USB Emulator] -> [SH-2 Device Group]. A setup tool for the E10A-USB emulator will start up.
  • Page 31 Setting Up the Software 3.2.2 Set up the E10A-USB Emulator Notes • If the version numbers shown in (b) and (c) are the same, setup of the emulator is not required. Set up the emulator only when “-.-.--.---” is shown in (b) or the version number of (b) is older than that of (c). •...
  • Page 32 Setting Up the Software 3.2.2 Set up the E10A-USB Emulator (3) Clicking the “Setup” button (Figure 3.2.9) shows the following dialog box. Figure3.2.12 Setup Tool for SH-2 E10A-USB Emulator Dialog box (4) Turn the setup switch (SW1) to “0”, connect the USB cable again, and click ”OK”. The system will start setting up the emulator firmware.
  • Page 33 Setting Up the Software 3.2.2 Set up the E10A-USB Emulator (5) When the following dialog box appears, the E10A-USB emulator setup is completed. Figure 3.2.14 Setup Completed (6) When the E10A-USB emulator setup has been completed, the following message will appear. Turn the setup switch (SW1) to “1”, connect the USB cable again, and click “OK”.
  • Page 34 Setting Up the Software 3.2.2 Set up the E10A-USB Emulator (ii) Set up the E10A-USB Emulator Driver Following describes how to set up the E10A-USB emulator driver. The setup procedure described below is for the Windows XP. Note: Following dialog boxes appear when the E10A-USB emulator driver is set up for the first time or when the emulator is connected for the first time after the USB port on the host computer is changed.
  • Page 35 Setting Up the Software 3.2.2 Set up the E10A-USB Emulator (3) Search for the driver in the CD-ROM, select “<drive>:¥drivers¥usb¥xp¥e1usb.cdr.inf”, and then click “Next”. The underlined ‘xp’ indicates the version of the operating system (This example is for Windows XP). Figure3.2.19 New Hardware Wizard (3/3) Note: When an error message saying the software you are installing has not passed Windows Logo testing..
  • Page 36 Setting Up the Software 3.2.2 Set up the E10A-USB Emulator (5) Activate the Device Manager to confirm that the USB controller driver has been installed. Activating the Device Manager [Start] -> [Control Panel] and double-click [System] icon. In [Properties] dialog box, click the [Hardware] tab, and then click [Device Manager].
  • Page 37 Setting Up the Software This page intentionally left blank. 3-17 Rev. 1.00 July 11, 2008 REJ10J1328-0100...
  • Page 39: Chapter 4 Executing The Software

    Chapter 4 Executing the Software Chapter 4 Executing the Software...
  • Page 40: Execute The Sample Software

    (1) Connect the host computer and the E10A-USB emulator. (2) Connect the M3A-HS19 and the E10A-USB emulator. (Do not turn on the power for the M3A-HS19 yet.) (3) Select [Start] menu → [Programs] → [Renesas] → [High-performance Embedded Workshop](folder) → [High-performance Embedded Workshop].
  • Page 41 Executing the Software 4.1.2 M3A-HS19 and E10A-USB Startup (High-performance Embedded Workshop Startup) (5) The [Open Workspace] dialog box will appear, specify the following directory. Directory to store the sample software "C:¥WorkSpace¥Sample_software¥sh7619_sample" (6) After specifying the directory, select the following file and click “Select” to open. Figure 4.1.2 [Open the Workspace] Dialog box Note: The dialog box that indicates the directory in the workspace has been moved may appear at the first time.
  • Page 42 4.1.2 M3A-HS19 and E10A-USB Startup (High-performance Embedded Workshop Startup) Note: A message ”Please choose driver“ will appear at the first time. Click ”OK“ to show the following window to select the driver. Select ”Renesas E-Series Driver“. Figure 4.1.4 [Driver Details] Dialog Box (8) Following dialog box will appear and start to connect the emulator.
  • Page 43 Executing the Software 4.1.2 M3A-HS19 and E10A-USB Startup (High-performance Embedded Workshop Startup) Note: If the reset signal cannot be detected, the following dialog box will appear. Click ”Ignore” to issue an internal reset to the CPU and to start up the system. Figure 4.1.7 [Cannot find RESET Signal] Dialog Box (10) When the message “Connected”...
  • Page 44: E10A-Usb Emulator Connection Error Dialog

    Executing the Software 4.1.3 E10A-USB Emulator Connection Error Dialog 4.1.3 E10A-USB Emulator Connection Error Dialog When the E10A-USB emulator does not start up, the following dialog box will appear. (a) When the following dialog box appears and the emulator cannot be activated as the Note on the top of page 4-5, the M3A-HS19 system power may not supplied.
  • Page 45: How To Download The Sample Software

    Executing the Software 4.1.4 How to Download the Sample Software (e) If an appropriate driver is not set up, the following dialog box will appear. Figure 4.1.13 [Unable to restore the previous driver setting] Dialog box 4.1.4 How to Download the Sample Software This section describes how to download the load module of the sample software.
  • Page 46 Executing the Software 4.1.4 How to Download the Sample Software (2) Specify the command batch file before downloading Execute the script file “fmtool_hs19.hdc”, consisting of the access timing and bus control signal settings for the M3A-HS19 flash memory before downloading the sample software. Open [Debug] menu ->...
  • Page 47 Executing the Software 4.1.4 How to Download the Sample Software (4) Download the sample load module Select [Debug] menu → [Download modules] to select the sample load module. Figure 4.1.16 shows the download operation window. Immediately after the sample load module is selected, the script file is automatically executed. Then, the system starts downloading the sample load module.
  • Page 48 Executing the Software 4.1.4 How to Download the Sample Software (5)Download completed When the downloading of the sample load module is completed, the program counter will appear in “resetprg.c”. (See Figure 4.1.17) Figure 4.1.17 Download Completed 4-10 Rev. 1.00 July 11, 2008 REJ10J1328-0100...
  • Page 49 Executing the Software 4.1.4 How to Download the Sample Software (6) Executes the program Select “Go” from the [Debug] menu to execute the software. (See Figure 4.1.18) If the sample software has been downloaded correctly, LED1 on the M3A-HS19 flashes at 1-second interval. Figure 4.1.18 Executing the program Notes: •...
  • Page 50 This page intentionally left blank 4-12 Rev. 1.00 July 11, 2008 REJ10J1328-0100...
  • Page 51: Chapter 5 Creating And Running A New Project Workspace

    Chapter 5 Creating and Running a Chapter 5 Creating and Running a New Project Workspace...
  • Page 52: Create A New Project Workspace

    (1) Connect the host computer and the E10A-USB emulator. (2) Connect the M3A-HS19 and the E10A-USB emulator. (Do not turn on the power for the M3A-HS19 yet.) (3) Select [Start] menu, → [All Programs] → [Renesas] → [High-performance Embedded Workshop] (folder) → [High-performance Embedded Workshop].
  • Page 53 Creating and Running a New Project Workspace 5.1.2 How to Create a New Project Workspace (6) Project Generator will start. In this manual, “test” is used for the workspace name. Check that the Directory, CPU family and Tool chain are set as follows, then click ”OK”.
  • Page 54 Creating and Running a New Project Workspace 5.1.2 How to Create a New Project Workspace (9) In the [New Project-5/9] dialog box, set up the stacks as follows and click ”Next”. Change the stack size as appropriate. Stack Pointer Address: H’E5600000 Stack Size: H’400 Figure 5.1.4 [New Project-5/9] Dialog Box (10) In the [New Project-6/9] dialog box, set up a vector.
  • Page 55 Creating and Running a New Project Workspace 5.1.2 How to Create a New Project Workspace (11) In the [New Project-7/9] dialog box, set up the Target as below; Select the “Target type” and then select “Targets”. Target type: SH-2 Targets: SH7618 E10A-USB SYSTEM (CPU SH-2) Figure 5.1.6 [New Project-7/9] Dialog Box (12) Confirm settings in [New Project-8/9] and [New Project-9/9] dialog boxes and click [Finish].
  • Page 56 Creating and Running a New Project Workspace 5.1.2 How to Create a New Project Workspace (14) The [CPU Select] dialog box will appear. For details on procedure during connection, refer to paragraphs from the step 5 on ”4.1.2 M3A-HS19 and E10A-USB Startup (High-performance Embedded Workshop Startup)”...
  • Page 57: How To Set Up The Flash Memory Download

    Creating and Running a New Project Workspace 5.2 How to Set Up the Flash Memory Download 5.2 How to Set Up the Flash Memory Download This section describes how to set up the M3A-HS19 external flash memory download program. In this manual, we use the flash memory download program stored in the "C:¥WorkSpace¥Sample_software¥fmtool_HS19" directory.
  • Page 58: Specify The Command Batch File Before Downloading

    Creating and Running a New Project Workspace 5.2.2 Specify the Command Batch File Before Downloading Table 5.2.1 Registered Data of Erasing and Writing Module Information (2) Bus width of flash (3) All erasing module (4) Writing module (1) File name memory address address...
  • Page 59: Add/Modify Hardware Setup Files

    Creating and Running a New Project Workspace 5.3 Add/Modify Hardware Setup Files 5.3 Add/Modify Hardware Setup Files To operate the software on the M3A-HS19 CPU board, the hardware-dependent part of the M3A-HS19 must be set up. Add or modify the M3A-HS19 hardware setting of the standard source files, which are automatically generated when you created a new project.
  • Page 60: Add Hardware Setup Files

    Creating and Running a New Project Workspace 5.3.3 Add Hardware Setup Files (2) Select “dbsct.c”, "intprg.c", "resetprg.c", “sbrk.c”, and "vecttbl.c" files from the [Remove Project Files] dialog box, and click ”Remove”. Figure 5.3.2 Remove Files (2/2) 5.3.3 Add Hardware Setup Files (1) Select [Project] ->...
  • Page 61 Creating and Running a New Project Workspace 5.3.3 Add Hardware Setup Files (2) From the copied hardware setup files "C:¥WorkSpace¥test¥HardwareSetup" directory, add the files listed below. "bsc.c", "cache.c”, ”cpg_init.c", "dbsct.c", "hwsetup.c", "intprg.c", "lowsrc.c", "resetprg.c","sbrk.c", "siochar.c", "vecttbl.c" (Select the “Relative Path” checkbox) Select the [Relative Path] checkbox Figure 5.3.4 Add Files (2/3)
  • Page 62: Set Compiler Options

    Creating and Running a New Project Workspace 5.3.4 Set Compiler Options 5.3.4 Set Compiler Options Select [Build] menu, open the [SuperH RISC engine Standard Toolchain] dialog box -> [C/C++] tab. Set “Category”, “Show entries for” and “Option C/C++” as appropriate. For details on how to set “Option C/C++”, refer to the SuperH RISC engine C/C++ Compiler, Assembler and Optimizing Linkage Editor User’s Manual.
  • Page 63: Set Link/Library

    Creating and Running a New Project Workspace 5.3.5 Set Link/Library 5.3.5 Set Link/Library Select [Build] menu, open the [SuperH RISC engine Standard Toolchain] dialog box, and select the [Link/Library] tab. Set ”Category”, “Show entries for”, and “Option Link/Library” as appropriate. For details on how to set optimization linker options, refer to the SuperH RISC engine C/C++ Compiler, Assembler and Optimizing Linkage Editor User’s Manual.
  • Page 64 Creating and Running a New Project Workspace 5.3.5 Set Link/Library (a) Section modification example (using the cache memory setting function) To use “io.init.cache function (cache memory setting)”, the section must be allocated to CS0 cache-disabled space. Followings are the steps to allocate the section to the CS0 cache-disabled space. For the details of the cache memory, refer to SH7619 Hardware Manual (Cache and BSC).
  • Page 65 Creating and Running a New Project Workspace 5.3.5 Set Link/Library (3) The [Section address] dialog box will open. Enter "0xA0000600" in the [Address] as shown in Figure 5.3.11 and click ”OK“. Figure 5.3.11 Section Setting (3/6) (4) The Section address is added, and the display returns to the [Section] dialog box. Select the blank space of Section as shown in Figure 5.3.12 and click ”Add…”.
  • Page 66 Creating and Running a New Project Workspace 5.3.5 Set Link/Library (6) The section name is added, and the display returns to the [Section] dialog box. Confirm if the section has been set as shown in Figure 5.3.14, and click ”OK”. The display returns to the [SuperH RISC engine Standard Toolchain] dialog box, and click ”OK“...
  • Page 67 Creating and Running a New Project Workspace 5.3.5 Set Link/Library (b) Section modification example (Changes section B to the on-chip RAM area) Following shows an example for changing section B to the on-chip RAM area. For details on the section setting, refer to paragraph (a) above. (1) In the [Section] dialog box, select section B, and click “Remove”.
  • Page 68 Creating and Running a New Project Workspace 5.3.5 Set Link/Library (c) Setting example (Transfers the vector table section DINTTBL to the on-chip RAM) To accelerate the interrupt response speed, transfer the vector table to the on-chip RAM. To transfer a vector table, set the Section of the vector table on the ROM as “DINTTBL”, the Section on the transfer destination RAM as “RINTTBL”...
  • Page 69 (2) Open the [Link/Library] tab and select the items as below, and click [Add]. • Category: Output • Show entries for: ROM to RAM mapped sections Figure 5.3.18 Change Section (2/3) (3) Select the items as below in the [Add Rom to Ram] dialog box, and click ”OK”. Return to the [SuperH RISC engine Standard Toolchain] dialog box and click ”OK“...
  • Page 70: Describe The Main Function (For Operation Check)

    Creating and Running a New Project Workspace 5.3.6 Describe the Main Function (For Operation Check) 5.3.6 Describe the Main Function (For Operation Check) In the main function (test.c source file), describe the program to turn on the LED (LED1 on the M3A-HS19 is lit). •...
  • Page 71 Revision History SH7619 CPU Board M3A-HS19G50 Installation Manual Rev. Date Description Page Summary 0.01 July 26, 2006 Preliminary edition issued. 1.00 July 11, 2008 Note regarding these materials revised, colophon moved and fixed typos.
  • Page 72 This page intentionally left blank.
  • Page 73 SH7619 CPU Board M3A-HS19G50 Installation Manual Publication July 11, 2008 Rev. 1.00 Date Published by Renesas Technology Corp. Renesas Solutions Corp. © 2008. Renesas Technology Corp., All rights reserved. Printed in Japan.
  • Page 74 SH7619 CPU Board M3A-HS19G50 Installation Manual 1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan REJ10J1328-0100...

Table of Contents