Renesas IDE Installation Manual
User Manual: Pdf
Open the PDF directly: View PDF .
Page Count: 49
Download | |
Open PDF In Browser | View PDF |
Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) Version 1.00 [ANDTR100] April 2014 Renesas Micom Car Rally Secretariat i Important Notice (Revision 1.2) Copyright Copyright of this manual and its contents belongs to the Renesas Micom Car Rally Secretariat. This manual is protected under copyright law and international copyright conventions. Prohibited Use The user is prohibited from doing any of the following: Sale of the manual to a third party, or advertisement, use, marketing, or reproduction of the manual for purpose of sale Transfer or reauthorization to a third party of usage rights to the manual Modification or deletion of the contents of the manual, in whole or in part Translation into another language of the contents of the manual Use of the contents of the manual for a purpose that may pose a danger of death or injury to persons Reprinting and Reproduction Prior written permission from the Renesas Micom Car Rally Secretariat is required in order to reprint or reproduce this manual. Limitation of Liability Every effort has been made to ensure the accuracy of the information contained in this manual. However, the Renesas Micom Car Rally Secretariat assumes no responsibility for any loss or damage that may arise due to errors this manual may contain. Other The information contained in this manual is current as of the date of publication. The Renesas Micom Car Rally Secretariat reserves the right to make changes to the information or specifications contained in this manual without prior notice. Make sure to check the latest version of this manual before starting fabrication. Contact Information Micom Car Rally Secretariat, Renesas Solutions Corp. MN Building, 2-1 Karuko-saka, Ageba-cho, Shinjuku-ku, Tokyo, 162-0824, Japan Tel. (03) 3266-8510 E-mail: official@mcr.gr.jp All trademarks and registered trademarks are the property of their respective owners. ii Contents 1. What is the Renesas Integrated Development Environment ................................................................ 1 2. Downloading the MCR Start-up Kit from the MCU Rally site ............................................................. 3 3. Downloading the Renesas IDE (e2 Studio) and supporting RX Toolchains ..................................... 5 3.1 3.2 3.3 3.4 3.5 3.6 3.7 Preliminary to download from the Renesas home page(User registration of MY Renesas) ....................... 5 Download of Renesas RX Toolchains............................................................................................... 7 Installing the Renesas RX Toolchains ............................................................................................ 10 Download of Renesas Integrated Development Environment ............................................................. 12 Installing the Renesas integrated development environment ............................................................. 15 Create the shortcut icon............................................................................................................. 19 Display of the extensions ............................................................................................................ 21 4 Preparation for Writing Program to MCU ..................................................................................................... 23 4.1 4.2 4.3 4.4 4.5 4.6 4.7 Download of FDT (Flash Development Toolkit) .............................................................................. 23 Install of FDT (Flash Development Toolkit) ................................................................................... 26 Download of USB Drivers............................................................................................................ 29 Install of USB Drivers and connecting the car ................................................................................ 31 Confirmation of COM Port .......................................................................................................... 33 Download sample code ............................................................................................................... 36 Programming Procedure .............................................................................................................. 39 iii Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 1. What is the Renesas Integrated Development Environment Renesas eclipse embedded studio (e2 studio) is a complete development & debug environment based on the popular Eclipse CDT project. Essentially open-source, the Eclipse CDT covers build (editor, compiler and linker control) as well as debug phase based on an extended GDB interface. e2 studio is required to edit, compile & build the code for your MCU Car Rally kit. A free evaluation version of the tool can be downloaded from the Renesas website, or you can install from the MCR Start-up Kit – the MCRResources.zip folder downloadable from mcurally.com. ▲Renesas integrated development environment e2 Studio Item Description o o o Operating environment IBM PC/AT compatibles Windows® 8 (32-bit, 64-bit) Windows® 7 (32-bit, 64-bit) Windows® XP (32-bit) Processor: 1 GHz or higher (must support hyper-threading, multi-core CPUs) Memory capacity: 2 GB or more recommended. Minimum requirement is 1 GB or more (64-bit Windows requires 2 GB or more) Hard disk capacity: 1 GB or more spare capacity Display: 1024 x 768 or higher resolution, 65,536 or more colors Interface: USB 2.0 1 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) e² studio has been developed to support the key promotion families of Renesas controllers: Target Devices RL78 Family RX Family RH850 Family* SuperH Family (SH-2 and SH-2A) Renesas eclipse embedded studio, known as e² studio, is a complete development and debug environment based on the popular Eclipse CDT project. Essentially open source, the Eclipse CDT covers build (editor, compiler and linker control) as well as debug phase based on an extended GDB interface. Main features A wide range of compilers can be integrated into e² studio to ensure customer has the choice of tools to match their project requirements. When combined with the extremely powerful editor functionality and project management tools automatically built into Eclipse CDT, e² studio offers a state of the art coding environment for Renesas embedded controllers. To complete the development cycle, Renesas has developed a range of GDB debuggers to interface between the coding environment and a range of on-chip and in-circuit emulators. Limitation of free evaluation version ・The linker is limited to 128KB Code & Data after the initial unlimited 60 day period. ・Supplied without technical support. 2 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 2. Downloading the MCR Start-up Kit from the MCU Rally site Downloading and installing the software from the MCR Start-up Kit is advantageous as everything is located in one place. Open the MCU Rally page: http://mcurally.com/ 1 Scroll down to the ’Kit Resources’ icon and click the link. 2 3 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) Click ’Download’ to get the kit – the file is called ’MCRResource s.zip’ and is 765MB in size. It may take some time to download but will provide you with everything you need to modify and program in your car’s software code. 3 Once this has downloaded skip ahead to section ‘Installing the Renesas RX Toolchains’. 4 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 3. Downloading the Renesas IDE (e2 Studio) and supporting RX Toolchains The IDE and supporting Toolchains can be downloaded through the Renesas website, or can be loaded from the ‘MCR Kit Software Tools & Drivers’ folder in the MCR Start-up Kit. To download the IDE and Toolchains from the Renesas webiste follow the steps below, or if you have the MCR Start-up Kit, skip ahead to section ‘Installing the Renesas RX Toolchains’. 3.1 Preliminary to download from the Renesas home page(User registration of MY Renesas) To download items from the Renesas site, you will need to register a My Renesas account. It is free to register, and needs your e-mail address. Advance to "Download of Renesas RX Toolchains" if you are already registered. Renesas Electronics http://www.renesas.eu 1 Click My Renesas. Click "My Renesas" 5 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) Click Register now!, and proceed with registration. Note: Remember which email and password you use here as they will be needed when downloading the software. 2 6 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 3.2 Download of Renesas RX Toolchains Get the RX Toolchains from the Renesas site. 1 Renesas Electronics http://www.renesas.eu 2 Under Devlepment Tools, click Coding Tools. Click "Coding Tools" Click "Package for RX Family " Scroll down to the section labelled C/C++ Compilers and Assemblers and select C/C++ Compiler Package for RX Family. 3 7 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) Click the Downloads tab, then on the second page of results, select RX Compiler CC-RX V1.02.01 standalone installer for e2 studio 4 Click "RX Compiler CC-RX v1.02.01 " 5 Click Agree after reading the AGREEMENT. 6 Click Download. If you do not have a My Renesas account, please register for a new account first. A My Renesas account is required in order to download this software. 7 If you have a My Renesas account, login by entering your e-mail address and password, and clicking Submit. 8 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) Check your purpose, and click Submit. 8 Save the file to your PC. 9 Downloading of RX Toolchains is complete. 9 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 3.3 Installing the Renesas RX Toolchains 1 Run the downloaded file ccrxv102r01_ev.exe for the ‘Renesas RX Toolchains' from where you saved it, or run the RenesasRxTools.exe file from the MCR Start-up Kit (it is located inside the ‘Resources’ folder, then ‘MCR Kit Software Tools & Drivers’, then ‘Renesas e2studio RX Complier Package’). 2 Click Run. 3 Click Next >. 10 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 4 Read the the license agreement and check the ‘I accept the terms in the license agreement’ option. Click Next >. 5 Click Install. 6 Click Finsh to complete the installation of the RX Toolchains. Later we will register the toolchains with the Renesas IDE e2 Studio the first time we load the program. 11 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 3.4 Download of Renesas Integrated Development Environment To download the IDE from the Renesas webiste follow the steps below, or if you have the MCR Start-up Kit, skip ahead to section ‘Installing the Renesas integrated development environment’. Get the IDE (Integrated Development Environment) from the Renesas site. 1 Renesas Electronics http://www.renesas.eu Under the Develepmet tools tab, click Coding Tools. 2 Click "Coding Tools" Click "Package for RX Family" Scroll down to the section labelled C/C++ Compilers and Assemblers and select C/C++ Compiler Package for RX Family. 3 12 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) Click the Downloads tab, select ‘E2 Studio 1.1.0.30’ 4 Click "E2 Studio 1.1.0.30" 5 Click Agree after reading the AGREEMENT. 6 Click Download. If you do not have a My Renesas account, please register for a new account first. A My Renesas account is required in order to download this software. 7 If you have a My Renesas account, login by entering your e-mail address and password, and clicking Submit. 13 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) Check your purpose, and click Submit. 8 Save the file to your PC. Downloading of Renesas integrated development environment has completed. 9 14 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 3.5 Installing the Renesas integrated development environment Run the downloaded file of the Renesas integrated development environment from where you saved it from the web, or run the setup.exe file from the MCR Start-up Kit (it is located inside the ‘Resources’ folder, then ‘MCR Kit Software Tools & Drivers’, then ‘Renesas e2studio’). 1 This will load the install wizard. Note: It is important to install this version of the Renesas integrated development environment even if other versions are already present. 2 One the wizard has set up, click Next >. 3 Read the license agreement, check the ‘I accept’ option, and click Next >. 15 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 4 Click Next. Click Install. 5 After the wizard has completed the install, click Finish. 6 16 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 7 Go to programs > Renesas Electronics e2studio > Renesas e2studio and open your newly installed program. Choose a location to open a new workspace and click OK. 8 Select the toolchains and click Register. Click Ok to open the e2 Studio IDE 9 17 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 10 Click Finish. 11 This is the welcome screen. To learn more details about e2, explore using the icons. When you are ready to begin, select the arrow icon which takes you to the Workbench. 12 A blank Workspace looks like this; later we will load the sample code. * The linker is limited to 128KB code & data after the initial unlimited 60 day period. The evaluation version of e2studio is provided without technical support. 18 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 3.6 Create the shortcut icon For running the "e2 Studio" easily, create a shortcut icon on your desktop. 1 Click Start. 2 Click All Programs. 3 Open folder Renesas Electronics e2studio. 19 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) [1]Right-click the mouse button on Renesas e2studio. 4 [2]Click Send to. [3]Click Desktop (create shortcut). 6 Shortcut was created on the desktop. 20 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 3.7 Display of the extensions There are many files only differentiated by their extension such as "kit12_rx62t.c", "kit12_rx62t.obj" and "kit12_rx62t.mot", used by the Renesas software. Therefore, we would confuse the files if the "Hide file extensions for known file types" Windows setting was selected. Change the default setting to display extension here. [1]Click Start. 1 [2]Click Computer. [1]Click Organize. 2 [2]Click Folder and search options. 21 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) [1] Open the View tab. [2] Move scroll bar below of Advanced settings. 3 [3]Uncheck Hide extensions for known file types. [4]Click OK. 22 4 Preparation for Writing Program to MCU 4.1 Download of FDT (Flash Development Toolkit) Advance to "Install of FDT (Flash Development Toolkit)" if you are using the the MCR Start-up Kit. Get the FDT (Flash Development Toolkit) from the Renesas site. 1 Renesas Electronics http://www.renesas.eu Under the Develepmet tools tab, click Coding Tools. 2 Click "Coding Tools" Click "Flash and PROM Programming" In the left hand panel, select ‘Flash and PROM Programming’. 3 23 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 4 Scroll down and select ‘Flash Development Toolkit [Programming software]’. 5 Under the downloads tab, select ‘[Evaluation Software] Flash Development Toolkit V.4.09 Release 02’. 6 Click Agree after reading the AGREEMENT. 7 Click Download. 24 If you do not have a My Renesas account, please register for a new account first. A My Renesas account is required in order to download this software. 8 If you have a My Renesas account, login by entering your e-mail address and password, and clicking Submit. Save the file to your PC. Downloading of FDT (Flash Development Toolkit) has completed. 9 The installed file is fdtv409r02.exe. 25 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 4.2 Install of FDT (Flash Development Toolkit) Run the fdtv409r02.exe file of the "FDT (Flash Development Toolkit)" you downloaded from the web, or run it from the run the setup.exe file from the the MCR Start-up Kit (it is located inside the ‘Resources’ folder, then ‘MCR Kit Software Tools & Drivers’, then ‘Renesas FDT’). 1 2 Click Next >. 3 After select the language, Click Next >. Select "I accept" after reading the AGREEMENT. 4 Click Next >. 26 5 Click Next >. 6 Click Next >. 7 Click Next >. 27 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 8 Click Install. 9 Click Finish to complete installation. 10 For your convenience, a shortcut icon for Flash Development Toolkit 4.09 Basic is created on your desktop. 28 4.3 Download of USB Drivers To write programs to the RMC-RX62T MCU board, the USB Serial Converter and USB Serial Port Driver are needed. You can get these drivers from the FTDI (Future Technology Devices International Ltd.) site. Note: Advance to "Install of USB Drivers" if you are using the the MCR Start-up Kit. Open the FTDI site. 1 FTDI site: http://www.ftdichip.com/ 2 Click Drivers. 3 Click D2XX Drivers. 29 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) Choose D2XX Drivers according to your PC system. For 64-bit version select ‘setup executable’ link in the row for the Wndows 8.1 2.08.30 drivers. 4 64-bit download link For 32-bit version select ‘setup executable’ link in the row for the Wndows 2.08.30 drivers. 32-bit download link D2XX Drivers contain the USB Serial Converter and USB Serial Port Driver. Save the downloaded executable file. 5 30 4.4 Install of USB Drivers and connecting the car 1 Run the downlaoded file CDM v2.08.30 WHQL Certified.exe you downloaded from the web, or or run the file from the the MCR Start-up Kit (it is located inside the ‘Resources’ folder, then ‘MCR Kit Software Tools & Drivers’, then ‘FDTI Drivers’ – then you have the option to choose either 64- or 32-bit depending on your machine). 2 Click Extract 3 Click Next > 31 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) Click Finish 4 3. Connect by USB cable Connect the PC and MCU board on the car using a USB cable. 1. Power OFF 4. Power ON 5 USB cable The procedure is as follows. [1] Power off the MCU board. 5V [2] Turn the SW5 of the MCU board to PROGRAM. [3] Connect the PC and MCU board using a USB cable. 2. Turn SW5 to PROGRAMM [4] Power on the MCU board. If "Serial Com Port (COMXX)" is displayed, installation is complete. Note: If "Serial Com Port (COMXX)" is not 6 displayed, refer to "Confirmation of COM Port" and please confirm it. 32 4.5 Confirmation of COM Port 3. Connect by USB cable Connect the PC and MCU board using a USB cable. 1. Power OFF 4. Power ON 1 The procedure is as follows. [1] Power off the MCU board. 5V USB cable [2] Turn the SW5 of the MCU board to PROGRAM. [3] Connect the PC and MCU board using a USB cable. 2. Turn SW5 to PROGRAMM 2 [4] Power on the MCU board. To confirm the COM port number for the USB serial port, open Properties in My Computer. ① ② Click Device Manager. 3 33 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) Confirm the number of the USB Serial Port (COMxx) under Ports (COM and LPT). In this example, the port number is COM10. The COM number here must be between COM1 and COM9. If your COM number is something other than COM1 to COM9, change the COM number according to the following procedure. 4 Open the properties of USB Serial Port (COM10). Open the Port Settings tab. 5 Click Advanced. Set a COM port number between COM1 and COM9. 6 Click OK. 34 Click OK to finish setting the COM number. 7 35 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 4.6 Download sample code Renesas provides a sample code which allows you to test the car is operating correctly (refer to Operation Test Manual) and begin running the car around a track (refer to Program Explanation Manual). The main code can then be used as a starting point for optimising the car – you can create your own code from scratch or continuously modify the basic code supplied. Note: Advance to "Access Sample Code from the MCR Start-up Kit" if you are using the MCR Start-up Kit. 4.7 Access Sample Code from the Web The sample code is found at the following web address: http://am.renesas.com/company_info/carrally/ download/index.jsp 1 Click "workspace_rx62t_100_eng.exe" 2 Under the ‘Micon Car Kit, Ver 5.1’ banner, scroll down to ‘7. Sample Programs’ and click on workspace_rx62t_100_eng.exe 3 Click Agree after reading the AGREEMENT. 36 4 Click Run. 5 Select a location to save the sample code and click Ok. 4.6 Access Sample Code from the MCR Start-up Kit Open the the MCR Start-up Kit folder then go into ‘Resources’, then ‘Sample Code’. Open the file ‘workspace_rx62t_100_eng.exe’. 1 37 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) 2 Click Run. 3 Select a location to save the sample code and click Ok. 38 4.7 Programming Procedure [1] Power off [5] Power on 5V [2] Connect 1 SW3 [3] Change mode of RXD and EMLE USB cable [4] program position OFF LED lights ON MDE EMLE RXD [1] Power off [2] Connect PC and MCU board by USB cable. [3] Turn on RXD and EMLE of SW3. [4] Turn SW5 to PROGRAM. SW5 must change states while the power is off. [5] Power on The LEDs on the MCU board should light at this time. POR 2 Open e2 Studio and go to the Workbench 3 Under the file tab at the top, select ‘import’. Click "import" 39 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) Expand the folder labelled ‘General’, then select ‘HEW Project’ and click Next > 4 Click ‘browse’ and locate the sample code folder you saved earlier. Opening this takes you to a folder labelled ‘kit12_rx62t’. Inside this are four folders named ‘kit12_rx62t’, ‘kit12test_rx62t’, ‘sioservo1_62t’ and ‘sioservo2_62t’. 5 You will need to load each file in turn. Firstly, go into the folder ‘kit12_rx62t’ and select the file ‘kit12_rx62t.hwp’ Then click Finish This opens the main running sample code for the car. You can double click on ‘kit12_rx62t.c’ in the left hand Project Explorer panel which opens the C file in the main window as shown. 6 It is the .c file with the same name as the project that contains the main code for each of the car’s programs – e.g. the main code for the project sioservo1_62t is found in the file sioservo1_62t.c. 40 Repeat steps 3-5 three times to open the other three .hwp files - ‘kit12test_rx62t.hwp’, ‘sioservo1_62t.hwp’ and ‘sioservo2_62.hwpt’. 7 Once you have done this you should see them all together in your Project Explorer panel on the left. Execute a BUILD. Select project from the Project Explorer panel. Choose the corresponding project for the program you wish to program to the car; main running code, test code, servo adjust 1 or servo adjust 2. Click “Build Project)” 8 For now we will load the kit12_rx62t.c main running code but the process is the same for each file. Right click on the project title and select ‘Build Project’ – this generates a .mot file in the debug folder of the chosen project where you originally saved your sample code. Start up Flash Development Toolkit 4.09 Basic. 9 Click its shortcut icon on the desktop. 1 Write "generic" in the Filter field. Then choose Generic BOOT Device. 10 Click Next >. 2 3 41 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) Choose the COM number. 11 Click Next >. Click OK. 12 Click OK. 13 If an error occurs, please try again. 1 [1] Write 12.288 for CPU crystal frequency. [2] Choose 8 for CKM. 14 2 [3] Choose 4 for CKP. 3 Click Next >. 42 15 Click Next >. 16 Click Finish. Check User/Data Area. 17 Then click the triangle on the far right and click Browse. 43 Renesas Integrated Development Environment Installation Manual (RMC-RX62T board Version) Open the kit12_rx62t.mot file. The kit12_rx62t.mot file is found in the debug folder inside the folder kit12_rx62t where you saved your sample code. 18 Click Open. Click Program Flash. 19 Then program writing will begin. After programming has finished, click Disconnect. 20 44 21 Click OK. 22 Program writing completed. [1] Power is turned off [4] Power is turned on 5V [2] Remove the cable 23 USB cable [3] Run position 45 When the programming operation has completed, run the program using the following procedure. [1] Turn off the power. [2] The USB cable may be left connected or may be disconnected. (However, it should be disconnected if the MCU car will be operated.) [3] Turn SW5 to RUN. [4] The downloaded program will be run when the power is turned on.
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.5 Linearized : No Page Count : 49 Language : en-GB Tagged PDF : Yes Title : Renesas IDE Installation Manual Author : AND Technology Research Subject : 2405 Renesas Keywords : AND, Technology, Research, Ltd, |, www.andtr.com Creator : Microsoft® Word 2010 Create Date : 2014:05:06 10:26:34+01:00 Modify Date : 2014:05:06 10:26:34+01:00 Producer : Microsoft® Word 2010EXIF Metadata provided by EXIF.tools