IAR Embedded Workbench Version 3+ for MSP430™ User's Guide Literature Number: S

IAR Embedded Workbench Version 3+ for MSP430™ User's Guide Literature Number: SLAU138Y June 2004–Revised July 2012 Contents Preface ....................................................................................................................................... 5 1 Get Started Now! ................................................................................................................. 7 1.1 Software Installation ........................................................................................................ 8 1.2 Flashing the LED ............................................................................................................ 8 1.3 Important MSP430 Documents on the CD-ROM and Web ............................................................ 9 2 Development Flow ............................................................................................................. 10 2.1 Overview .................................................................................................................... 11 2.2 Using KickStart ............................................................................................................ 11 2.2.1 Project Settings ................................................................................................... 12 2.2.2 Additional Project Settings for MSP430L092 and MSP430C092 .......................................... 13 2.2.3 Creating a Project From Scratch ............................................................................... 15 2.2.4 Additional Project Settings for LPMx.5 Debugging ........................................................... 16 2.2.5 Password Protection for MSP430 Devices .................................................................... 17 2.2.6 Using an Existing IAR V1.x, V2.x, or V3.x Project ........................................................... 18 2.2.7 Stack Management and .xcl Files .............................................................................. 18 2.2.8 How to Generate Texas Instruments .TXT (and Other Format) Files ..................................... 18 2.2.9 Overview of Example Programs ................................................................................ 18 2.3 Using C-SPY ............................................................................................................... 18 2.3.1 Breakpoint Types ................................................................................................. 19 2.3.2 Using Breakpoints ................................................................................................ 20 2.3.3 Using Single Step ................................................................................................ 21 2.3.4 Using Watch Windows ........................................................................................... 21 A Frequently Asked Questions ............................................................................................... 23 A.1 Hardware ................................................................................................................... 24 A.2 Program Development (Assembler, C-Compiler, Linker) ............................................................ 24 A.3 Debugging (C-SPY) ....................................................................................................... 26 B FET-Specific Menus ........................................................................................................... 30 B.1 Menus ....................................................................................................................... 31 B.1.1 Emulator →Device Information ................................................................................ 31 B.1.2 Emulator →Release JTAG on Go ............................................................................. 31 B.1.3 Emulator →Resynchronize JTAG ............................................................................. 31 B.1.4 Emulator →Init New Device .................................................................................... 31 B.1.5 Emulator →Secure - Blow JTAG Fuse ....................................................................... 31 B.1.6 Emulator →Breakpoint Usage ................................................................................. 31 B.1.7 Emulator →Advanced →Clock Control ...................................................................... 31 B.1.8 Emulator →Advanced →Emulation Mode ................................................................... 31 B.1.9 Emulator →Advanced →Memory Dump ..................................................................... 32 B.1.10 Emulator →Advanced →Breakpoint Combiner ............................................................ 32 B.1.11 Emulator →State Storage Control ........................................................................... 32 B.1.12 Emulator →State Storage Window ........................................................................... 32 B.1.13 Emulator →Sequencer Control ............................................................................... 32 B.1.14 Emulator →"Power on" Reset ................................................................................ 32 B.1.15 Emulator →GIE on/off ......................................................................................... 32 B.1.16 Emulator →Leave Target Running ........................................................................... 32 2 Contents SLAU138Y–June 2004–Revised July 2012 Submit Documentation Feedback Copyright © 2004–2012, Texas Instruments Incorporated www.ti.com B.1.17 Emulator →Force Single Stepping ........................................................................... 32 Revision History ......................................................................................................................... 33 3 SLAU138Y–June 2004–Revised July 2012 Contents Submit Documentation Feedback Copyright © 2004–2012, Texas Instruments Incorporated www.ti.com List of Figures 1-1. Activate Project.............................................................................................................. 8 1-2. Activate Project in Workspace Overview ................................................................................ 9 2-1. L092 Mode ................................................................................................................. 13 2-2. C092 Emulation Mode .................................................................................................... 14 2-3. C092 Password............................................................................................................ 14 2-4. Enable LPMx.5............................................................................................................. 16 2-5. LPMx.5 Notifications ...................................................................................................... 17 2-6. JTAG Password ........................................................................................................... 17 List of Tables 2-1. Device Architecture, Breakpoints and Other Emulation Features................................................... 19 4 List of Figures SLAU138Y–June 2004–Revised July 2012 Submit Documentation Feedback Copyright © 2004–2012, Texas Instruments Incorporated Preface SLAU138Y–June 2004–Revised July 2012 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 microcontrollers 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 (including data sheets, user's guides, software, and application information), 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. MSP430 is a trademark of Texas Instruments. All other trademarks are the property of their respective owners. 5 SLAU138Y–June 2004–Revised July 2012 Read This First Submit Documentation Feedback Copyright © 2004–2012, Texas Instruments Incorporated Related Documentation From Texas Instruments www.ti.com Related Documentation From Texas Instruments MSP430 development tools documentation MSP430 Hardware Tools User's Guide, literature number SLAU278 eZ430-F2013 Development Tool User's Guide, literature number SLAU176 eZ430-RF2480 User's Guide, literature number SWRA176 eZ430-RF2500 Development Tool User's Guide, literature number SLAU227 eZ430-RF2500-SEH Development Tool User's Guide, literature number SLAU273 eZ430-Chronos Development Tool User's Guide, literature number SLAU292 MSP430 device data sheets MSP430x1xx Family User's Guide, literature number SLAU049 MSP430x2xx Family User's Guide, literature number SLAU144 MSP430x3xx Family User's Guide, literature number SLAU012 MSP430x4xx Family User's Guide, literature number SLAU056 MSP430x5xx and MSP430x6xx Family User's Guide, literature number SLAU208 CC430 device data sheets CC430 Family User's Guide, literature number SLAU259 If You Need Assistance Support for the MSP430 devices and the FET development tools is provided by the Texas Instruments Product Information Center (PIC). Contact information for the PIC can be found on the TI web site at www.ti.com/support. The Texas Instruments E2E Community support forums for the MSP430 is available to provide open interaction with peer engineers, TI engineers, and other experts. Additional device-specific information can be found on the MSP430 web site. NOTE: KickStart™is supported by Texas Instruments. Although KickStart is a product of IAR, Texas Instruments provides the support for it. Therefore, please do not request support for KickStart from IAR. Consult the extensive documentation provided with KickStart before requesting assistance. FCC Warning This equipment is intended for use in a laboratory test environment only. It generates, uses, and can radiate radio frequency energy and has not been tested for compliance with the limits of computing devices pursuant to subpart J of part 15 of FCC rules, which are designed to provide reasonable protection against radio-frequency interference. Operation of this equipment in other environments may cause interference with radio communications, in which case, the user is required to take whatever measures may be required to correct this interference at his own expense. 6 Read This First SLAU138Y–June 2004–Revised July 2012 Submit Documentation Feedback Copyright © 2004–2012, Texas Instruments Incorporated Chapter 1 SLAU138Y–June 2004–Revised July 2012 Get Started Now! This chapter provides instruction on installing the software, and shows how to run the demonstration programs. Topic ........................................................................................................................... Page 1.1 Software Installation ............................................................................................ 8 1.2 Flashing the LED ................................................................................................ 8 1.3 Important MSP430 Documents on the CD-ROM and Web ......................................... 9 7 SLAU138Y–June 2004–Revised July 2012 Get Started Now! Submit Documentation Feedback Copyright © 2004–2012, Texas Instruments Incorporated Software Installation www.ti.com 1.1 Software Installation Follow the instructions on the supplied READ ME FIRST document to install the IAR Embedded Workbench™KickStart. Read the file <Installation Root>\Embedded Workbench x.x\430\doc\readme.htm from IAR for the latest information about the Workbench. The term KickStart refers to the function-limited version of Embedded Workbench (including C-SPY™debugger). KickStart is supplied on the CD-ROM included with each FET, and the latest version is available from the MSP430 web site. The documents mentioned in the previous paragraph (and this document) can be accessed using: Start → Programs →IAR Systems →IAR Embedded Workbench KickStart for MSP430 V3. KickStart is compatible with Windows 2000 (SP4), Windows XP (32 bit and 64 bit), Windows Vista (32 bit and 64 bit), and Windows 7 (32 bit and 64 bit). However, the USB FET interface works with only Windows XP (32 bit and 64 bit), Windows Vista (32 bit and 64 bit), and Windows 7 (32 bit and 64 bit). 1.2 Flashing the LED This section demonstrates on the FET the equivalent of the C-language "Hello World!" introductory program. An application that flashes the LED is developed and downloaded to the FET, and then run. 1. Start the Workbench (Start →Programs →IAR Systems →IAR Embedded Workbench KickStart for MSP430 V3 →IAR Embedded Workbench). 2. Click File →Open Workspace to open the file at: <Installation Root>\Embedded Workbench x.x\ 430\FET_examples\Flashing the LED.eww. The workspace window opens. 3. Click on the tab at the bottom of the workspace window that corresponds to the MSP430 device (MSP430xxxx) and desired language (assembler or C) to set a project active (see Figure 1-1). Figure 1-1. Activate Project 8 Get Started Now! SLAU138Y–June 2004–Revised July 2012 Submit Documentation Feedback Copyright © 2004–2012, Texas Instruments Incorporated www.ti.com Important MSP430 Documents on the CD-ROM and Web Alternatively, right click to activate a project in the Workspace Overview tab (see Figure 1-2). Figure 1-2. Activate Project in Workspace Overview 4. Click Project →Options →FET Debugger →Setup →Connection to select the appropriate port: Texas Instruments LPT-IF for the parallel FET Interface (MSP-FET430PIF) or Texas Instruments USB- IF for the USB Interface (MSP-FET430UIF) or for the eZ430. 5. Click Project →Rebuild All to build and link the source code. You can uploads/s1/ iar-user-guide.pdf

  • 66
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Attribution requise
Partager
  • Détails
  • Publié le Nov 15, 2021
  • Catégorie Administration
  • Langue French
  • Taille du fichier 0.8091MB