George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Configuring CodeWarrior V5.1 for the HCS12.

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

Introduction to HT-IDE3000 Micro-C development System Department.
Lab7: Introduction to Arduino
ELEC 4601 Microprocessor Systems Lab 5 Tutorial Introduction to PIC Board.
Georgia Institute of Technology DrJava Appendix A Barb Ericson Georgia Institute of Technology May 2006.
FIR TYPE-I Lowpass Filtering using TMS320C6711 Floating Point Processor DEMO Presentation Prepared by: Bashir SADEGHI Supervised by: Dr. Erhan A. INCE.
C and Assembler Subroutines: Using the LCD. Outline Basic structure of CW-created C programs for the HC12 How to incorporate assembly code How to use.
Scite Scintilla integrated text editor. Click here.
Dreamweaver Basics In this section you will learn how to:
Using PDG with e2studio: Example
CS 2511 Fall  Windows:  Start->Specialized Academic Software- >Programming Languages->NetBeans->NetBeans IDE x.y.z  where x.y.z is a version.
1 Introduction to Programming Environment Using MetroWerks CodeWarrior and Palm Emulator.
Using Visual C++ and Pelles C
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
Introduction Purpose Objectives Content Learning Time
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
Github & Arduino How To: Post On Github How To: Download from Github How To: Upload Code Downloaded from Github to Arduino Tommy Sanchez EE400D Spring.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
SQL Maestro Hello World IQ Associates. Contents Initial setup Hello World.
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
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.
Mail merge I: Use mail merge for mass mailings Perform a complete mail merge Now you’ll walk through the process of performing a mail merge by using the.
Computer Programming for Engineers Introduction to Programming in C Language on Visual C Platform Intro. Comp. Prog. C-Language1.
Technology Fridays Adding Audio Narration to a PowerPoint presentation using Camtasia Studio intro.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
CREATING A TEST IN WORD 2007 Also creating and using equations in Word 2007 Jeff Klamm Tec 539.
CPSC1301 Computer Science 1 Overview of Dr. Java.
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Information and Communication Technology Sayed Mahbub Hasan Amiri Dhaka Residential Model College Higher Secondary.
Instructions.  Open up the letter that Adam has given to you  Format it so it look professional.
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.
Quick guide to ASIMON configuration For version 3.0 or greater SAFETY AT WORK Date: 3/18/2009.
Introduction to Eclipse Programming with an Integrated Development Environment.
Open project in Microsoft Visual Studio → build program in “Release” mode.
How to Execute first program in Borland C++. Install Borland C++ Download Borland C++ from LMS – rland%20C++%20V3.1.ziphttp://vulms.vu.edu.pk/Courses/CS609/Downloads/Bo.
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.
Software Design– Unit Testing SIMPLE PRIMER ON Junit Junit is a free simple library that is added to Eclipse to all automated unit tests. The first step,
Word and the Writing Process. To create a document 1.On the Start menu, point to Programs, and then click Microsoft Word. A new document opens in Normal.
Netbeans QuickStart. Creating a project File->New Project –For now you want General->Java Application –Then fill in the project details.
Guidelines for Friendly Owl Reviewers Friendly Owl Software, Inc.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Multi-Programmer User Guide 1. Contents 1.Product ComponentsProduct Components 2.Software InstallationSoftware Installation 3.Software UseSoftware Use.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
Programming and Debugging with the Dragon and JTAG Many thanks to Dr. James Hawthorne for evaluating the Dragon system and providing the core content for.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Perform a complete mail merge Lesson 14 By the end of this lesson you will be able to complete the following: Use the Mail Merge Wizard to perform a basic.
3.3 SoftSPS Software Installation 1.Go to \\Master\ControlSetup\IPC Setup (Drivers & Softwares) and access the SoftSPS folder as shown in the picture below.
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Programming and Debugging with the Dragon and JTAG
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Implementing VHDL Modules onto Atlys Demo Board
3.14 Microscan QX-870 Scanner Configuration
Word and the Writing Process
DEMO Presentation Prepared by: Bashir SADEGHI Supervised by: Dr
NextGen Trustee General Ledger Accounting
Interrupts in C Programs
1. Open Visual Studio 2008.
ZXP3 Printer Driver Installation and settings for EPIC Cards
JCreator Settings Only
(c) 2004 MCSC Technology Training
ECE 3567 Microcontroller Lab
Download and Installation of code::blocks
Double click Microsoft Visual Studio 2010 on the Computer Desktop
Workshop for Programming And Systems Management Teachers
Selenium IDE Installation and Use.
ECE 3567 Microcontrollers Lab
Presentation transcript:

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Configuring CodeWarrior V5.1 for the HCS12

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Connect BDM cable to board (red line of ribbon cable connected to pin 1 of BDM_PORT) Open CodeWarrior IDE on desktop. Click on Create New Project

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Choose MC9S12C32 Choose P&E USB BDM Multilink Click “Next”

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Check “C” Type in project name and use default location for your project Click “Next”

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Check Create main.c/main.asm file Click “Next”

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Select “None” Click “Next”

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Check ANSI startup code Check Small Check floating is IEEE32, double is IEEE64 “Next”

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Select “No” Click “Finish”

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 A new project is created as below

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Double click Project.prm file under Linker Files

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Change RAM 0x0800 To 0x7FFF Comment “ROM_4000…” line Save the change Change to 0x7FFF Comment out this line

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Configuring for External Memory Access In order to configure the microcontroller for external memory access, you need to put the following three statements at the start of your “main” function before any other statement (but after any variable definitions). MISC = 0x03; PEAR = 0x0C; MODE = 0xE2;

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Double click “main.c” under Sources. This is the source code you will be editing to create your program. Put the three statements in your main function

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Enter the “Hello World “ code on this page in your “main.c” file #include /* common defines and macros */ #include /* derivative information */ #pragma LINK_INFO DERIVATIVE "mc9s12c32" #include void main(void) { MISC = 0x03; PEAR = 0x0C; MODE = 0xE2; TERMIO_Init(); //Initializes the SCI subsystem puts("Hello, World!\n"); //Prints the string to the screen for(;;) {} /* wait forever */ /* please make sure that you never leave this function */ }

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Add stdio and termio to project Right-click the “Libs” folder in the project pane and select “Add files…” Add stdlib.h and termio.h files from “C:\Program Files\Freescale\CWS12v5.1\lib\hc12c\include” Add termio.c file from “C:\Program Files\Freescale\CWS12v5.1\lib\hc12c\src”

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Click the green triangle to start the Debugger

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Debugger window:

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 In the Debugger window, select the HC12MultilinkCyclonePro menu Choose “Debugging Memory Map…” Select the third listing for the RAM and click “Modify/Details”

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Change the End field to 7FFF and click OK Then close the window

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Connect The serial cable to COM1 and start AxIDE Click the Green Arrow to begin execution of your program “Hello, World!” should appear on the screen

George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 Output window is shown below. Don’t open multiple debugger windows, otherwise you’ll see communication error.