Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.

Slides:



Advertisements
Similar presentations
Microsoft Office 2007 Web Feature Sharing Access Data.
Advertisements

Renesas Technology America Inc. 1 SKP8CMINI-15,17 Tutorial 2 Creating A New Project Using HEW4.
Code Composer Department of Electrical and Computer Engineering
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
Lab6 – Debug Assembly Language Lab
NetAcumen ActiveX Download Instructions
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Using PDG with e2studio: Example
ECE Department: University of Massachusetts, Amherst Lab 1: Introduction to NIOS II Hardware Development.
Views Dwight Deugo Nesa Matic
Installing geant4 v9.5 using Windows Daniel Brandt, 06 April 2012 Installing Geant4 v9.5 for Windows A step-by-step guide for Windows XP/Vista/7 using.
Inventory Throughout this slide show there will be hyperlinks (highlighted in blue) follow the hyperlinks to navigate to the specified Topic or Figure.
SKP8CMINI-15,17 Tutorial 1 Software Development Process using HEW4
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 1 Introduction.
M16C/Tiny SKP Tutorial 1 Software Development Process using HEW4
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Introduction Purpose Objectives Content Learning Time
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
The instructor presents the 1st 9 slides
Renesas Technology America Inc. 1 M16C/Tiny SKP Tutorial 2 Creating A New Project Using HEW4.
How to Download and Install a Sharp Print Driver on a Mac.
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course provides an overview of the installation and.
Using Backstage Lesson 2. Objectives Software Orientation: Backstage View Backstage view’s left-side navigation pane (see figure on the next slide) gives.
HTML, XHTML, and CSS Chapter 12 Creating and Using XML Documents.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Purpose  This training course describes how to configure the the C/C++ compiler options.
ICP Kit 2011 HHC Data Entry Module The World Bank ICP Kit Training African Development Bank.
CCS APPS CODE COVERAGE. CCS APPS Code Coverage Definition: –The amount of code within a program that is exercised Uses: –Important for discovering code.
Introduction Purpose This course describes the process of installing the KPIT GNU toolchain on your PC. Objective Learn how easy it is to get information.
IT 211 Project Integration and Deployment Lab #11.
Geo CE-XM ch 4 Edited 10/14/05 1 The XM is the newest of the rovers, and unlike other units, it comes with software installed on the unit as well as using.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Purpose  This training module provides an overview of optimization techniques used in.
Chapter 6 Generating Form Letters, Mailing Labels, and a Directory
1. Insert the Resource CD into your CD-ROM drive, click Start and choose Run. In the field that appears, enter F:\XXX\Setup.exe (if “F” is the letter of.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
® 2-2 Projects 2.1Projects Overview Bootable Projects and VxWorks Configuration Integrated Simulator Downloadable Projects Build Specifications.
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
Training Guide for Inzalo SOP Users. This guide has been prepared to demonstrate the use of the Inzalo Intranet based SOP applications. The scope of this.
Active-HDL Interfaces Debugging C Code Course 10.
Installing MDT 2010 on Windows Server 2008 R2 This guide assumes you are installing MDT 2010 on a Windows Server 2008 R2 server with the Windows Deployment.
9/2/ CS171 -Math & Computer Science Department at Emory University.
From Scratch: Open CCS Exit and restart CCS Click Browse to create a new workspace directory.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
11/25/2015Slide 1 Scripts are short programs that repeat sequences of SPSS commands. SPSS includes a computer language called Sax Basic for the creation.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This course gives an overview of the Toolchain feature of the High.
Renesas Technology America Inc. 1 M16C Seminars Lab 3 Creating Projects Using HEW4 14 March 2005 M16C Seminars Lab 3 Creating Projects Using HEW4 Last.
Using This PowerPoint This PowerPoint presentation assumes your Computer Science teacher has provided you with the InstallingJava folder, which contains.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course explains how to use section setting and memory.
Quick guide to ASIMON configuration For version 3.0 or greater SAFETY AT WORK Date: 3/18/2009.
1 Introduction Purpose  This course gives an overview of assembler settings of the High-performance Embedded Workshop (HEW), used for developing software.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This course explains how to use Mapview, a utility program for the.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course describes Coverage, a utility that is used.
Intro Compiler Configuration and Sample Project Walkthrough (For Axiom CME11E9-EVB)
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the Project Generator function.
Invoices and Service Invoices Training Presentation for Raytheon Supply Chain Platform (RSCP) April 2016.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
CACI Proprietary Information | Date 1 PD² SR13 Client Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8, 2011.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the use of the High-performance.
Arria 10 External Memory Interface Example Design Guidelines
Introduction Purpose Objectives Content Learning Time
Administering a Database System
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Software Setup & Validation
Planning a Group Policy Management and Implementation Strategy
Java Code Review with CheckStyle
Presentation transcript:

Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW

2Overview This tutorial describes the steps in creating new projects for the R8C using two different methods. The first method uses the SKP project generator that will create an empty project. The second method will provide step by step instructions on how to create a new project with existing source files. To get the most out of the SKP including the development tools, check out the references at the end of this tutorial. Note: This tutorial assumes the user has done the following: 1.Followed the ‘Quick Start Guide’ 2.Installed the SKP files, examples, and software tools in the default directories. 3.Reviewed Tutorial 1.

3 Starting HEW From the Windows Start menu, click on Programs > Renesas High-performance Embedded Workshop> High-performance Embedded Workshop

4 Creating a Project Workspace When HEW starts up, you will be prompted to select a workspace.By default, ‘Create a new project workspace’ option is selected. 1. Ensure this option is selected. 2. Click on ‘OK’ button.

5 Creating a new project with the SKP project generator (1/4) 1. Enter ‘Tutor2_pg’. 2. Select M16C. 3. Select ‘R8C Starter Kit Plus’ as the project type. Note: This is the directory where the project will be created.

6 Select ‘Empty Project’. Note: The other project selections (Verify SKP & Sample Code) allow you to test the SKP and evaluate the MCU peripherals and features using pre-built sample code. Creating a new project with the SKP project generator (2/4)

7 Creating a new project with the SKP project generator (3/4) Step 2 shows the files that will be added to the new project and their descriptions. Click ‘Finish’.

8 Creating a new project with the SKP project generator (4/4) The project generator information is shown once the project has been created. Click ‘OK’.

9 HEW after creating a new project using the SKP project generator

10 The following is a summary of what happens when creating a new project using the SKP project generator Empty Project: 1.The following files are created in the workspace or project directory (in this example, under C:\hew3\Tutor2_pg):  A copy of the user startup (ncrt0_r8c.a30 and sect30_r8c.inc) files.  A.c file (main_R8C_SKP.c) that contains the main function.  Copies of the SKP header file (sfrr8c11.h) included in the.c file.  A copy of the sfr_r8c11.a30 file so SFR names are visible in KD30. 2.Links the startup files first as shown in “Linking the startup files first” slides (25 & 26). 3.Configures the external debugger to launch KD30 as shown in the slide “Launching KD30 from HEW” (slide 28). 4.Adds the phase to generate a hex file when building a project as shown in the slide “Generate a hex file for Programmer” (29). SKP Project Generator Summary (1/2)

11 SKP Project Generator Summary (2/2) The project structure and files created when using the SKP project generator are shown here.

12 Creating a New Project Environment The SKP Project Generator simplifies several steps in creating a new project but what if you already have source files? The following slides will walk you through the following:  Creating a new workspace from scratch  Adding source files  Setting up the software development environment - including linker, build, debugger and programming configurations

13 Creating a New Project (1/8) 1. Select ‘Application’. 3. Enter ‘Tutor2’ as name of the project. 2. Browse to, or enter, ‘C:\MTOOL\SKP8CMini\ Sample_Code’. 4. Leave as is (i.e. ‘Tutor2’). 5. Select M16C 7. Click on ‘OK’ button. 6. Verify Renesas M16C Standard Tool chain Select ‘New Workspace’ from the File menu…

14 Creating a New Project (2/8) 2. R8C/Tiny selected 1. R8C is selected 3. Click on ‘Next’ button.

15 Creating a New Project (3/8) Note: 1. Differences between Default and USER Startup files is discussed after the project is created. 1.Select ‘R8C/Tiny’. 4. Click on ‘Next’ button. 2.Leave as is. 3.Select ‘USER’ 1.

16 Creating a New Project (4/8) 2. Click on ‘Next’ button. 1. Select ‘None’ as we already have a file with the main() function

17 Creating a New Project (5/8) The stack settings are grayed out because USER startup file was selected (see Creating a New Project 3/8 ). If DEFAULT startup file was selected, these settings become available. Click on ‘Next’ button.

18 Creating a New Project (6/8) 1. Select ‘KD30’. 2. Leave as is. 3. Click on ‘Next’.

19 Creating a New Project (7/8) We already have the source files and selected USER startup files (see Creating a New Project 3/8 and 4/8 ) and so, there are no source files that will be generated. Click on ‘Finish’ to complete project creation process…

20 Creating a New Project (8/8) A project summary is displayed to indicate a successful creation of the new project, Tutor2. Click on ‘OK’.

21HEW After creating the project, HEW will look similar to the figure below.

22 Default and R8C Startup Files Startup files have been specifically created for the Mini R8C SKP. It is recommended that you use these files (ncrt0_r8c.a30 and sect30_r8c.inc) instead of the default startup files (ncrt0.a30 and sect30.inc) that come with NC30. The differences between these startup files are listed below: Ncrt0_r8c.a30  Macros moved to sect30_r8c.inc.  Stack size, Int stack size and vector addresses moved to sect30_r8c.inc.  Heap removed.  Processor mode initializations removed in ncrt0_r8C.a30.  Conditional assembler switches for R8C/M16C. Sect30_r8c.inc  Variable Vector Definition – Simplified and described in user file Note: You can use the default startup files but ensure that you understand how to make the necessary modifications. The customized startup files for the SKP can be found under C:\MTOOL\SKP8CMINI\Sample_Code\Startup_Files directory.

23 Adding Source Files (1/2) 1. From HEW’s Project menu, select Add Files and the Add Files dialog box is displayed. 3. Select main_tutor2.c and ncrt0_tutor2.a Browse to C:\MTOOL \SKP8CMini\Sample_ Code\Tutor2_src folder, which contains the source codes for this tutorial. 4. Click on Add.

24 Adding Source Files (2/2) After adding source files, HEW’s workspace will look like the figure below. 1. To display dependencies per source file, right- click on the Workspace window, and click on the Configure View. 2. Click on check boxes in Configure View dialog box. 3. Click on OK button. Displaying the source file dependencies this way makes it easier to verify if the header files are included before building the project.

25 Linking the Startup File First (1/2) After checking dependencies, NC30 must be set to compile and link the startup files first. The startup files contain information on memory addresses and sections which the linker uses to place the code at the correct addresses. 4. Select Relocatable files. 1. Select Renesas M16C Standard Toolchain from the Option menu and this window is displayed. 3. Click on Link tab. 2. Select All Configurations. 5. Click on Add.

26 Linking the Startup File First (2/2) 1. Select Configuration directory. 2. Enter the startup source file, i.e. ncrt0_tutor2. 4. Click on OK. 3. Click on OK.

27 Building (compile & link) the Project If there are no errors, you can try running the program on the mini R8C board using the ICD and KD30 Debugger. 2. Look at the Output window and check whether any errors or warnings occurred. 1. With the workspace name in the Workspace window highlighted, click on the build icon to build the project.

28 Launching KD30 from HEW 7. To launch KD30 (and download.x30 file) click on this icon. KD30 can be launched directly from HEW, but first it must be configured as shown below: 1.Select Customize from from the Tools menu. 2.Click on Debugger tab 6.Click on OK. 3.Select Other external debugger. 4.Locate KD30 from C:\MTOOL\KD30 folder. 5.Enter -LOAD=$ (CONFIGDIR)\$(PROJECT NAME).x30

29 Generate a hex file for Programmer After building a program, a file with an.x30 is generated. For this example, ‘tutor2.x30’ is generated. This.x30 file can be downloaded using KD30. Device programmers, including the FoUSB Programmer, use hex files in Motorola or Intel format. 1. To generate a hex file during the build process, select Build Phases from the Option menu. 2. Click on M16C Stype converter checkbox. 3. Click on OK. With the feature enabled, a.mot file is also created when building the project.

30 End of Tutorial 2 This is the end of tutorial 2. You can try modifying or downloading other sample programs from the \Sample_Code directory. The completely built tutor2 project can be found in the Zip file under C:\MTOOL\Sample_Code\tutor2_src folder. Be sure to check out the references on the following pages. Have Fun!!

31 References and Recommended Reading All documents that came with the SKP can be found using the “Document Description” from the Start > Programs > Renesas-Tools > SKP8CMINI menu. SKP8CMINI User’s Manual: This is a “must read” document! It details all the things you need to know on how to use the Starter Kit. HEW User’s Manual: To fully understand and get the most out of HEW. This is recommended reading. KD30 Version X.XX Help: The tutorial only covered the basics of KD30. Check out the Help menu to find out all of KD30’s features. NC30 Version X.XX User’s Manual: Check this manual out for features specific to the NC30 compiler. R8C/11 Datasheet and Mini R8C Board Schematic: These are required to write user application programs. RTA-FoUSB-MON User’s Manual: Read this manual to understand how the ICD works.

32 References and Recommended Reading M16C/10/20/60 Series C Language Programming Manual: This is a great document for any level of programmer. The first chapter is an intro to C programming. The next chapter explains the memory map of C programs on microcontrollers and the role of startup programs. R8C/Tiny Series Software Manual: This document describes the instruction set and timing information for the M16C/20/60 series CPU cores. AS30 Version X.XX User’s Manual: Read this manual if you plan on writing programs in Assembly or when making changes to the startup file. Application Notes and Sample Programs: Application notes and other sample programs can be accessed from Renesas Technology America’s website: