Migration from HEW to e 2 studio Development Tools > IDEs

Similar documents
External Headers. USB Host User LEDs. User Switches. E1 Header (Unfitted)

Figure 1. Simplicity Studio

Using Virtual EEPROM and Flash API for Renesas MCUs RX600 Series

Tools Basics. Getting Started with Renesas Development Tools R8C/3LX Family

Migrating from CubeSuite+ to Eclipse RL78 Family

At the shell prompt, enter idlde

Laboratory Assignment #4 Debugging in Eclipse CDT 1

Introduction. Purpose. Objectives. Content. Learning Time

Setting up the K70 with KDS

Quick-Start Guide. BNS Solutions. QSK62P Plus

6L00IA - Introduction to Synergy Software Package Short Version (SSP v1.2.0) Renesas Synergy Family - S7 Series

Quick-start Guide for YRDKRX63N v3.3

ActiveBPEL Fundamentals

R8C/Tiny. StarterKit Plus SKP8CMINI-15, SKP8CMINI-17. Clock Stop Detect

DOMAIN TECHNOLOGIES. Getting Started Guide Version 1.1. BoxView IDE. Integrated Development Environment

Exercise 3.1 EGL-CE 1.0 and Tomcat 6.0

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

BASICS OF THE RENESAS SYNERGY TM

ATOLLIC TRUESTUDIO FOR STM32 QUICK START GUIDE

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio

ECE QNX Real-time Lab

You have a PC with a USB interface, running Microsoft Windows XP (SP2 or greater) or Vista You have the Workshop Installation Software Flash Drive

S32R274RRUEVB AND S32R372RRSEVB SOFTWARE INTEGRATION GUIDE (SWIG)

Labs instructions for Enabling BeagleBone with TI SDK 5.x

Eclipse Tutorial. For Introduction to Java Programming By Y. Daniel Liang

Software Installation Guide for S32 Design Studio IDE (S32DS): FRDM-KEAZ128Q80 FRDM-KEAZ64Q64 FRDM-KEAZN32Q64

BASICS OF THE RENESAS SYNERGY PLATFORM

Optional Eclipse Workspace Configurations

Debugging in AVR32 Studio

BASICS OF THE RENESAS SYNERGY TM

Section 2: Getting Started with a FPU Demo Project using EK-LM4F232

Using Code Composer Studio IDE with MSP432

QUICKSTART CODE COMPOSER STUDIO Stellaris Development and Evaluation Kits for Code Composer Studio

Installation and Quick Start of isystem s winidea Open in DAVE. Tutorial Version 1.0, May, 2014

BASICS OF THE RENESAS SYNERGY PLATFORM

ATOLLIC TRUESTUDIO FOR ARM QUICK START GUIDE

Infor LN Studio Application Development Guide

Module 3: Working with C/C++

CS520 Setting Up the Programming Environment for Windows Suresh Kalathur. For Windows users, download the Java8 SDK as shown below.

BASICS OF THE RENESAS SYNERGY PLATFORM

MPC5748G-LCEVB SOFTWARE INTEGRATION GUIDE (SWIG) Ultra-Reliable MCUs for Industrial and Automotive Applications.

SKP16C26 Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

Parallel Debugging. ª Objective. ª Contents. ª Learn the basics of debugging parallel programs

Quick Start Guide Demo Distance2Go. July 2018

Introduction to IBM Data Studio, Part 1: Get started with IBM Data Studio, Version and Eclipse

Introduction to IBM Data Studio, Part 1: Get started with IBM Data Studio, Version and Eclipse

Test/Debug Guide. Reference Pages. Test/Debug Guide. Site Map Index

CodeWarrior Development Studio for StarCore DSP SC3900FP Architectures Quick Start for the Windows Edition

Lab - Configure Browser Settings in Windows 8

As CCS starts up, a splash screen similar to one shown below will appear.

DEVKIT-MPC5748G SOFTWARE INTEGRATION GUIDE (SWIG) Ultra-Reliable MCUs for Industrial and Automotive Applications.

CodeWarrior Development Studio for Power Architecture Processors FAQ Guide

Getting Started with Kinetis SDK (KSDK) v.1.2

Freescale Semiconductor Inc. Vybrid DS-5 Getting Started Guide Rev 1.0

AURIX family and AUDO Future, AUDO MAX

Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial

Ethernut 3 Source Code Debugging

Introduction to Computation and Problem Solving

IAR C-SPY Hardware Debugger Systems User Guide

OS PORTING AND ABSTRACTION LAB USER MANUAL

If your machine is not connected to any network, you can configure the Microsoft Loopback Adapter to simulate a network connection.

NetBeans Tutorial. For Introduction to Java Programming By Y. Daniel Liang. This tutorial applies to NetBeans 6, 7, or a higher version.

As CCS starts up, a splash screen similar to one shown below will appear.

Installation and Upgrade Guide Zend Studio 9.x

Introducing HP NonStop Development Environment Version 2.0 for Eclipse (NSDEE 2.0)

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2003

APPENDIX A. CODE COMPOSER STUDIO (CCS) v5: A BRIEF TUTORIAL FOR THE DSK6713

F28069 ControlCard Lab1

Installation and Upgrade Guide Zend Studio 9.x

Discovering Computers & Microsoft Office Office 2010 and Windows 7: Essential Concepts and Skills

Parallel Tools Platform

DS-5 ARM. Using Eclipse. Version Copyright ARM. All rights reserved. ARM DUI 0480L (ID100912)

Debugging Linux With LinuxScope-JTD

Nios II Studio Help System

Quick Start Guide Demo Distance2Go. September 2017

Windows 2000 Safe Mode

How to: Flash the DC/DC LED Lighting Kit s F28035 controlcard so that it works with the GUI

Lab 3-2: Exploring the Heap

CodeWarrior Development Studio for Advanced Packet Processing FAQ Guide

Eclipse-Based CodeWarrior Debugger

Eclipse Quick Reference Windows Hosted

Mobile Programming Lecture 4. Debugging

M16C/62P QSK QSK62P Plus Tutorial 1. Software Development Process using HEW4

Getting Started with Kinetis SDK (KSDK) v.1.3

CodeWarrior Development Studio for Power Architecture Processors Version 10.x Quick Start

Introduction to the M16C Development Environment

2 Getting Started. Getting Started (v1.8.6) 3/5/2007

Drools Tools Reference Guide. Version: CR1

Blackfin cross development with GNU Toolchain and Eclipse

QNX Software Development Platform 6.6. Quickstart Guide

F28335 ControlCard Lab1

Pengwyn Documentation

AndeSight. User Manual. Working with AndESLive. Version 1.0

CPE 323: Laboratory Assignment #1 Getting Started with the MSP430 IAR Embedded Workbench

NonStop Development Environment for Eclipse 4.0 Debugging Supplement

Rapid SQL Developer Debugger 2.0 User Guide

TriCore Free Entry Tool Chain. AURIX family and AUDO Future, AUDO MAX

Kinetis SDK Freescale Freedom FRDM-KL03Z Platform User s Guide

3 Getting Started with Objects

GRLIDE. LEON IDE plugin for Eclipse User's Manual. The most important thing we build is trust GR-LIDE-UM. August 2016, Version 1.

Transcription:

Migration from HEW to e 2 studio Development Tools > IDEs LAB PROCEDURE Description The purpose of this lab is to allow users of the High-performance Embedded Workbench (HEW) to gain familiarity with the process of migrating HEW projects to the Eclipse-based e2studio IDE. This lab will step through use of the HEW Import wizard within e2studio and illustrate the subsequent steps required to setup the e2studio debugger. Lab Objectives 1. Make use of the HEW Import wizard 2. Understand the wizard implementation 3. Setup the e2studio debugger 4. Launch a debug session within e2studio Lab Materials Please verify you have the following materials at your lab station. PC with HEW, e2studio and RXC toolchain preinstalled YRDKRX63N demonstration kit Skill Level 1. Intermediate 2. Familiarity with HEW assumed 3. Basic C programming skills Time to Complete Lab 30 Minutes Lab Sections 1 Reviewing an Example Project in HEW... 2 2 Importing the Example Project in e2studio... 5 3 Debugger setup in e2studio... 6 Migration from HEW to e2studio Page 1 of 7

1 Reviewing an Example Project in HEW Overview In this section you will open an existing project within the High-performance Embedded Workshop (HEW) which will serve as an example for the project migration exercise. Procedural Steps Step 1.1 Start the HEW development environment by clicking Start > All Programs > Renesas > High-performance Embedded Workshop > High-performance Embedded Workshop or by clicking the HEW icon on the Windows desktop. Step 1.2 In the Welcome dialog box, select Browse to another project workspace and then navigate to the HEWe2studioMigration.hws workspace file at the location indicated by the lab supervisor. The workspace contains a single project named Example which contains multiple files providing startup definitions for the YRDKRX63N demonstration board and application code within the Example.c file. Step 1.3 Step 1.4 Add a new source file and header file to the project by clicking Project > Add Files and navigating to the files led.c and led.h in the External folder located with the HEWe2studioMigration.hws workspace file. Modify the application code to use the led() function provided within the led.c file by opening the Example.c file. Include the led.h file near the top of Examples.c by adding the line: #include "led.h" Step 1.5 Call the led() function within the while loop of the application code by adding the line: led(n >> 10); Step 1.6 Add the External folder to the project as an include file directory by clicking Build > RX Standard Toolchain selecting the Example project, then Include file directories and finally clicking Add (see screenshot below). Migration from HEW to e2studio Page 2 of 7

Step 1.7 Add a definition of the LEDBYTE pre-processor macro for building the file led.c by clicking Build > RX Standard Toolchain selecting the led.c file, then Defines and finally clicking Add (see screenshot below). The value of this macro (0x8c00d) is the address of the IO register to which the LEDs on the demonstration board are mapped. Migration from HEW to e2studio Page 3 of 7

The added code will toggle the state of LEDs on the target board each time around the loop. The location of the added project files (outside the project folder) will be used to illustrate the behavior of the HEW import wizard later in this lab. Step 1.8 Save and then build the modified application code by clicking File > Save followed by Build > Build. Step 1.9 Download the application to the target by clicking Debug > Connect followed by Debug > Download Modules > Download All Modules. Step 1.10 Verify correct operation of the application by clicking Debug > Go. The user LEDs on the RDKRX63N demonstration board should flash to confirm correct execution. Step 1.11 Halt execution by clicking Debug > Halt Execution and then exit HEW. Migration from HEW to e2studio Page 4 of 7

2 Importing the Example Project in e2studio Overview In this section you will import the HEW project into the e2studio IDE and confirm that the import has been successful by building the project. Procedural Steps Step 2.1 Start the e2studio IDE by clicking Start > All Programs > Renesas Electronics e2studio > Renesas e2studio or by clicking the e2studio icon on the Windows desktop. Step 2.2 Step 2.3 Step 2.4 Start the HEW Import wizard by clicking File > Import and then selecting HEW Import from the General folder. On the next page of the wizard, browse to the HEW project file named Example.hwp in the Example folder located with the HEWe2studioMigration.hws workspace file. Click Finish to complete the wizard. The HEW import wizard will create e2studio project metadata within the existing Example folder and add the project to the current e2studio workspace. The project will then appear within the Project Explorer view. Step 2.5 Ensure that the Debug build configuration is active for the new project by selecting the Example project node in the Project Explorer view and then clicking Project > Build Configurations > Set Active > Debug. The import wizard does not observe the active build configuration selected within HEW. Note that all HEW build configuration names are preserved within e2studio but, by convention, an e2studio Debug build configuration is intended to target the GDB simulator while a HardwareDebug build configuration in intended to target real hardware. Step 2.6 Build the project within e2studio by clicking Project > Build Project. Questions 1. Why are the icons representing the led.c and led.h source files decorated with an arrow? 2. Why is the icon representing the led.c source file also decorated with a wrench? 3. How can you confirm that the build settings specified within HEW have been transferred to e2studio correctly? 4. Why is the icon representing the decr.c source file in the sys folder decorated with a diagonal strikethrough? Migration from HEW to e2studio Page 5 of 7

3 Debugger setup in e2studio Overview In this section you will create an Eclipse launch configuration within the e2studio IDE and verify correct building of the Example project by launching a debug session. Procedural Steps Step 3.1 Select the ELF executable image file named Example.x located under the Binaries virtual folder of the Example project within the Project Explorer and then click Run > Debug As > Renesas GDB Hardware Launch. e2studio will look for an existing launch configuration suitable for launching this executable file on Renesas hardware. On the first occasion, no suitable launch configuration will be found so the IDE will prompt for the information required to create one. Step 3.2 Step 3.3 Select the Segger JLink debugger from the list of supported debuggers and click OK. Select the R5F563NB target device from the list of supported devices and click OK. e2studio will use the information provided to create a launch configuration and then immediately launch a debugging session based on the new configuration. The IDE may prompt for confirmation that the Renesas Debug perspective should be opened. Step 3.4 Start application execution by clicking Resume on the toolbar of the Renesas Debug view. Click Resume once again when execution is suspended at the start of the main(). The user LEDs on the RDKRX63N demonstration board should flash to confirm correct execution. Step 3.5 Step 3.6 Click Suspend on the toolbar of the Renesas Debug view and then experiment with the other buttons on this toolbar. Use the Step Into button to step into the led() function and observe the call stack. Invoke the Debug Configurations dialog by clicking Run > Debug Configurations then select the Example.x launch configuration created for the initial launch and review the various settings available (see screenshot below). Migration from HEW to e2studio Page 6 of 7

The hardware-specific settings are located on the Debugger tab of the Debug Configurations dialog. e2studio provides sensible default values for these settings based on the debugger and target device selections made prior to the initial launch. Questions 5. How would you disable the temporary breakpoint set at the start of the main() function? 6. How would you specify an additional image file to be downloaded during the launch sequence? Migration from HEW to e2studio Page 7 of 7