lab1 - CPE 323 Laboratory Assignment#1 Getting Started with...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
CPE 323: Laboratory Assignment #1 Getting Started with the MSP430 IAR Embedded Workbench by Alex Milenkovich, [email protected] Objectives: This tutorial will help you get started with the MSP30 IAR Embedded Workbench and includes the following topics: ± Creating an application project ± Debugging using the IAR C-SPY® Debugger Note: This tutorial is adapted from the MSP430 IAR Embedded Workbench® IDE User Guide and readers are referred to this document for more information. 1. Creating an Application Project This chapter introduces you to the IAR Embedded Workbench integrated development environment (IDE). The tutorial demonstrates a typical development cycle and shows how you use the compiler and the linker to create a small application for the MSP430 microcontroller -- including, creating a workspace, setting up a project with C source files, and compiling and linking your application. 1.1. Creating a New Workspace Using the IAR Embedded Workbench IDE, you can design advanced project models. For more information read the MSP430 IAR Embedded Workbench® IDE User Guide. Here, we will walk through a relatively simple project with several source files. Step 1. Create a working directory (e.g., projects, and then lab1). Step 2. Copy the following source files (lab1factoriel_main.c, twofact.c) to your working directory projects/lab1 (go to files are available in Angel:Lessons:Laboratory Assignments:Lab1). Step 3. Create a new workspace window. Before you can create your project you must first create a workspace. When you start the IAR you will see the screen as shown in Figure 1. Press Cancel . Choose File>New>Workspace . Now you are ready to create a project and add it to the workspace.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Figure 1. Embedded Workbench Startup. 1.2. Setting Up a New Project Step 1. Create a new project. 1.1. To create a new project, choose Project>Create New Project . The Create New Project dialog box appears (Figure 2), which lets you base your new project on a project template. Make sure the Tool chain is set to MSP430, and click OK . For this tutorial, select the project template Empty project, which simply creates an empty project that uses default project settings. Figure 2. Create New Project dialog box. In the standard Save As dialog box that appears, specify where you want to place your project file, that is, in your newly created projects/lab1 directory. Type the project name (e.g., lab1t ) in the File name box, and click Save to create the project. The project will appear in the Workspace window. By default two build configurations are created: Debug and Release. In this tutorial only the Debug configuration is used. You may choose the build configuration from the drop-down menu at the top of the window. The asterisk in the project name indicates that there are changes that have not been saved.
Background image of page 2
A project file—with the filename extension ewp —will be created in the projects directory, not immediately, but later on when you save the workspace. This file contains information about
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 17

lab1 - CPE 323 Laboratory Assignment#1 Getting Started with...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online