Code Composer Studio IDE V10.X for MSP430 Mcus

Total Page:16

File Type:pdf, Size:1020Kb

Code Composer Studio IDE V10.X for MSP430 Mcus 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
Recommended publications
  • Advanced Programming for the Java(TM) 2 Platform
    Advanced Programming for the Java(TM) 2 Platform Training Index Advanced Programming for the JavaTM 2 Platform By Calvin Austin and Monica Pawlan November 1999 [CONTENTS] [NEXT>>] [DOWNLOAD] Requires login As an experienced developer on the JavaTM platform, you undoubtedly know how fast moving and comprehensive the Early Access platform is. Its many application programming interfaces (APIs) Downloads provide a wealth of functionality for all aspects of application and system-level programming. Real-world developers never use one Bug Database or two APIs to solve a problem, but bring together key Submit a Bug functionality spanning a number of APIs. Knowing which APIs you View Database need, which parts of which APIs you need, and how the APIs work together to create the best solution can be a daunting task. Newsletters Back Issues To help you navigate the Java APIs and fast-track your project Subscribe development time, this book includes the design, development, test, and deployment phases for an enterprise-worthy auction Learning Centers application. While the example application does not cover every Articles possible programming scenario, it explores many common Bookshelf situations and the discussions leave you with a solid methodology Code Samples for designing and building your own solutions. New to Java Question of the Week This book is for developers with more than a beginning level of Quizzes understanding of writing programs in the Java programming Tech Tips language. The example application is written with the Java® 2 Tutorials platform APIs and explained in terms of functional hows and whys, so if you need help installing the Java platform, setting up your Forums environment, or getting your first application to work, you should first read a more introductory book such as Essentials of the Java Programming Language: A Hands-On Guide or The Java Tutorial.
    [Show full text]
  • Code Compose Code Composer Studio
    Code Composer Studio Code Composer Studio Developer(s) Texas Instruments Initial release 1999; 20 years ago Stable release 8.1 (8.1.0.00011) / 13 June 2018 ; 9 months ago Operating system Windows, Linux and macOS Platform IA-32 and x86-64 Available in 1 languages Type Integrated Development Environment Website ti.com/ccstudio Code Composer Studio (CCStudio or CCS) is an integrated development environment (IDE) to develop applications for Texas Instruments (TI) embedded processors. Texas Instruments embedded processors include TMS320 DSPs, OMAP system-on-a-chip, DaVinci system- on-a-chip, Sitara applications processors, Hercules microcontrollers, Simplelink MCUs (MSP432 and Wireless connectivity[2]microcontrollers), MSP430 and Tiva/Stellaris microcontrollers. It also enables debugging on several subsystems such as Ducati,[3] IVA Accelerator[4] and PRU-ICSS.[5] Code Composer Studio is primarily designed as for embedded project design and low-level (baremetal) JTAG based debugging. However, the latest releases are based on unmodified versions of the Eclipse open source IDE, which can be easily extended to include support for OS level application debug (Linux, Android, Windows Embedded) and open source compiler suites such as GCC. Early versions included a real time kernel called DSP/BIOS and its later inception SYS/BIOS. Currently, the successor to these tools, the TI-RTOS embedded tools ecosystem, is available for downloading as a free plugin to Code Composer Studio. History Originally Code Composer was a product from a company called GO DSP located in Toronto, Canada, and it was acquired by TI in 1997.[6] After the acquisition, Code Composer was bundled with a real-time kernel named DSP/BIOS[7] and its name was appended with the word Studio.
    [Show full text]
  • Practical-Electronic
    EVERYDAY DECEMBER 1997 ELECTRON http://www.epemag.wimborne.co.uk £2.65 pa; cinE, GIANT PULL•OUT , • • «Mr am, - DettgeR:)t tam 4"- ACTIVE , •• MICROPHONE • A simple circuit to increase sensitivity P. rs .• • • - - MINI - •• - • L. tr. ORGAN 1:7 \ An unusual, inexpensive •P 7 " • e design t Ort 9. SA 11 '7 • SOUND rtr1 1 Alarm deterrent for P1R securit hts TEACH-IN 98 ........ Part 2: Capacitors and Inductors Index for Volume 26 THE Noil MAGAZINE FO. ELL TECHNOLOGY- r ra spedal ALTERNATIVE _.•ii 9 770262 361089 Feat and FUTURE TECHNOLOGIES ELECTRIC MAN PLANS, SHOCK PEOPLE WITH THE TOUCH OF YOUR HAND! E5/set Ref F/EMA1 PARABOLIC DISH MICROPHONE PLANS Listen to distant sounds and voices open windows sound sources in 'hard to ger or hostile premises Uses Satellite technology to gather distant sounds and focus them to our ultra sensitive electronics Plans also Sn0,11 xn optional wireless link system £8/set ref F/PM5 2 FOR 1 MULTIFUNCTIONAL HIGH FREQUENCY AND HIGH DC VOLTAGE, SOLID STATE TESLA COIL A AND VARIABLE 100,000 VDC OUTPUT GENERATOR PLANS Operates on 9-12v0c, many possible experiments £10 Ref WIND GENERATORS 380 WATT 1 14 metre rta cades aaroon riatri cades .a year warranty vdc output 24v version available control electronics included brushless neodymium cubic curve alternator only two moving pans maintenance free simple roof top installation start up speed 7mph max output (30mph) 380w £499 ref AIR1 PLANS PORTABLE X RAY MACHINE PLANS Easy to construct e e- plans on a simple and cheap way to build a home X-ray rnachinei Effective device X-ray sealed assemblies can beused for experimental purposes Not a toy or for minors' £6,/set Ref F/XP I TELEKINETIC ENHÀNCER PLANS Mystrfy and amaze your COLOUR CCTV friends by creating motion with no known apparent means or cause Uses no electnca Ior mechanical connections no special gimmicks yet produces positive motion and effect Excellent for science projects.
    [Show full text]
  • Powerkap - a Tool for Improving Energy Transparency for Software Developers on GNU/Linux (X86) Platforms
    Project Report Department of Computing Imperial College of Science, Technology and Medicine PowerKap - A tool for Improving Energy Transparency for Software Developers on GNU/Linux (x86) platforms Author: Supervisor: Krish De Souza Dr. Anandha Gopalan Submitted in partial fulfilment of the requirements for the M.Eng Computing 4 of Imperial College London Contents 1 Introduction 6 1.1 Motivation . .6 1.2 Objectives . .7 1.3 Achievements . .7 2 Background 9 2.1 The relationship between power and energy. .9 2.2 Power controls on x86 platforms . .9 2.3 Improving software for power efficiency . 10 2.3.1 Algorithm . 10 2.3.2 Multithreading . 10 2.3.3 Vectorisation . 10 2.3.4 Improper sleep loops . 12 2.3.5 OS Timers . 13 2.3.6 Context aware programming . 13 2.4 Current methods of monitoring energy. 14 2.4.1 Out of Band Energy Monitor . 14 2.4.2 In-Band Energy Monitor . 14 2.4.2.1 Powertop . 15 2.4.2.2 Turbostat . 16 2.5 Related Work . 16 2.5.1 ENTRA 2012-2015 . 16 2.5.1.1 Common Assertion Language . 16 2.5.1.2 Compiler Optimisation and Power Trade-offs . 18 2.5.1.3 Superoptimization . 18 2.5.1.4 Thermal trade-off . 20 2.5.2 eProf . 20 2.5.2.1 Asynchronous vs Synchronous . 20 2.5.2.2 Profiling implementation . 21 2.5.3 Energy Formal Definitions . 21 2.5.3.1 Java Based Energy Formalism . 22 2.5.3.2 Energy Application Model . 22 2.5.4 Impact of language, Compiler, Optimisations .
    [Show full text]
  • Installing Python, Pygame, and Visual Studio Code
    Set up Python and Visual Studio Code: Macs Installing Python, Pygame, and Visual Studio Code To provide more flexibility, capability, and better tools for editing and debugging your code we are going to set up our computers with software for developing Python applications, Python games, and Web sites. Python 3 Installation (includes IDLE and Pip) • This will install the following software: o Python 3 Programming language and Interpreter o IDLE: an integrated development environment for Python o Pip: Python package installer • We want to use Python 3. Although Python is already installed on most Macs, it may be Python 2, or maybe an older version of Python 3. We need to leave Python 2 alone as your Mac may need it for some apps. We will install the latest version of Python 3. • Check your version of MacOS (Apple icon: About this Mac); the latest Python 3 requires version 10.9 or higher • Check your versions of Python: o Open terminal from the dock or command-space and type “Terminal” o In terminal type ‘python —version’ to see the version of Python 2 o In terminal type ‘python3 —version’ to see the version of Python3 • Go to https://www.python.org/downloads/ • The site detects whether you are on Windows or Mac and presents a download button for the latest version for your operating system. Click the “Download Python 3.8.1” button (or whatever is current version…) • Install by clicking Downloads from the dock or Finder, then click python-3-8-1- macosx-10.9.pkg to bring up the installer © Fox1 Valley Girls Coding Club Setup Python and Visual Studio Code: Windows • Follow the steps in the installer.
    [Show full text]
  • Cmake / Ctest / Cpack
    Building, Testing, and Deploying Software in a Cross-Platform Development Environment Julien Jomier [email protected] About Kitware • Software Development Company • Founded in 1998 • 110+ employees and growing • Focus in – Scientific computing – Large data visualization – Medical image processing – Informatics – Computer vision – Scientific data publishing – Quality software processes • Primarily work in Open Source About Kitware • Provide training and support • Do custom development • Sell technical books • Host and maintain projects including: VTK The Visualization Toolkit CMake A platform agnostic build system ITK Insight Segmentation and Registration Toolkit ParaView A parallel visualization application • Primary (but not sole) developers of each project Kitware: Core Technologies Overview • What is CMake? • Building with CMake • Testing with CTest/CDash • Packaging with CPack What is CMake? • CMake is the cross-platform, open-source build system that lets you use the native development tools you love the most. • It’s a build system generator • It takes plain text files as input that describe your project and produces project files or make files for use with a wide variety of native development tools. • Family of Software Development Tools – Build – CMake – Test – CTest/CDash – Package – CPack CMake: History • Built for the Insight Segmentation and Registration Toolkit (ITK) http://www.itk.org • Funded by National Library of Medicine (NLM): part of the Visible Human Project • Release-1-0 branch created in late 2001 • Other
    [Show full text]
  • Special Characters Numbers
    Index ■Special Characters AddServiceEndpoint( ) member, ServiceHost type, #define, preprocessor directive, 317–319 1032 #elif, preprocessor directive, 317–318 ADO.NET #else, preprocessor directive, 317–318 additional namespaces, 763–764 #endif, preprocessor directive, 317–318 vs. ADO classic, 759–760 #endregion, preprocessor directive, 317 application configuration files, 769–770 #if, preprocessor directive, 317–318 asynchronous data access, 792–793 #region, preprocessor directive, 317 autogenerated data components, 824–825 #undef, preprocessor directive, 317–319 autogenerating SQL commands, 816–817 % modulo operator, C#, 1097 autoincrementing, 797 & operator, pointer types, 312–313 binding DataTables to user interfaces, 804, 806 * operator, pointer types, 312–313 Command object, 781–782 ?? operator, 133 connected layer, 778 += operator, 610 connected vs. disconnected layer, 760 <%@Page%> directive attribute, ASP.NET, 846 connecting to database, Visual Studio 2005, 776 <%Import%> directive, ASP.NET, 846–847 connection objects, 779–780 => token, 1098 ConnectionStringBuilder object, 780–781 ? suffix, nullable types, 131 connectionStrings element, application configuration, 774–775 ■Numbers data access libraries, 1130 data adapter objects, 811–812 3D graphics graphical service, WPF, 1012 data providers, 760, 762 3D rendered animation, 970 data wizards, 822–825 100% code approach, 1048 DataColumn objects, 796, 798 ■ DataRelation objects, 817–820 A DataRow objects, 798–799, 801 A# programming language, 8 DataRow.RowState property, 799–800 Abort(
    [Show full text]
  • TMS320C6000 Optimizing Compiler V8.2.X User's Guide (Rev. B)
    TMS320C6000 Optimizing Compiler v8.2.x User's Guide Literature Number: SPRUI04B May 2017 Contents Preface....................................................................................................................................... 11 1 Introduction to the Software Development Tools.................................................................... 14 1.1 Software Development Tools Overview ................................................................................. 15 1.2 Compiler Interface.......................................................................................................... 16 1.3 ANSI/ISO Standard ........................................................................................................ 16 1.4 Output Files ................................................................................................................. 17 1.5 Utilities ....................................................................................................................... 17 2 Getting Started with the Code Generation Tools .................................................................... 18 2.1 How Code Composer Studio Projects Use the Compiler ............................................................. 18 2.2 Compiling from the Command Line ..................................................................................... 19 3 Using the C/C++ Compiler ................................................................................................... 20 3.1 About the Compiler........................................................................................................
    [Show full text]
  • TMS320C6000 Optimizing Compiler V 7.3 User's Guide
    TMS320C6000 Optimizing Compiler v 7.3 User's Guide Literature Number: SPRU187T July 2011 2 SPRU187T–July 2011 Submit Documentation Feedback Copyright © 2011, Texas Instruments Incorporated Contents Preface ...................................................................................................................................... 13 1 Introduction to the Software Development Tools ................................................................... 17 1.1 Software Development Tools Overview ................................................................................ 18 1.2 C/C++ Compiler Overview ................................................................................................ 19 1.2.1 ANSI/ISO Standard ............................................................................................... 19 1.2.2 Output Files ....................................................................................................... 20 1.2.3 Compiler Interface ................................................................................................ 20 1.2.4 Utilities ............................................................................................................. 20 2 Using the C/C++ Compiler .................................................................................................. 21 2.1 About the Compiler ........................................................................................................ 22 2.2 Invoking the C/C++ Compiler ...........................................................................................
    [Show full text]
  • Comparative Studies of Six Programming Languages
    Comparative Studies of Six Programming Languages Zakaria Alomari Oualid El Halimi Kaushik Sivaprasad Chitrang Pandit Concordia University Concordia University Concordia University Concordia University Montreal, Canada Montreal, Canada Montreal, Canada Montreal, Canada [email protected] [email protected] [email protected] [email protected] Abstract Comparison of programming languages is a common topic of discussion among software engineers. Multiple programming languages are designed, specified, and implemented every year in order to keep up with the changing programming paradigms, hardware evolution, etc. In this paper we present a comparative study between six programming languages: C++, PHP, C#, Java, Python, VB ; These languages are compared under the characteristics of reusability, reliability, portability, availability of compilers and tools, readability, efficiency, familiarity and expressiveness. 1. Introduction: Programming languages are fascinating and interesting field of study. Computer scientists tend to create new programming language. Thousand different languages have been created in the last few years. Some languages enjoy wide popularity and others introduce new features. Each language has its advantages and drawbacks. The present work provides a comparison of various properties, paradigms, and features used by a couple of popular programming languages: C++, PHP, C#, Java, Python, VB. With these variety of languages and their widespread use, software designer and programmers should to be aware
    [Show full text]
  • IBX for Lazarus User Guide
    MWA Software IBX for Lazarus User Guide Issue 1.6, 14 April 2018 McCallum Whyman Associates Ltd EMail: info@ mccallumwhyman.com, http://www.mccallumwhyman.com Registered in England Registration No. 2624328 COPYRIGHT The copyright in this work is vested in McCallum Whyman Associates Ltd. The contents of the document may be freely distributed and copied provided the source is correctly identified as this document. © Copyright McCallum Whyman Associates Ltd (2016) trading as MWA Software. Disclaimer Although our best efforts have been made to ensure that the information contained within is up-to-date and accurate, no warranty whatsover is offered as to its correctness and readers are responsible for ensuring through testing or any other appropriate procedures that the information provided is correct and appropriate for the purpose for which it is used. ii CONTENTS Page 1 INTRODUCTION................................................................................................................................................1 1.1 REFERENCES............................................................................................................................................................2 1.2 CHANGE HISTORY....................................................................................................................................................2 1.2.1 Version 1.1....................................................................................................................................................2 1.2.2 Version
    [Show full text]
  • Autobiography by the Pythons John Cleese, Terry Jones, Michael Palin
    [PDF] The Pythons: Autobiography By The Pythons John Cleese, Terry Jones, Michael Palin, Eric Idle, Graham Chapman, Bob McCabe, Terry Gilliam - pdf download free book The Pythons: Autobiography By The Pythons PDF, The Pythons: Autobiography By The Pythons PDF Download, The Pythons: Autobiography By The Pythons Download PDF, The Pythons: Autobiography By The Pythons by John Cleese, Terry Jones, Michael Palin, Eric Idle, Graham Chapman, Bob McCabe, Terry Gilliam Download, Read Best Book Online The Pythons: Autobiography By The Pythons, I Was So Mad The Pythons: Autobiography By The Pythons John Cleese, Terry Jones, Michael Palin, Eric Idle, Graham Chapman, Bob McCabe, Terry Gilliam Ebook Download, PDF The Pythons: Autobiography By The Pythons Free Download, The Pythons: Autobiography By The Pythons Free Read Online, free online The Pythons: Autobiography By The Pythons, Download Online The Pythons: Autobiography By The Pythons Book, Download PDF The Pythons: Autobiography By The Pythons, pdf free download The Pythons: Autobiography By The Pythons, read online free The Pythons: Autobiography By The Pythons, book pdf The Pythons: Autobiography By The Pythons, pdf John Cleese, Terry Jones, Michael Palin, Eric Idle, Graham Chapman, Bob McCabe, Terry Gilliam The Pythons: Autobiography By The Pythons, Pdf Books The Pythons: Autobiography By The Pythons, Read The Pythons: Autobiography By The Pythons Full Collection, The Pythons: Autobiography By The Pythons Popular Download, The Pythons: Autobiography By The Pythons Books Online, PDF Download The Pythons: Autobiography By The Pythons Free Collection, CLICK HERE FOR DOWNLOAD Overall this book is a rather expensive apocalyptic rendering of political analysis and it is an important read.
    [Show full text]