IAR Embedded Workbench™ Version 3+
for MSP430™
User's Guide
Literature Number: SLAU138AH
June 2004 – Revised December 2014
Contents
Preface
........................................................................................................................................
6
1
Get Started Now!
..................................................................................................................
8
1.1
1.2
1.3
Software Installation
.........................................................................................................
9
Flashing the LED
............................................................................................................
9
Important MSP430 Documents on the CD-ROM and Web
...........................................................
10
Overview
.....................................................................................................................
Using KickStart
.............................................................................................................
2.2.1 Project Settings
....................................................................................................
2.2.2 Using Math Library for MSP430 (MSPMathlib) in IAR EW430 5.60.1 and Newer
........................
2.2.3 Additional Project Settings for MSP430L092 and MSP430C092
...........................................
2.2.4 Creating a Project From Scratch
................................................................................
2.2.5 Additional Project Settings for Ultra-Low-Power Mode (LPMx.5) Debugging
.............................
2.2.6 Password Protection for MSP430 Devices
....................................................................
2.2.7 Using an Existing IAR V1.x, V2.x, or V3.x Project
............................................................
2.2.8 Stack Management and .xcl Files
...............................................................................
2.2.9 How to Generate Texas Instruments .TXT (and Other Format) Files
......................................
2.2.10 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
............................................................................................
Introduction
..................................................................................................................
Energy Measurement
......................................................................................................
IAR Embedded Workbench
®
for MSP430 Integration
.................................................................
3.3.1 Debugging Devices With EnergyTrace++ Technology Support
.............................................
3.3.2 Debugging Devices Without EnergyTrace++ Technology Support
.........................................
Measuring Low-Power Currents
..........................................................................................
EnergyTrace Technology FAQs
..........................................................................................
12
12
13
14
14
16
17
18
18
19
19
19
19
19
22
22
23
24
24
24
24
31
34
35
2
Development Flow
..............................................................................................................
11
2.1
2.2
2.3
3
EnergyTrace™ Technology
..................................................................................................
24
3.1
3.2
3.3
3.4
3.5
4
A
Memory Protection Unit (MPU) and Intellectual Property Encapsulation (IPE)
............................
38
Frequently Asked Questions
................................................................................................
40
A.1
A.2
A.3
Hardware
....................................................................................................................
41
Program Development (Assembler, C-Compiler, Linker)
.............................................................
41
Debugging (C-SPY)
........................................................................................................
43
Menus
........................................................................................................................
B.1.1 Emulator
→
Device Information
.................................................................................
B.1.2 Emulator
→
Release JTAG on Go
..............................................................................
B.1.3 Emulator
→
Resynchronize JTAG
..............................................................................
B.1.4 Emulator
→
Init New Device
.....................................................................................
B.1.5 Emulator
→
Secure - Blow JTAG Fuse
........................................................................
B.1.6 Emulator
→
Breakpoint Usage
..................................................................................
48
48
48
48
48
48
48
B
FET-Specific Menus
............................................................................................................
47
B.1
2
Contents
SLAU138AH – June 2004 – Revised December 2014
Submit Documentation Feedback
Copyright © 2004–2014, Texas Instruments Incorporated
www.ti.com
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
Emulator
→
Advanced
→
Clock Control
.......................................................................
Emulator
→
Advanced
→
Emulation Mode
....................................................................
Emulator
→
Advanced
→
Memory Dump
......................................................................
Emulator
→
Advanced
→
Breakpoint Combiner
.............................................................
Emulator
→
State Storage Control
............................................................................
Emulator
→
State Storage Window
...........................................................................
Emulator
→
Sequencer Control
................................................................................
Emulator
→
"Power on" Reset
.................................................................................
Emulator
→
GIE on/off
..........................................................................................
Emulator
→
Leave Target Running
...........................................................................
Emulator
→
Force Single Stepping
............................................................................
48
48
49
49
49
49
49
49
49
49
49
Revision History
..........................................................................................................................
50
SLAU138AH – June 2004 – Revised December 2014
Submit Documentation Feedback
Copyright © 2004–2014, Texas Instruments Incorporated
Contents
3
www.ti.com
List of Figures
1-1.
1-2.
2-1.
2-2.
2-3.
2-4.
2-5.
2-6.
3-1.
3-2.
3-3.
3-4.
3-5.
3-6.
3-7.
3-8.
3-9.
3-10.
3-11.
3-12.
3-13.
3-14.
3-15.
3-16.
3-17.
3-18.
3-19.
3-20.
3-21.
4-1.
..............................................................................................................
9
Activate Project in Workspace Overview
................................................................................
10
L092 Mode
..................................................................................................................
14
C092 Emulation Mode
.....................................................................................................
15
C092 Password
.............................................................................................................
15
Enable Ultra-Low-Power Debug Mode
..................................................................................
17
LPMx.5 Notifications
.......................................................................................................
18
JTAG Password
............................................................................................................
18
Pulse Density and Current Flow
..........................................................................................
24
Debug Session With EnergyTrace++ Windows
........................................................................
25
Debug Options
..............................................................................................................
26
Emulator Pulldown Menu With EnergyTrace++-Related Functions
.................................................
27
Enabling the State Log Window
..........................................................................................
27
State Log Window With EnergyTrace++ Data
..........................................................................
28
State Log Summary With EnergyTrace++ Data
........................................................................
28
Power Log Setup Window
.................................................................................................
28
Power Log Window With EnergyTrace++ Data
........................................................................
29
Timeline With Power Log and State Graphs Disabled
................................................................
29
Timeline With EnergyTrace++ Data
.....................................................................................
30
Function Profiler With EnergyTrace++ Data
............................................................................
30
Debug Session With EnergyTrace Windows
...........................................................................
31
Emulator Pulldown Menu With EnergyTrace-Related Functions
.....................................................
32
Power Log Setup Window
.................................................................................................
32
Power Log Window With EnergyTrace Data
...........................................................................
33
Timeline With Power Log Graph Disabled
..............................................................................
33
Timeline With EnergyTrace Data
.........................................................................................
34
LPM3 Current When Executing Under Debug Control
................................................................
34
Release JTAG on Go Option in Emulator Pulldown Menu
...........................................................
35
LPM3 Current When Executing with JTAG Signals Released
.......................................................
35
MPU Configuration Dialog
................................................................................................
38
Activate Project
4
List of Figures
SLAU138AH – June 2004 – Revised December 2014
Submit Documentation Feedback
Copyright © 2004–2014, Texas Instruments Incorporated
www.ti.com
List of Tables
2-1.
Device Architecture, Breakpoints, and Other Emulation Features
...................................................
20
SLAU138AH – June 2004 – Revised December 2014
Submit Documentation Feedback
Copyright © 2004–2014, Texas Instruments Incorporated
List of Tables
5
评论