Renesas M3A-HS71 Installation Manual
Renesas M3A-HS71 Installation Manual

Renesas M3A-HS71 Installation Manual

Cpu board renesas 32-bit risc microcomputers superh risc engine family/sh7670 series
Hide thumbs Also See for M3A-HS71:
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
Need help?

Need help?

Do you have a question about the M3A-HS71 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Renesas M3A-HS71

  • 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 SH7670 CPU Board M3A-HS71 Installation Manual Renesas 32-Bit RISC Microcomputers SuperH™ RISC engine Family/SH7670 Series Rev.1.01 2008.05...
  • Page 7 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 WANING 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 9 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.
  • Page 11 Usage restrictions: This product 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...
  • Page 13: Table Of Contents

    CHAPTER1 BEFORE USING THE SH7670 CPU BOARD ... 1-1 1.1 Overview ... 1-2 1.2 Usage Precautions... 1-2 1.2.1 Symbols Used ... 1-3 1.3 Procedure for Introducing This Product... 1-4 1.4 Operating Guarantee for This Product ... 1-4 1.5 Items to Be Prepared by User ... 1-5 1.5.1 Recommended Host Computer Environment ...
  • Page 14 5.2.3 Activating the Command Line Window ... 5-10 5.3 Adding/Modifying Hardware Setup Files ... 5-10 5.3.1 Copying Hardware Setup Files ... 5-10 5.3.2 Removing the Standard Source Files ... 5-10 5.3.3 Adding Hardware Setup Files ...5-11 5.3.4 Setting Compiler Options... 5-13 5.3.5 Setting Linker Options ...
  • Page 15 *This page is blank* Rev. 1.01 May 7, 2008 ( iii ) REJ11J0015-0101...
  • Page 17: Chapter1Before Using The Sh7670 Cpu Board

    Chapter1Before Using the SH7670 CPU Board Chapter1 Before Using the SH7670 CPU Board...
  • Page 18: 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 19: Symbols Used

    <Caution Indication> 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 20: Procedure For Introducing This Product

    The SH7670 CPU board has the type of host computer designated as its operating environment (IBM PC/AT and its compatible). This only indicates the operating environment assumed by Renesas, and does not guarantee that the SH7670 CPU board will operate normally in all relevant types of machines or in all relevant environments (e.g., device driver and peripheral device).
  • Page 21: Items To Be Prepared By User

    E10A-USB Emulator” in Chapter 3 of this manual. 1.5.1 Recommended Host Computer Environment To use the above Renesas tools, we recommend using the host computer and the OS version listed in Table 1.5.3 below. Table 1.5.3 Operating Environment for the Renesas Development Tools...
  • Page 22 Before Using the SH7670 CPU Board 1.5 Items to Be Prepared by User *This page is blank* Rev. 1.01 May 7, 2008 REJ11J0015-0101...
  • Page 23: Chapter2Setting Up The Hardware

    Chapter2Setting Up the Hardware Chapter2 Setting Up the Hardware...
  • Page 24: Connections Between Sh7670 Cpu Board And E10A-Usb Emulator

    2.1 Connections Between SH7670 CPU board and E10A-USB Emulator Figure 2.1.1 shows how SH7670 CPU board and E10A-USB emulator should be connected. Figure 2.1.1 System Connection of SH7670 CPU board and E10A-USB Emulator 2.2 SH7670 CPU board Switch Setting The following describes how to set the switches of SH7670 CPU board. •...
  • Page 25: Sh7670 Cpu Board Dip Switch Setting

    2.2.1 SH7670 CPU board DIP Switch Setting To use the SH7670 CPU board following the installation described here, be sure to set the DIP switch SW8 to its default settings as shown in Figure 2.2.1 and Table 2.2.1. Switch No. Function SW8-1 Set clock mode to 0...
  • Page 26: System Connections And Power-On Sequence

    2.3 System Connections and Power-On Sequence Follow the same procedure when you check to see that the power for the host computer is turned off, or that the E10A-USB emulator is not connected to the host computer with USB cable. Connect the SH7670 CPU board and the E10A-USB emulator with the user interface cable.
  • Page 27: Chapter3Setting Up The Software

    Chapter3Setting Up the Software Chapter3 Setting Up the Software...
  • Page 28: About The Hew

    C/C++ and assembly languages for use in Renesas microcomputers. The SH7670 CPU board based software development is carried out by using the HEW. For more information about the HEW, refer to the “SuperH RISC Engine High-performance Embedded Workshop 4 User’s Manual”.
  • Page 29 (2) Figure 3.1.2 is displayed, and click “Next”. Note: If you have already installed a HEW on your PC, you can select “Install a new High-performance Embedded Workshop” and install a new HEW in another directory on your PC. (3) Continue to install following the instructions in the installation window. (4) Next, install an Autoupdate Utility.
  • Page 30 (5) Continue to install following the instructions in the installation window. When entire installation is finished, the dialog shown in Figure 3.1.4 is displayed, click “Exit”. Rev. 1.01 May 7, 2008 REJ11J0015-0101 Figure 3.1.4 HEW Installation Procedure (5) Setting Up the Software 3.1 About the HEW...
  • Page 31: Setting Up The E10A-Usb Emulator Software

    3.2 Setting Up the E10A-USB Emulator Software Next, the following explains how to set up the E10A-USB emulator software. 3.2.1 E10A-USB Software Installation Procedure (1) Execute “HewInstMan.exe” included in the E10A-USB emulator software CD-ROM. High-performance Embedded Workshop Install Manager is activated, and click “Installation”. Figure 3.2.1 E10A-USB Software Installation Procedure (3) (2) When the dialog box shown in Figure 3.2.2 is displayed, select “Update the active High-performance Embedded Workshop”...
  • Page 32 Note: If you have already installed a HEW on your PC, you can select “Install a new High-performance Embedded Workshop” and install a new HEW in another directory on your PC. (3) When the dialog box shown in Figure 3.2.3 is displayed, select “SuperH RISC engine Family SH-2A Device Group” and “SH7670”, then click “Next”.
  • Page 33 (5) Next, install an Autoupdate Utility. Click “Next”. Figure 3.2.5 E10A-USB Software Installation Procedure (5) Note: When you have not selected “Autoupdate” on the Choice of an installation product, the above dialog is not displayed. (6) When the installation is complete, the dialog shown in Figure 3.2.6 is displayed. Click “Finish”. Figure 3.2.6 E10A-USB Software Installation Procedure (6) Rev.
  • Page 34 Setting Up the Software 3.2.1 E10A-USB Software Installation Procedure (7) When entire installation is finished, the dialog shown in Figure 3.2.7 is displayed, click “Exit”. Figure 3.2.7 E10A-USB Software Installation Procedure (7) Rev. 1.01 May 7, 2008 REJ11J0015-0101...
  • Page 35: Setting Up The E10A-Usb Emulator

    3.2.2 Setting Up the E10A-USB Emulator (i) Setting Up New Firmware The following explains the case where you set up new firmware of the E10A-USB emulator. If your E10A-USB emulator already has the firmware suitable for the SH-2A group, skip this step and go to paragraph (ii) “Setting Up the E10A-USB Emulator Driver.”...
  • Page 36 (1) Open the slide switch cover on the E10A-USB emulator main unit, and check to see that the emulator setup switch (SW1) is set to the “1” side. (2) From [All Programs] on [Start menu], choose [Renesas High-performance Embedded Workshop] [Setup Tool for E10A-USB Emulator]...
  • Page 37 Notes • If the versions shown in (b) and (c) are the same, you do not need to set up. If the version shown in (b) is “-.-.--.---” or older than the version in (c), you need to set up. •...
  • Page 38 (3) Press “Setup”(Figure3.2.9). The dialog box shown below will be displayed. Figure3.2.12 Setup Tool for SHxxxx E10A-USB Emulator Dialog Box (4) Set the emulator setup switch (SW1) to the “0” side, and temporarily remove the USB cable and plug it in back again. Then click “OK”.
  • Page 39 (6) After the E10A-USB emulator setup is completed, the message shown below will be displayed. Set the emulator setup switch (SW1) to the “1” side, and temporarily remove the USB cable and plug it in back again. Then click “OK”. Figure3.2.15 Setup Tool for SH-2A E10A-USB Emulator Dialog Box Note: Always make sure the emulator setup switch (SW1) remains in the “1”...
  • Page 40 (ii) Setting Up the E10A-USB Emulator Driver The following shows how to set up the E10A-USB emulator driver. The setup procedure here is explained for the Windows XP case. Note: The dialog boxes shown here are displayed when you set up the E10A-USB emulator driver for the first time or when you’ve changed the USB port on the host computer side and connected the emulator to that port for the first time.
  • Page 41 (3) Search the CD-ROM for drivers and select” <drive>:¥driver¥usb¥xp¥elusb.inf“ and then click “Next”. The ‘xp’ in the underlined part (in the setup here, Windows XP) indicates the OS version. Figure3.2.19 New Hardware Detection Wizard Start (3) Note: If [Hardware installation] dialog box, which says the software has not passed Windows Logo.. is displayed, just click “Continue Anyway”.
  • Page 42 (5) Activate Device Manager to confirm whether the USB controller driver has been installed. <Activating Device Manager> Choose [Control Panel] from [Start menu] and double-click [System] icon. In [System Properties] dialog box, click the [Hardware] tab and then [Device Manager]. Rev.
  • Page 43 Setting Up the Software 3.2.2 Setting Up the E10A-USB Emulator *This page is blank* 3-17 Rev. 1.01 May 7, 2008 REJ11J0015-0101...
  • Page 45: Chapter4Running The Software

    Chapter4Running the Software Chapter4 Running the Software...
  • Page 46: Preparing For Downloading The Sample Software

    (2) Connect the SH7670 CPU board and the E10A-USB emulator. (Do not turn on the power for the SH7670 CPU board yet.) (3) From [All Programs] on [Start menu], choose [Renesas High-performance Embedded Workshop] [High-performance Embedded Workshop]. (4) [Welcome] dialog box shown below will be displayed.
  • Page 47 (5) The [Open Workspace] dialog box shown below is displayed. In this dialog box, specify the directory indicated below. <Directory in which to store the sample software> "C:¥WorkSpace¥Sample_software¥SH7670_sample" (6) After specifying the directory, select the file indicated below and click “Select”. Note: For the first time only, a dialog box prompting you to confirm that the workspace directory has been moved will be displayed.
  • Page 48 Note: For the first time only, a message “Please choose driver” is displayed. Click “OK” to display the Driver Details, and select “Renesas E-Series Driver” for the Driver. (8) [Connecting] dialog box is displayed, and the system starts connecting the emulator.
  • Page 49 (10) Turn on the power for the SH7670 CPU board. (11) Press the reset button (SW3) on the SH7670 CPU board and press “OK” in the above dialog box. (12) If the reset signal cannot be detected, the dialog box shown below is displayed. Clicking “Ignore”...
  • Page 50: E10A-Usb Emulator Connection Error Dialog

    4.1.3 E10A-USB Emulator Connection Error Dialog If the E10A-USB emulator does not start up, the dialog box shown below will be displayed. (a) If the dialog box shown below is displayed and the E10A-USB emulator cannot be started by the method in (11) on the previous page, the SH7670 CPU board may not be supplied with the system power.
  • Page 51 (e) If the driver has not been set up correctly, the dialog box shown below will be displayed. (f) If a wrong device is selected, the following dialog box is displayed. Rev. 1.01 May 7, 2008 REJ11J0015-0101 4.1.3 E10A-USB Emulator Connection Error Dialog Figure 4.1.13 Unable to Restore Dialog Box Figure 4.1.14 [Invalid CPU] Dialog Box Running the Software...
  • Page 52: Sample Software Download Procedure

    4.1.4 Sample Software Download Procedure Next, the following describes how to download the load module of the sample software. Here, the sample software is downloaded to the flash memory connected external to the SH7670 CPU board. For details about flash memory download settings, refer to the “SuperH Family E10A-USB Emulator User’s Manual.” (1) Setting up the flash memory download function From [Setup] menu [Emulator]...
  • Page 53 (2) Specifying the command batch file before downloading Next, you need to run the script file (fmtool_hs71.hdc) in which the access timing and bus control signal settings are written in the flash memory of the SH7670 CPU board before downloading the sample software. In the sample workspace, the following script file is assumed to be stored in.
  • Page 54 (4) Downloading the sample load module Choose Download from the Debug menu and then sample load module. Figure 4.1.17 shows the download operation window. Immediately after you select the sample load module, the script file is automatically executed. Then the system starts downloading the sample load module.
  • Page 55 (5) Completion of downloading When the system has finished downloading the sample load module, the program counter is shown in “resetprg.c”. (See Figure 4.1.18) Rev. 1.01 May 7, 2008 REJ11J0015-0101 Figure 4.1.18 Download Completion Window Running the Software 4.1.4 Sample Software Download Procedure 4-11...
  • Page 56 (6) Running the program To execute the program, select “Go” from the Debug menu (See Figure 4.1.19). If the sample software is downloaded normally, LED7 on the SH7670 CPU board lights up and goes out alternately at approximately one-second intervals. Note: The contents of “resetprg.c"...
  • Page 57: Chapter5Creating And Running A New Project Workspace

    Chapter5Creating and Running a New Project Workspace Chapter5 Creating and Running a New Project Workspace...
  • Page 58: Creating A New Project Workspace

    (2) Connect the SH7670 CPU board and the E10A-USB emulator. (Do not turn on the power for the SH7670 CPU board yet.) (3) From [All Programs] on [Start] menu, choose [Renesas High-performance Embedded Workshop] [High-performance Embedded Workshop]. (4) [Welcome] dialog box shown below will be displayed.
  • Page 59 (6) Project Generator will start. Here, enter “test” for the workspace name. After checking the directory, CPU type and tool chain, click “OK”. (7) Next, select a “CPU Series” and a “CPU Type” from [New Project-1/9-Select Target CPU] dialog box. Make selections as follows;...
  • Page 60 (8) Specify the global options from [New Project--2/9] dialog box. FPU: Single Round: Zero (9) Fill out [New Project-3/9] to [New Project-4/9] dialog boxes. Select the check boxes as necessary. Leave default settings intact here and simply click “Next”. Rev. 1.01 May 7, 2008 REJ11J0015-0101 Creating and Running a New Project Workspace 5.1.2 Procedure for Creating a New Project Workspace...
  • Page 61 (10) In [New Project-5/9] dialog box, set up a stack as follows; Stack Pointer Address: H’FFF88000 Stack Size: H’400 *Stack size can be changed according to need. (11) In [New Project-6/9] dialog box, set up a vector. Here, leave default settings intact (with the Vector Definition Files check box selected) and simply click “Next”. Rev.
  • Page 62 (12) In [New Project-7/9] dialog box, set up the target as below. Firstly, select the Target type and then, select the Targets. Target type: SH2A-FPU Targets: SH2A-FPU E10A-USB SYSTEM(SH2A) (13) Verify [New Project-8/9] and [New Project-9/9] dialog boxes and click “Finish”. Quit the Project Generator following the instructions shown in the window.
  • Page 63 (15) [Select Emulator mode] dialog box shown below will be displayed. For details on how to operate here, refer to paragraphs ”4.1.2 SH7670 CPU board and E10A-USB Startup Procedure (HEW Startup)” (16) Execute build processing. Choose Build from the Build menu to execute build processing. After the E10A-USB emulator has been connected, execute build processing once without modifying the standard source file.
  • Page 64: Setting Up The Flash Memory Download

    5.2 Setting Up the Flash Memory Download Next, the following shows how to set up the function for downloading load modules into the flash memory connected external to the SH7670 CPU board. Here, we use the flash memory download program stored in "C:¥...
  • Page 65: Specifying The Command Batch File Before Downloading

    Loading flash memory Erasing flash memory File name Bus width of flash memory Flash memory erasing time All erasing module address Writing module address Access size 5.2.2 Specifying the Command Batch File Before Downloading Next, you need to run the script file “fmtool_hs71.hdc” which has written the access timing and bus control signal settings in the flash memory of the SH7670 CPU board before you download the modules.
  • Page 66: Activating The Command Line Window

    5.2.3 Activating the Command Line Window Choose Command Line from the View menu and open the Command Line window. When downloading the load modules, activate the Command Line window to check whether the script file is running. Note: Unless the script file is running, you cannot download the load modules into the flash memory. So be sure to check this.
  • Page 67: Adding Hardware Setup Files

    (2) From [Remove Project Files] dialog box, select the file of "dbsct.c", "intprg.c", "resetprg.c", "sbrk.c", and "vecttbl.c". Then, click “Remove”. 5.3.3 Adding Hardware Setup Files (1) Select [Project Add Files...]. Rev. 1.01 May 7, 2008 REJ11J0015-0101 Creating and Running a New Project Workspace Figure 5.3.2 Setting Up to Removing Files (2) Figure 5.3.3 Setting Up to Add Files (1) 5.3.3 Adding Hardware Setup Files...
  • Page 68 (2) From the "C:¥WorkSpace¥test¥HardwareSetup" directory to which you copied hardware setup files, add the files listed below. Files to add : "bsc_cs0c.c", "bscsdram.c", "cache.c”, ”cpg.c", "dbsct.c", "hwsetup.c", "intprg.c", “lowsrc.c”, "resetprg.c", “sbrk.c”, “siochar.c”, “siorw.c”, "vecttbl.c" (Select the Relative Path check box) Look in: File name: Files of type:...
  • Page 69: Setting Compiler Options

    5.3.4 Setting Compiler Options From the Build menu, open [SuperH RISC engine Standard Toolchain] dialog box and open [C/C++] tab. On this tab, set “Category”, “Show entries for” and “Options C/C++” as necessary. For details on how to set “Option C/C++”, refer to the manuals for SuperH RISC engine C/C++ compiler, assembler and optimization linkage editor.
  • Page 70: Setting Linker Options

    5.3.5 Setting Linker Options Open the Build menu, open the dialog box [SuperH RISC engine Standard Toolchain], and select “Link/Library” tab. Set ”Category”, “Show entries for”, and “Option Link/Library” appropriately as necessary. For details on how to set optimization linker options, refer to the user’s manuals for SuperH RISC engine C/C++ compiler, assembler and optimization linkage editor.
  • Page 71 (a) Section setting example for the case that a cache memory setup function is used To use the io_init_cache function (that sets cache memory), the section for it must be located in the non-cacheable area of CS0. The following shows how to set up the section to the non-cacheable area of CS0. For the details about cache memory, refer to the chapters of cache and BSC in SH7670 group hardware manual.
  • Page 72 (3) [Section address] dialog box shown below will be displayed. In this dialog box, enter “0x207FF000” for the Address as shown in Figure 5.3.11, and press “OK”. (4) The section address will be added and it returns to [Section] dialog box. Choose a blank section as shown in Figure 5.3.12, and click “Add”.
  • Page 73 (5) [Add section] dialog box shown below will be displayed. Enter “PCACHE” for “Section name” as shown in Figure 5.3.13, and press “OK”. The “CACHE” section is defined in the “cache.c” source file. The first character “P” indicates a P section. (6) The section name will be added, and it returns to [Section] dialog box.
  • Page 74 (b) Section modifications example for the case that a B section is changed to the SDRAM area The following shows the section modification example for changing the location of a B section to the SDRAM area. For a detailed procedure for section setting, refer to paragraph (a) described previously. (1) In [Section] dialog box, select “B”...
  • Page 75 (c) Setting example for section in case for forwarding vector table section DINTTBL to on-chip RAM Interrupt response speed can be sped up by forwarding vector table to on-chip RAM, and using register bank. Forwarding vector table sets the vector table section on ROM as DINTTBL, and sets the section on RAM for the forwarding destination as RINTTBL with "dbsct.c"...
  • Page 76 (2) Open [Link/Library] tab and select the below, and click “Add”. • Category : Output • Show entries for : ROM to RAM mapped sections Note: In the sample software, the section initialization table should be set inside the reset exception handling in the dbsct.c file.
  • Page 77: Writing The Main Function (Operation Confirmation)

    5.3.6 Writing the Main Function (Operation Confirmation) In the main function (test.c source file), write a program to turn on the LED (LED7 on the SH7670 CPU board lights up). • Open the source file C:¥WorkSpace¥test¥test¥test.c with an editor, etc. •...
  • Page 78 Creating and Running a New Project Workspace 5.3.6 Writing the Main Function (Operation Confirmation) *This page is blank* 5-22 Rev. 1.01 May 7, 2008 REJ11J0015-0101...
  • Page 79 Revision History Rev. Date of Issue Page 1.00 Jan 9.08 1.01 May 7.08 SH7670 CPU Board Installation Manual Content of Revision Points First edition issued. Revision history page location was changed. Colophon was changed from ©2007 to ©2008.
  • Page 81 SH7670 CPU Board M3A-HS71 Installation Manual Publication May 7, 2008 Date Published by Renesas Technology Corp. Renesas Solutions Corp. © 2008. Renesas Technology Corp., All rights reserved. Printed in Japan. Rev. 1.01...
  • Page 82 SH7670 CPU Board M3A-HS71 Installation Manual 1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan REJ11J0015-0101...

This manual is also suitable for:

Sh7670

Table of Contents