Code Composer Studio V7.x For MSP430 User's Guide (Rev. AP)

3y ago
88 Views
6 Downloads
1.62 MB
74 Pages
Last View : Today
Last Download : 3m ago
Upload by : Cannon Runnels
Transcription

Code Composer Studio v7.x for MSP430 User's GuideLiterature Number: SLAU157APMay 2005 – Revised November 2017

ContentsPreface . 61Get Started Now! . 81.11.21.32Development Flow . 112.12.233.4202020212626313435Memory Protection Unit (MPU) . 38Intellectual Property Encapsulation (IPE) . 394.2.1 IPE Debug Settings . 40Hardware . 42Program Development (Assembler, C-Compiler, Linker, IDE) . 42Debugging . 43Migration of C Code from IAR 2.x, 3.x, or 4.x to CCS . 46B.1B.2B.3B.4B.5B.6B.72Introduction .Energy Measurement .Code Composer Studio Integration .3.3.1 EnergyTrace Technology Settings .3.3.2 Controlling EnergyTrace Technology .3.3.3 EnergyTrace Mode .3.3.4 EnergyTrace Mode .3.3.5 Comparing Captured Data With Reference Data .EnergyTrace Technology FAQs .Frequently Asked Questions . 41A.1A.2A.3B12121313131414141417Memory Protection Unit and Intellectual Property Encapsulation . 384.14.2AUsing Code Composer Studio IDE (CCS) .2.1.1 Creating a Project From Scratch .2.1.2 Project Settings .2.1.3 Using Math Library for MSP430 (MSPMathlib) in CCS v5.5 and Newer.2.1.4 Using an Existing CCE v2, CCE v3, CCE v3.1, CCS v4.x, or CCS v5.x Project .2.1.5 Stack Management .2.1.6 How to Generate Binary Format Files (TI-TXT and INTEL-HEX) .Using the Integrated Debugger .2.2.1 Breakpoint Types .2.2.2 Using Breakpoints .EnergyTrace Technology. 203.13.23.34Software Installation . 9Flashing the LED . 9Important MSP430 Documents on the DVD and Web. 10Interrupt Vector Definition .Intrinsic Functions .Data and Function Placement .B.3.1 Data Placement at an Absolute Location .Data Placement Into Named Segments .Function Placement Into Named Segments .C Calling Conventions .Other Differences.B.7.1 Initializing Static and Global Variables .Contents474747474848494949SLAU157AP – May 2005 – Revised November 2017Submit Documentation FeedbackCopyright 2005–2017, Texas Instruments Incorporated

www.ti.comB.7.2 Custom Boot Routine . 50B.7.3 Predefined Memory Segment Names . 50B.7.4 Predefined Macro Names . 51CMigration of Assembler Code from IAR 2.x, 3.x, or 4.x to CCS . 52C.1C.2C.3DInterrupt Vector Definition . 61FET-Specific Menus . 62E.1F535354545455555556575758585960Writing Portable C Code for CCS and MSP430-GCC for MSP430 . 61D.1ESharing C/C Header Files With Assembly Source .Segment Control .Translating A430 Assembler Directives to Asm430 Directives .C.3.1 Introduction .C.3.2 Character Strings .C.3.3 Section Control Directives .C.3.4 Constant Initialization Directives .C.3.5 Listing Control Directives .C.3.6 File Reference Directives .C.3.7 Conditional Assembly Directives .C.3.8 Symbol Control Directives .C.3.9 Macro Directives .C.3.10 Miscellaneous Directives.C.3.11 Alphabetical Listing and Cross Reference of Asm430 Directives .C.3.12 Unsupported A430 Directives (IAR) .Menus .E.1.1 Debug View: Run Free Run .E.1.2 Run Connect Target .E.1.3 Run Advanced Make Device Secure .E.1.4 Project Properties Debug MSP430 Properties Clock Control .E.1.5 Window Show View Breakpoints .E.1.6 Window Show View Other. Debug Trace Control .E.1.7 Project Properties Debug MSP430 Properties Target Voltage .6363636363636363Device-Specific Menus . 64F.1F.2F.3F.4MSP430L092 .F.1.1 Emulation Modes .F.1.2 Loader Code .F.1.3 C092 Password Protection .MSP430F5xx and MSP430F6xx BSL Support .MSP430FR5xx and MSP430FR6xx Password Protection .MSP430 Ultra-Low-Power LPMx.5 Mode .F.4.1 What is LPMx.5 .F.4.2 Debugging LPMx.5 Mode on MSP430 Devices That Support the Ultra-Low-Power Debug Mode .F.4.3 Debugging LPMx.5 Mode on MSP430 Devices That Do Not Support the Ultra-Low-Power DebugMode .64646667686970707072Revision History . 73SLAU157AP – May 2005 – Revised November 2017Submit Documentation FeedbackCopyright 2005–2017, Texas Instruments IncorporatedContents3

www.ti.comList of Figures2-1.Breakpoints. 172-2.Breakpoint Properties . 183-1.Pulse Density and Current Flow . 203-2.EnergyTrace Button in the Toolbar Menu . 213-3.EnergyTrace Technology Preferences.Project Properties .Debug Properties .Battery Selection .Custom Battery Type .Target Connection.EnergyTrace Technology Control Bar .Debug Session With EnergyTrace Graphs .Profile Window .States Window .Power Window .Energy Window .Debug Session With EnergyTrace Graphs .EnergyTrace Profile Window .Zoom Into Power Window .Zoom Into Energy Window .Energy Profile of the Same Program in Resume (Yellow Line) and Free Run (Green Line) .Comparing Profiles in EnergyTrace Mode .Comparing Profiles in EnergyTrace Mode .MPU Configuration Dialog .IPE Configuration Dialog .IPE Debug Settings .MSP430L092 Modes.MSP430L092 in C092 Emulation Mode .MSP430C092 Password Access .Allow Access to BSL .MSP430 Password Access .Enable Ultra-Low-Power Debug Mode 3.F-1.F-2.F-3.F-4.F-5.F-6.4Exit EnergyTrace ModeList of 940656667686971SLAU157AP – May 2005 – Revised November 2017Submit Documentation FeedbackCopyright 2005–2017, Texas Instruments Incorporated

www.ti.comList of Tables1-1.System Requirements . 92-1.Device Architecture, Breakpoints, and Other Emulation Features . 143-1.Availability of EnergyTrace and EnergyTrace Modes . 213-2.EnergyTrace Technology Control Bar Icons . 26SLAU157AP – May 2005 – Revised November 2017Submit Documentation FeedbackCopyright 2005–2017, Texas Instruments IncorporatedList of Tables5

PrefaceSLAU157AP – May 2005 – Revised November 2017Read This FirstAbout This ManualThis manual describes the use of TI Code Composer Studio IDE v7.x (CCS v7.x) with the MSP430 ultra-low-power microcontrollers. This document applies only for the Windows version of the CodeComposer Studio IDE. The Linux version is similar and, therefore, is not described separately.TrademarksCode Composer Studio, MSP430, E2E, EnergyTrace are trademarks of Texas Instruments.IAR Embedded Workbench is a registered trademark of IAR Systems.ThinkPad is a registered trademark of Lenovo.Linux is a registered trademark of Linus Torvalds.Windows is a registered trademark of Microsoft Corporation.How to Use This ManualRead and follow the instructions in the Get Started Now! chapter. This chapter includes instructions oninstalling the software and describes how to run the demonstration programs. After you see how quick andeasy 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 butdoes not fully describe the MSP430 microcontrollers or the complete development software and hardwaresystems. For details on these items, see the appropriate TI documents listed in Section 1.3, ImportantMSP430 Documents on the Web, and in Related Documentation From Texas Instruments.This manual applies to the use of CCS with the TI MSP-FET, MSP-FET430UIF, eZ-FET, and eZ430development tools series.These tools contain the most up-to-date materials available at the time of packaging. For the latestmaterials (including data sheets, user's guides, software, and application information), visit the TI MSP430website at www.ti.com/msp430 or contact your local TI sales office.Information About Cautions and WarningsThis document may contain cautions and warnings.CAUTIONThis is an example of a caution statement.A caution statement describes a situation that could potentially damage yoursoftware or equipment.WARNINGThis is an example of a warning statement.A warning statement describes a situation that could potentiallycause harm to you.The information in a caution or a warning is provided for your protection. Read each caution and warningcarefully.6Read This FirstSLAU157AP – May 2005 – Revised November 2017Submit Documentation FeedbackCopyright 2005–2017, Texas Instruments Incorporated

Related Documentation From Texas Instrumentswww.ti.comRelated Documentation From Texas InstrumentsCCS v6.1 documentationMSP430 Assembly Language Tools User's GuideMSP430 Optimizing C/C Compiler User's GuideMSP430 development tools documentationMSP Debuggers User's GuideMSP430 Hardware Tools User's GuideeZ430-F2013 Development Tool User's GuideeZ430-RF2480 User's GuideeZ430-RF2500 Development Tool User's GuideeZ430-RF2500-SEH Development Tool User's GuideeZ430-Chronos Development Tool User's GuideMSP-EXP430G2 LaunchPad Experimenter Board User's GuideAdvanced Debugging Using the Enhanced Emulation Module (EEM) With Code Composer StudioVersion 6MSP430 device family user's guidesMSP430x1xx Family User's GuideMSP430x2xx Family User's GuideMSP430x3xx Family User's GuideMSP430x4xx Family User's GuideMSP430x5xx and MSP430x6xx Family User's GuideMSP430FR4xx and MSP430FR2xx Family User's GuideMSP430FR57xx Family User's GuideMSP430FR58xx, MSP430FR59xx, MSP430FR68xx, and MSP430FR69xx Family User's GuideCC430 device family user's guideCC430 Family User's GuideIf You Need AssistanceSupport for the MSP430 microcontrollers and the FET development tools is provided by the TI ProductInformation Center (PIC). Contact information for the PIC can be found on the TI website atwww.ti.com/support. A Code Composer Studio specific Wiki page (FAQ) is available, and the TI E2E Community support forums for the MSP430 microcontrollers and the Code Composer Studio IDE provideopen interaction with peer engineers, TI engineers, and other experts. Additional device-specificinformation can be found on the MSP430 website.SLAU157AP – May

About This Manual This manual describes the use of TI Code Composer Studio IDE v7.x (CCS v7.x) with the MSP430 ultra-low-power microcontrollers. This document applies only for the Windows version of the Code Composer Studio IDE. The Linux version is similar and, therefore, is not described separately. Trademarks

Related Documents:

2 Code Composer Studio Project Management and Editing Tools Instructions on the basic func-tionality of the CCS IDE. 3 Code Composer Studio Code Generation Tools Reviews development tools pro-vided with CCS IDE. 4 Code Composer Studio Debug Tools Reviews the available debug tools and the device generations to which they apply. 5 Code Composer .

2 Code Composer Studio Project Management and Editing Tools Provides instructions on the ba-sic functionality of CCStudio IDE. 3 Code Composer Studio Code Generation Tools Reviews development tools pro-vided with CCStudio IDE. 4 Code Composer Studio Debug Tools Reviews the available debug tools and the device generations to which they apply.

1 MSP-EXP430G2 LaunchPad kit 1 USB cable 1 32.768 kHz crystal 1 Female-Male 6" jumper wire VI. LABORATORY PROCEDURE: A) Code Composer Studio 1. Open Code Composer Studio, located at: Start All Programs Texas Instruments Code Composer Studio 5.4.0 Code Composer Studio 5.4.0. 2. You will be prompted to create a workspace; select a .

Sync, Studio 3, Studio 4, Studio 5 (and Studio 5 Lx), Studio 64X, Studio 128X, and Studio 64XTC. . document refers to an Opcode Studio 64XTC, but the next couple of pages are a little detour. Please don’t be confused. Your computer has at least one USB port, which looks like this: . If you have a blue G3, the USB ports are on the back.

3 1 Overview 1.4 What is in the Box Studio 26c and Studio 68c Owner's Manual 1.4 What is in the Box Your Studio-series package contains: Studio 26c or Studio 68c 24-bit, 192 kHz audio interface Quick Start Guide Audio Interface 1M USB-C to C Cable 1M USB-C to A Cable MIDI / S/PDIF breakout cable (Studio 68c only) External power supply (Studio 68c only)

About This Manual This manual describes the use of Texas Instruments Code Composer Studio IDE v5.4 (CCS v5.4) with the MSP430 ultralow-powermicrocontrollers. This manual describes only the Windows version of the Code Composer Studio IDE. The setup for Linux is similar and is therefore not described separately. How to Use This Manual Read and follow the instructions in the Get Started .

indicates a Studio Project where the files were added directly from the Studio Project to the Studio Session (right-click, add to new/existing Studio Session). The Bluebeam Studio Project and Bluebeam Studio Session must be linked in order to "update" from Session to Project. Using this method will OVERWRITE THE ORIGINAL STUDIO PROJECT FILES.

Susannah G Tringe*‡, Andreas Wagner† and Stephanie W Ruby* Addresses: *Department of Molecular Genetics and Microbiology, University of New Mexico Health Sciences Center, Albuquerque, NM 87131, USA. †Department of Biology, University of New Mexico, Albuquerque, NM 87131, USA. ‡Current address: DOE Joint Genome Institute, 2800