LAUNCHXL2-RM57L – Project 0

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Code Composer Department of Electrical and Computer Engineering
Tutorial on Basic Usage
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Bug Session One. Session description In this session, pupils are introduced to a programming sequence which will make a light pattern on their Bug. Objectives.
Getting your Arduino to Work: Microsoft Windows 1.Install Arduino programming environment 2.Install Arduino Uno driver 3.Make sure you can download a program.
Rachelle Howell The University of Texas at Austin.
KEVIN DANIELS ECLIPSE. OVERVIEW Integrated Development Environment (IDE) Usually used to develop applications in various programming languages (C, C++.
Raymond R. Balise Health Research and Policy
Installing SAS 9.3 Raymond R. Balise Health Research and Policy.
Installing SAS 9.3 Raymond R. Balise Health Research and Policy.
ECE 353 WinAVR and C Debugging Tutorial By Adam Bailin ECE 353 Fall ‘06.
1 Lab Session-I CSIT120 Spring2001 Using Windows Using An Editor Using Visual C++ Using Compiler Writing and Running Programs Lab-1 continues (Session.
Using PDG with e2studio: Example
ECE Department: University of Massachusetts, Amherst Lab 1: Introduction to NIOS II Hardware Development.
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.
Installing SAS 9.3 TS1M1 Raymond R. Balise Health Research and Policy.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
File sharing. Connect the two win 7 systems with LAN card Open the network.
Ch 9 Managing Active Directory User Accounts. Objectives Create Organizational Unit Creating User Accounts in Active Directory Disabling, Enabling, and.
® IBM Software Group © 2006 IBM Corporation The Eclipse Data Perspective and Database Explorer This section describes how to use the Eclipse Data Perspective,
Getting Started with Android Programming Note: if you have already installed android development tools, please check that you have the same version as.
Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
Introduction to FPGA Design Illustrating the FPGA design process using Quartus II design software and the Cyclone II FPGA Starter Board. Physics 536 –
This example is a step by step walkthrough for installing the SRH Front Desk Printer in Windows 8.
Tutorial on Visual Studio express Introduction Visual Studio Express Editions are a new line of Microsoft development Tools. This line of products.
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
TrendReader Standard 2 This generation of TrendReader Standard software utilizes the more familiar Windows format (“tree”) views of functions and file.
Bug Session One. Session description In this session, pupils are introduced to a programming sequence which will make a light pattern on their Bug. Objectives.
The 6713 DSP Starter Kit (DSK) is a low-cost platform which lets customers evaluate and develop applications for the Texas Instruments C67X DSP family.
Renesas Technology America Inc. 1 M16C/Tiny SKP Tutorial 2 Creating A New Project Using HEW4.
ICP Kit 2011 HHC Data Entry Module The World Bank ICP Kit Training African Development Bank.
IT 211 Project Integration and Deployment Lab #11.
High Speed Data Converter University
Thank you for your decision to try vTreePro Practice Tree Software! Your satisfaction is very important to us. Please feel free to send us an if.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
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.
An Introduction to Designing and Executing Workflows with Taverna Katy Wolstencroft University of Manchester.
Creating a Project with C++ Builder
Advanced Digital Circuits ECET 146 Week 2 Professor Iskandar Hack ET 221B,
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
® 2-2 Projects 2.1Projects Overview Bootable Projects and VxWorks Configuration Integrated Simulator Downloadable Projects Build Specifications.
Downloading and Installing Autodesk Revit 2016
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
1 What to do before class starts??? Download the sample database from the k: drive to the u: drive or to your flash drive. The database is named “FormBelmont.accdb”
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 )
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Programmable Logic Training Course HDL Editor
Optimizing Your Computer To Run Faster Using Msconfig Technical Demonstration by: Chris Kilkenny.
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.
Getting Started with Word & Saving Guided Lesson.
Eclipse Project. Installing Visit to download a copy for your home computerhttp:// –Get Release version 3.0 (or.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Using Zappers in a Common Learning Space A guide for tutors Created by Adam Warren Learning and Teaching Enhancement Unit.
Troubleshooting Dashhawk Issues. Here's what you have to do to have the DashHawk run properly Go to the ACTUAL PROGRAM file (not the short cut)
Levitra 20 mg Getting started with Firefox New to Firefox? Well you’ve come to the right place. This article covers all the basics and will get you up.
Workshop Setup The software/hardware used in this workshop are:
Lab 1: Using NIOS II processor for code execution on FPGA
Introduction Purpose Objectives Content Learning Time
PRU-ICSS Programming with CCS
T_C_N_L_G_ E D I D I E O Y O H I E B J I R E A A W.
1. Open Visual Studio 2008.
Founded in Silicon Valley in 1984
Software Setup & Validation
Embedded Development Tools
ECE 3567 Microcontrollers Lab
ECE 3567 Microcontrollers Lab
Presentation transcript:

LAUNCHXL2-RM57L – Project 0 ‘Blinky’

Objective: Project 0 should be as simple as possible. Our goal is to blink one of the User LEDs (LED2) From the schematics we can see that LED2 is controlled by pin GIOB[6] To turn on the LED – we need to drive GIOB[6] to 3.3V (logic 1) so that current will flow through the LED to ground, emitting light. The 2.2K Ohm Resistor RP9C limits the current flow to protect the LED from damage.. Let’s get Started!

Required Software (Free Downloads) CCS (Code Composer Studio) v6.1 or Later HALCoGen v. 4.0.4 or Later After Installing Code Composer Studio, Please confirm you have: TI Emulators 5.1.641.00 or Later Hercules Emulation 6.0.7 or Later You can check the version of these components through CCS. Launch CCS, select Help->About and then press the Installation Details button. The versions of all installed components will be listed. Update if Necessary.

Create a CCS Project Launch CCS Select Project -> New CCS Project The New CCS Project Wizard Appears (left) Select the RM57L8xx Target Select the XDS110 Debug Probe Give your project a name Select Empty Project Press Finish NB: Make note of the CCS project location (greyed out) for the next step.

Create a HALCoGen Project Launch HALCoGen Select File->New->Project The New Project Wizard Opens Select Family = RM57L Select Device = RM57L843ZWT Name your project (hcg) Select the CCS project location as the location of the HALCoGen Project as well (See prior slide) Check Create Directory for Project Select Texas Instruments Tools Choose OK Say “Yes” if asked to create the project directory

Your HALCoGen Project HALCoGen should appear ready to configure an RM57L843ZWT: Note how the device configuration is organized into 2 levels of tabs. The top level tabs (1) select the ‘Module” to configure. The 2nd level of tab breaks up module configuration into smaller steps (2) Generated code will appear in the Device Explorer (3) (currently empty) Pay attention to the Output pane (4) for any errors/warnings

Check the CCS Project From the “CCS Edit” Perspective… View your project in the Project Explorer You should have a subdirectory ‘hcg’ now for your HALCoGen project. If not, repeat the steps on the last two slides. Now you’re ready to generate the startup code for your project!!

Back to HalCoGen When you selected the RM57L843ZWT template for your HALCoGen Project – you automatically inherited a default device configuration. You could press ‘F5’ and generate correct startup code for a generic “C” program that doesn’t interact with peripherals. We want to blink an LED – so we need to make some changes. But first have a look at the various configuration screens to familiarize yourself with HALCoGen. (Don’t change any configurations yet). For example, you can view the frequency map for the device from the RM57L843ZWT – GCM tab:

Begin Configuring the Device Select the RM57L843ZWT -> Driver Enable Tab All we need to do is control GIOB[6], 1) unmark all drivers 2) select only the “Enable GIO driver**” box.

Configure GIO Port B From the GIO Tab, Select Port B 1) Check the ‘DIR’ box for Bit 6 – to make GIOB[6] an output 2) Leave DOUT set to ‘0’ so that the LED will be off until we turn it on.

Generate Driver Code with HALCoGen Save your HALCoGen Project Press ‘F5’ or select File->Generate Code Notice how many files HALCoGen has generated for you!

Switch back to CCS Switch back to CCS – and check your project again. Two new directories appear under ‘hcg’ 1) ‘include’ – contains HALCoGen generated .h files 2) ‘source’ – contains HALCoGen generated “C” and assembly language sources.

Update the Compiler Include Path The compiler needs to be told to search hcg\include for header files. With Project 0 Selected, Choose Project->Properties from the CCS Menu. Navigate to Build->ARM Compiler->Include Options Click on the Add Icon in the Add dir to #include search path pane. Add "${workspace_loc:/${ProjName}/hcg/include}” Select “OK”

Confirm that your project builds We haven’t added the code to blink the LED yet, but let’s make sure the project builds without any errors before moving on. With your project selected, try Project->Build Project to make sure the build completes without errors. If you see any errors show up in the “CDT Build Console” or in the “Problems” tab – check the previous steps. Otherwise you should see:

The main() function HALCoGen generates a main() function for you in the file hcg\source\HL_sys_main.c In the CCS project window, navigate to this file. Double click on it to open it in the CCS editor.

Add #include HL_gio.h To call any HALCoGen gio driver functions from main, we need to first include the GIO driver header file – HL_gio.h All code that we add should be added between /* User Code Begin */ and /* User Code End */ . Code added between these comments will be preserved, even if we ‘Generate Code’ again from HalCoGen ! Tip: You can’t add new USER CODE blocks, You must work with those HALCoGen Provides.

Add code to invoke gioInit() Let’s add a call to gioInit() to main. When this function is called, our setting of GIOB[6] ‘Dir’ to Output will be applied. Remember that we need to add our code inside a ‘User Code” block. Tip: For most peripherals, <peripheral>Init() must be called. It’s common to forget this and an easy mistake to make.

Add the ‘blinky’ code to main() Now we’ll add a call to ‘gioToggleBit()’ inside a software delay loop – to implement the ‘blinky’ function. Update your main() function so that it looks like this:

Build your project again Now that main() has been updated with blinky functionality – it’s time to build your project again. From the CCS Menu, select Project->Build Project The build should complete again without errors. If you do have errors, now is the time to backtrack and check the previous steps.

Launch a Debug Session! Plug your launchpad into a USB port. Launch a debug session by pressing “F11” or by selecting Run->Debug from the CCS Menu. You’ll see the flash erased, then programmed with your application. This may take a few minutes as the flash is large! When your program is loaded, it should automatically run to main() as shown on the right Press Resume (F8) or and watch the LED blink!

If you had trouble… If you had trouble following these steps – we’ve also provided a completed project 0 that can be imported into CCS. To import the project - select File- >Import from the CCS Menu Select the Code Composer Studio -> CCS Projects type. Select ‘archive file’ and browse to the .zip file. Choose “Project 0’ from the discovered projects Press Finish The project is already built and ready to debug