User’s Guide Code Composer Studio™ IDE v10.x for MSP430™ MCUs ABSTRACT This manual describes the use of TI Code Composer Studio™ IDE v10.x (CCS v10.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. Table of Contents 1 Read This First........................................................................................................................................................................3 1.1 How to Use This Manual.................................................................................................................................................... 3 1.2 Information About Cautions and Warnings.........................................................................................................................3 1.3 Related Documentation From Texas Instruments.............................................................................................................. 4 1.4 If You Need Assistance...................................................................................................................................................... 4 2 Get Started Now!.....................................................................................................................................................................5 2.1 Software Installation...........................................................................................................................................................5 2.2 Flashing the LED................................................................................................................................................................5 2.3 Important MSP430™ Documents...................................................................................................................................... 6 3 Development Flow.................................................................................................................................................................. 7 3.1 Using Code Composer Studio™ IDE (CCS)...................................................................................................................... 7 3.2 Using the Integrated Debugger.......................................................................................................................................... 9 4 EnergyTrace™ Technology..................................................................................................................................................16 4.1 Introduction...................................................................................................................................................................... 16 4.2 Energy Measurement.......................................................................................................................................................16 4.3 Code Composer Studio™ Integration.............................................................................................................................. 16 4.4 EnergyTrace Technology FAQs........................................................................................................................................31 5 MSP430 FRAM Memory Protection Mechanisms.............................................................................................................. 34 5.1 Memory Protection Unit (MPU)........................................................................................................................................ 34 5.2 Intellectual Property Encapsulation (IPE).........................................................................................................................35 5.3 FRAM Write Protection (FRWP).......................................................................................................................................37 6 Frequently Asked Questions............................................................................................................................................... 38 6.1 Hardware..........................................................................................................................................................................38 6.2 Program Development (Assembler, C-Compiler, Linker, IDE)......................................................................................... 38 6.3 Debugging........................................................................................................................................................................39 7 Migration of C Code from IAR 2.x, 3.x, 4.x, 5.x, 6.x or 7.x to CCS....................................................................................42 7.1 Interrupt Vector Definition.................................................................................................................................................42 7.2 Intrinsic Functions............................................................................................................................................................ 42 7.3 Data and Function Placement..........................................................................................................................................42 7.4 Data Placement Into Named Segments...........................................................................................................................43 7.5 Function Placement Into Named Segments.....................................................................................................................43 7.6 C Calling Conventions......................................................................................................................................................44 7.7 Other Differences............................................................................................................................................................. 44 8 Migration of Assembler Code from IAR 2.x, 3.x, 4.x, 5.x, 6.x or 7.x to CCS.................................................................... 47 8.1 Sharing C/C++ Header Files With Assembly Source.......................................................................................................47 8.2 Segment Control.............................................................................................................................................................. 47 8.3 Translating A430 Assembler Directives to Asm430 Directives........................................................................................ 48 9 Writing Portable C Code for CCS and MSP430-GCC for MSP430.................................................................................... 55 9.1 Interrupt Vector Definition.................................................................................................................................................55 10 FET-Specific Menus............................................................................................................................................................56 10.1 Menus............................................................................................................................................................................ 56 11 Device-Specific Menus....................................................................................................................................................... 57 11.1 MSP430L092..................................................................................................................................................................57 SLAU157AS – MAY 2005 – REVISED MAY 2020 Code Composer Studio™ IDE v10.x for MSP430™ MCUs 1 Submit Document Feedback Copyright © 2020 Texas Instruments Incorporated www.ti.com 11.2 MSP430F5xx and MSP430F6xx BSL Support...............................................................................................................61 11.3 MSP430FR5xx and MSP430FR6xx Password Protection............................................................................................. 62 11.4 MSP430 Ultra-Low-Power LPMx.5 Mode.......................................................................................................................63 12 Revision History................................................................................................................................................................. 65 List of Figures Figure 3-1. Breakpoints............................................................................................................................................................. 13 Figure 3-2. Breakpoint Properties..............................................................................................................................................13 Figure 3-3. Download Options................................................................................................................................................... 15 Figure 4-1. Pulse Density and Current Flow..............................................................................................................................16 Figure 4-2. EnergyTrace Button in the Toolbar Menu................................................................................................................17 Figure 4-3. Exit EnergyTrace Mode...........................................................................................................................................17
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages66 Page
-
File Size-