IAR Embedded Workbench Version 3+
for MSP430
User's Guide
Literature Number: SLAU138R
June 2004 – Revised March 2010
2
SLAU138R – June 2004 – Revised March 2010
Submit Documentation Feedback
Copyright © 2004–2010, Texas Instruments Incorporated
Contents
Preface
.......................................................................................................................................
5
1
Get Started Now!
.................................................................................................................
7
1.1
1.2
1.3
Software Installation
........................................................................................................
8
Flashing the LED
............................................................................................................
8
Important MSP430 Documents on the CD-ROM and Web
............................................................
9
Overview
....................................................................................................................
Using KickStart
............................................................................................................
2.2.1 Project Settings
...................................................................................................
2.2.2 Creating a Project From Scratch
...............................................................................
2.2.3 Using an Existing IAR V1.x/V2.x/V3.x Project
................................................................
2.2.4 Stack Management and .xcl Files
..............................................................................
2.2.5 How to Generate Texas Instruments .TXT (and Other Format) Files
.....................................
2.2.6 Overview of Example Programs
................................................................................
Using C-SPY
...............................................................................................................
2.3.1 Breakpoint Types
.................................................................................................
2.3.2 Using Breakpoints
................................................................................................
2.3.3 Using Single Step
................................................................................................
2.3.4 Using Watch Windows
...........................................................................................
12
12
12
14
15
15
15
15
16
16
17
17
18
2
Development Flow
.............................................................................................................
11
2.1
2.2
2.3
A
Frequently Asked Questions
...............................................................................................
19
A.1
A.2
A.3
Hardware
...................................................................................................................
20
Program Development (Assembler, C-Compiler, Linker)
............................................................
20
Debugging (C-SPY)
.......................................................................................................
22
Menus
B.1.1
B.1.2
B.1.3
B.1.4
B.1.5
B.1.6
B.1.7
B.1.8
B.1.9
B.1.10
B.1.11
B.1.12
B.1.13
B.1.14
B.1.15
B.1.16
B.1.17
B
FET-Specific Menus
...........................................................................................................
27
B.1
.......................................................................................................................
28
Emulator
→
Device Information
................................................................................
28
Emulator
→
Release JTAG on Go
.............................................................................
28
Emulator
→
Resynchronize JTAG
.............................................................................
28
Emulator
→
Init New Device
....................................................................................
28
Emulator
→
Secure - Blow JTAG Fuse
.......................................................................
28
Emulator
→
Breakpoint Usage
.................................................................................
28
Emulator
→
Advanced
→
Clock Control
......................................................................
28
Emulator
→
Advanced
→
Emulation Mode
...................................................................
28
Emulator
→
Advanced
→
Memory Dump
.....................................................................
28
Emulator
→
Advanced
→
Breakpoint Combiner
............................................................
29
Emulator
→
State Storage Control
...........................................................................
29
Emulator
→
State Storage Window
...........................................................................
29
Emulator
→
Sequencer Control
...............................................................................
29
Emulator
→
"Power on" Reset
................................................................................
29
Emulator
→
GIE on/off
.........................................................................................
29
Emulator
→
Leave Target Running
...........................................................................
29
Emulator
→
Force Single Stepping
...........................................................................
29
Document Revision History
.........................................................................................................
30
SLAU138R – June 2004 – Revised March 2010
Submit Documentation Feedback
Copyright © 2004–2010, Texas Instruments Incorporated
Contents
3
www.ti.com
List of Figures
1-1.
1-2.
Activate Project
..............................................................................................................
8
Activate Project in Workspace Overview
................................................................................
List of Tables
9
2-1.
Device Architecture, Breakpoints, and Other Emulation Features
..................................................
16
4
List of Figures
SLAU138R – June 2004 – Revised March 2010
Submit Documentation Feedback
Copyright © 2004–2010, Texas Instruments Incorporated
Preface
SLAU138R – June 2004 – Revised March 2010
Read This First
About This Manual
This manual describes the use of IAR Embedded Workbench (EW430) with the MSP430 ultra-low-power
microcontrollers.
How to Use This Manual
Read and follow the instructions in
Chapter 1,
Get Started Now!.
This chapter provides instructions on
installing the software, and describes how to run the demonstration programs. After you see how quick
and easy it is to use the development tools, TI recommends that you read all of this manual.
This manual describes only the setup and basic operation of the software development environment, but it
does not fully describe the MSP430 or the complete development software and hardware systems. For
details of these items, see the appropriate TI and IAR™ documents listed in
Related Documentation From
Texas Instruments,
Important MSP430 Documents on the CD-ROM and Web.
This manual applies to the use with Texas Instruments' MSP-FET430UIF, MSP-FET430PIF and eZ430
development tools series.
These tools contain the most up-to-date materials available at the time of packaging. For the latest
materials (data sheets, user's guides, software, application information, etc.), visit the TI MSP430 web site
at
www.ti.com/msp430,
or contact your local TI sales office.
Information About Cautions and Warnings
This book may contain cautions and warnings.
CAUTION
This is an example of a caution statement.
A caution statement describes a situation that could potentially damage your
software or equipment.
WARNING
This is an example of a warning statement.
A warning statement describes a situation that could potentially
cause harm to you.
The information in a caution or a warning is provided for your protection. Read each caution and warning
carefully.
All trademarks are the property of their respective owners.
SLAU138R – June 2004 – Revised March 2010
Submit Documentation Feedback
Copyright © 2004–2010, Texas Instruments Incorporated
Read This First
5
评论