DOC PREVIEW
UNCC ECGR 4101 - Creating A New Project Using HEW

This preview shows page 1-2-15-16-31-32 out of 32 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 32 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 32 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 32 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 32 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 32 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 32 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 32 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

1Renesas Technology America Inc.SKP16C26SKP16C26Tutorial 2Tutorial 2Creating A New Project Creating A New Project Using HEWUsing HEW2OverviewOverviewThis tutorial describes the steps in creating new projects for the M16C 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 creating a 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 ‘Quickstart Guide’ 2. Installed the SKP files, examples, and software tools in the default directories.3. Reviewed Tutorial 1.3Starting HEWStarting HEWFrom the Windows Start menu, click onPrograms > Renesas High-performance Embedded Workshop>High-performance Embedded Workshop4Creating a Project WorkspaceCreating a Project WorkspaceWhen 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.5Creating a New Project with the Creating a New Project with the SKP project generator (1/4)SKP project generator (1/4)1. Select ‘M16C/26 Starter Kit Plus’ as the project type.2. Enter ‘Tutor2_pg’.Note: This is the directory where the project will be created, ‘C:\HEW3\Tutor2_pg’.3. Select M16C.5. Click on ‘OK’ button.4. Verify Renesas M16C Standard is selected.6Creating a New Project with the Creating a New Project with the SKP project generator (2/4)SKP project generator (2/4)1. Select ‘Empty Project’.Note: The other project selections (Verify SKP and Sample Code) allow you to test the SKP and evaluate the MCU peripherals and features using pre-built sample code.2. Click on ‘Next’ button.7Creating a New Project with the Creating a New Project with the SKP project generator (3/4)SKP project generator (3/4)Note: Step 2 shows all the files that will be added to the new project and their description.1. Click on ‘Finish’ button.8Creating a New Project with the Creating a New Project with the SKP project generator (4/4)SKP project generator (4/4)1. Click on ‘OK’ button.The project generator information is shown once the project has been created.9HEW after Creating a New Project using the HEW after Creating a New Project using the SKP project generatorSKP project generator10SKP project generatorSKP project generatorSummary (1/2)Summary (1/2)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_26skp.a30 and sect30_26skp.inc) files. A .c file (main_26skp_template.c) that contains the main function. Copies of the SKP header files (sfr26.h, skp_bsp.h, and skp_lcd.h) included in the .c file. A copy of the sfr_26.a30 file so SFR labels are visible in KD30.2. Links the startup files first as shown in the “Linking the startup files first” slides (slides 25 & 26).3. Configures the external debugger to launch KD30 as shown in the “Launching KD30 from HEW” slide (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 the Programmer” (slide 29).11SKP project generatorSKP project generatorSummary (2/2)Summary (2/2)The project structure and files created when using the SKP project generator are shown here.12Creating a New Project EnvironmentCreating a New Project EnvironmentThe SKP project generator simplifies several steps in creating anew 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 configuration.13Creating a New Project (1/8)Creating a New Project (1/8)1. Select ‘Application’.3. Enter ‘Tutor2’ as name of the project.2. Browse to, or enter, ‘C:\MTOOL\SKP16C26\Sample_Code’.4. Leave as is (i.e. ‘Tutor2’).5. Select M16C.7. Click on ‘OK’ button.6. Verify Renesas M16C Standard is selected.Select ‘New Workspace’ from the File menu…14Creating a New Project (2/8)Creating a New Project (2/8)2. Select ‘M16C/20’.1. Leave as is.3. Click on ‘Next’ button.15Creating a New Project (3/8)Creating a New Project (3/8)Note: 1. Differences between Default and USER Startup files is discussed after the project is created.1. Select ‘M16C/20’.2. Leave as is.3. Select ‘USER’1.4. Click on ‘Next’ button.16Creating a New Project (4/8)Creating a New Project (4/8)1. Select ‘None’ as we already have a file with the main() function.2. Click on ‘Next’ button.17Creating a New Project (5/8)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.1. Click on ‘Next’ button.18Creating a New Project (6/8)Creating a New Project (6/8)1. Select ‘KD30’.2. Leave as is.3. Click on ‘Next’.19Creating a New Project (7/8)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.1. Click on ‘Finish’ to complete project creation process…20Creating a New Project (8/8)Creating a New Project (8/8)A project summary is displayed to indicate a successful creation of the new project, tutor2.1. Click on ‘OK’.21HEWHEWAfter creating the project, HEW will look similar to the figure below.22Default and User (SKP) Startup FilesDefault and User (SKP) Startup FilesExcept for comments, the differences between the default (ncrt0.a30 and sect30.inc) and user (ncrt0_26skp.a30 and sect30_26skp.inc) startup files are listed below:Ncrt0.a30 BCLK – Set to f1 (div by 1) of Xin (BCLK = Xin frequency) in user file. Stack sizes – Smaller (0x100) in user file [default at 0x300]. Heap size – 0 (no heap size) in user file. Vector Base Address – 0xFF800 for (M16C/26) in user file [default at 0xFFD00 (M16C/62)] Section Allocation – Calls user sect30 file (sect30_26skp.inc) [default calls default


View Full Document

UNCC ECGR 4101 - Creating A New Project Using HEW

Documents in this Course
Load more
Download Creating A New Project Using HEW
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Creating A New Project Using HEW and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Creating A New Project Using HEW 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?