• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » Code Composer Studio » Code Composer Forum » Temperature Sense Demo errors!
Share
Code Composer Studio
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Common Questions
  • Code Composer Studio Forum Usage Guidelines

  • Resources
  • Code Composer Studio (CCStudio) Product Folder
  • Troubleshooting CCS
  • CCS Wiki
  • Download CCS
  • Order CCS
  • Tools Insider Blog
  • Bug Tracking
  • Temperature Sense Demo errors!

    Temperature Sense Demo errors!

    This question is answered
    John D'Orazio
    Posted by John D'Orazio
    on Jun 30 2012 04:54 AM
    Prodigy100 points

    I am trying out CCSv5 for the first time, after unsuccessfully trying to install it to an existing Eclipse Juno installation, I finally succeeded installing it as standalone.

    Now I'm trying out the first demo to see how everything works, following the video "Getting Started with the MSP430 LaunchPad Workshop - Part 2" from here: http://focus.ti.com/general/docs/video/Portal.tsp?lang=en&entryid=0_yrd0la9n .

    I have created a new CCS project.

    When prompted about the device, I see a dropdown entitled "Family" with only one option "MSP430", then another dropdown entitled "Variant" with only one option "Custom MSP430 Device". So I can't change anything there or type in any specific models. (I'm using the MPS-EXP430G2.)

    I created the project and I edited main.c replacing the contents with the text from "\Labs\Lab2\Files\Temperature_Sense_Demo.txt".

    The "debug" button doesn't do anything. So I tried the hammer icon instead, which says "Build debug".

    At first I got an error about a non-existing include path. It couldn't find the first included file "msp430g2553.h". It was looking for it in "C:\ti\ccsv5\ccs_base\msp430\include", which actually did not exist. "C:\ti\ccsv5\ccs_base\msp430" existed, but no sub-directory "include".

    So I researched my computer for any file named "msp430g2553.h", and I found it in a few places:
    "C:\ti\xdctools_3_23_03_53\packages\ti\mcu\msp430\include", 
    "C:\ti\grace_1_10_04_36\packages\ti\mcu\msp430\include", 
    "C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.0 Evaluation\430\inc".

    So I created a new directory "C:\ti\ccsv5\ccs_base\msp430\include" and copied the contents from "C:\ti\xdctools_3_23_03_53\packages\ti\mcu\msp430\include" to this new directory.

    I push "Build debug" again (hammer icon), and it spits out 2 errors, 7 warnings, and 8 "others":

    errors encountered during linking; "Temperature_Sense_Demo_1.out" not built          Temperature_Sense_Demo_1           C/C++ Problem
    unresolved symbols remain                                                                                                       Temperature_Sense_Demo_1           C/C++ Problem

    -------------------------

    #10210-D creating ".stack" section with default size of 0x80; use the -stack option to change the default size      Temperature_Sense_Demo_1      C/C++ Problem
    #10247-D creating output section ".int02" without a SECTIONS specification Temperature_Sense_Demo_1 C/C++ Problem
    #10247-D creating output section ".int05" without a SECTIONS specification Temperature_Sense_Demo_1 C/C++ Problem
    #10247-D creating output section ".int08" without a SECTIONS specification Temperature_Sense_Demo_1 C/C++ Problem
    #10247-D creating output section ".int09" without a SECTIONS specification Temperature_Sense_Demo_1 C/C++ Problem
    #10247-D creating output section ".int10" without a SECTIONS specification Temperature_Sense_Demo_1 C/C++ Problem
    #10247-D creating output section ".stack" without a SECTIONS specification Temperature_Sense_Demo_1 C/C++ Problem

    ------------------------

    #10372-D (ULP 4.1) Detected uninitialized Port 2 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins. Temperature_Sense_Demo_1 C/C++ Problem
    #10372-D (ULP 4.1) Detected uninitialized Port 3 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins. Temperature_Sense_Demo_1 C/C++ Problem
    #1527-D (ULP 2.1) Detected SW delay loop using __delay_cycles. Recommend using a timer module instead main.c /Temperature_Sense_Demo_1 line 198 C/C++ Problem
    #1527-D (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead main.c /Temperature_Sense_Demo_1 line 239 C/C++ Problem
    #1530-D (ULP 5.1) Detected divide operation(s). Recommend moving them to RAM during run time or not using as these are processing/power intensive main.c /Temperature_Sense_Demo_1 line 137 C/C++ Problem
    #1533-D (ULP 6.1) Detected use of multiplication on a device that has no hardware multiplier main.c /Temperature_Sense_Demo_1 line 137 C/C++ Problem
    #1544-D (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier main.c /Temperature_Sense_Demo_1 line 124 C/C++ Problem
    #1544-D (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier main.c /Temperature_Sense_Demo_1 line 202 C/C++ Problem

    What is going on? How come things don't work as of the workshop tutorial? I must say this really does make use of the MSP430 a bit daunting. The Arduino is much more straightforward. I didn't encounter a single error with the Arduino.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Lisa TI
      Posted by Lisa TI
      on Jun 30 2012 14:10 PM
      Guru103710 points

      Hi John,

      can you please detail a bit further information.

      - are you in general having problems with MSP projects?  Did you have any installation problems when you went to stand alone?  Did you have your antivirus turned off?

      - how are you importing the example?  Can you please provide further detail.

      What OS are you on?

      The errors look like a broken library/file search path.  Check this wiki as it should help.

      http://processors.wiki.ti.com/index.php/Include_paths_and_options

      Best Regards,
      Lisa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • John D'Orazio
      Posted by John D'Orazio
      on Jun 30 2012 17:33 PM
      Prodigy100 points

      My OS is Windows 7 Pro x64.

      I can't really say I'm having difficulty with other projects because I haven't done any projects. I'm following the tutorials for the first demo project, the "Temperature Sense Demo".

      I'm "importing" the example exactly as described in the workshop video, I'm creating a new project, then opening the file "\Labs\Lab2\Files\Temperature_Sense_Demo.txt", and copying its contents and pasting the to main.c (deleting the default contents of main.c). I then close "\Labs\Lab2\Files\Temperature_Sense_Demo.txt", and try to compile with the "bug" icon.

      I was also getting a "missing Target configuration file" error when pressing the bug icon button.

      As regards the include path errors, are the contents of "C:\ti\xdctools_3_23_03_53\packages\ti\mcu\msp430\include" supposed to be the same as the ones being looked for in the non-existing path "C:\ti\ccsv5\ccs_base\msp430\include"? Would it be enough to just copy the contents over?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lisa TI
      Posted by Lisa TI
      on Jul 02 2012 11:28 AM
      Guru103710 points

      Hi John,

      ok a couple things here, first I would try one of the example built into CCS.   If you create a new CCS project for the MSP430, there is a hello world and/or blink LED example available from the create project wizard,

      Each project needs a target configuration file in order for debugging.  This tells CCS how to connect to your target in order to debug.  Under file->new you will be able to create a target configuration file to add to the project. 

      If you do not have that msp430 path in your CCS installation this could be a /the problem.  Did you select MSP430 support when installing? Did you have the antivirus turned off?

      Please keep us informed.

      Best Regards,

      Lisa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • John D'Orazio
      Posted by John D'Orazio
      on Jul 02 2012 21:14 PM
      Prodigy100 points

      Yes I chose MSP430 when installing, and yes my antivirus was turned off.

      When I choose file->new->target configuration file, it opens a form with three tabs, Basic, Advanced and Source.

      Under Basic, General Setup, there is a dropdown entitled connection, the only option in the dropdown in "Data Snapshot Viewer". Is this supposed to be correct?

      Then there is a text field "board or device" and below that there is an empty select list. So I can't choose the MSP430 here... I also get an error message in the console:

      Description Resource Path Location Type
      There are no debuggable cpus NewTargetConfiguration.ccxml /Blink Unknown Problem

      My MSP430 is connected to the computer and recognized by Windows 7 Pro.

      I am able to upload programs to it with Energia.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lisa TI
      Posted by Lisa TI
      on Jul 03 2012 07:11 AM
      Guru103710 points

      Hi John,

      it is not normal not to access the list of devices like that.  What OS are you on? Is this a fresh installation?

      Could you please send the contents of your installjammer registry directory?  Would you be willing to try a fresh installation?

      Best Regards,
      Lisa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • John D'Orazio
      Posted by John D'Orazio
      on Jul 03 2012 15:37 PM
      Verified Answer
      Verified by Lisa TI
      Prodigy100 points

      Ok I again deleted everything and again reinstalled everything, and it seems to be working better now, I can now select the specific MSP430 in the target configuration.

      However, if I turn my Avast antivirus back on again, it blocks the compiler when compiling a program, specifically it doesn't like:

      C:\ti\ccsv5\tools\compiler\msp430_4.1.1\bin\opt430.exe

      C:\ti\ccsv5\tools\compiler\msp430_4.1.1\bin\acpia430.exe

      I would recommend contacting Avast to have your software whitelisted... It makes compiling a more complicated process.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lisa TI
      Posted by Lisa TI
      on Jul 03 2012 15:43 PM
      Guru103710 points

      Hi John,

      yes, unfortunately this is a known item that antivirus programs are interfering with CCS installation/compilers.  We are of course trying to do our best going forward.

      Glad to hear you are now up and running and all the best with development.

      Best Regards,

      Lisa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use