|
Configure IAR
Embedded Workbench for MSP430 to Program
Orbit-EDU 1.0
I. Create a workspace and a
project
1. If start from scratch:
a. File->New->Workspace
b. Project->Create New Project...: Select MSP430 for "Tool chain",
Select "C---main" for "Project templates", Ok to save the project file.
c. File->Save Workspace to save the workspace. Now you have a workspace
with a project with an empty "main.c" to start with.
2. If start from other people's workspace:
File->Open->Workshop
3. If start from other people's code (without
workshop):
a. File->New->Workspace
b. Project->Create New Project...: Select MSP430 for "Tool chain",
Select "Empty project" for "Project templates", Ok to save the
project file.
c. File->Save Workspace to save the workspace. Now you have a workspace
with an empty project to start with.
d. Project->Add Files: Select all the source files (.h/.c/.cpp/.cc/.hcc)
that are useful to you, Ok to add them to the project
II. Configure the project
Project->Options
1. Choose targeted device:
Under "Category," select "General Options." Then select the "Target"
tab on the right. Under "Device," select the MSP430 microcontroller you
are using. For Orbit-EDU 1.0, it is MSP430x1xx family->MSP430F1612. If
you are not sure about your device, ask the instructor. It is
illustrated in the following figure.

2. Configure the
debugger:
Under "Category," select "Debugger." Then select the "Setup" tab on
the right. Under "Driver," select "FET Debugger," as shown in the
following figure.

Under "Category," select "FET Debugger." Then
select "Setup" tab on the right. Under "Connection," check "TI USB FET;"
Change "Target VCC (in Volt)" to 3.3. The correct configuration is shown
in the following figure.

III. Build and Debug
Project->Rebuild All
Project->Debug (Make sure your USB FET is connected
to the PC)
IV.
Built-in User Guides
1. Help->MSP430 Embedded Workbench User Guide:
Complete guide for using IAR EWB
2. Hep->MSP430 C/C++ Compiler Reference Guide:
In-depth guide for programming MSP430 using C/C++ |