• 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 » Microcontrollers » MSP430™ Microcontrollers » MSP430 Ultra-Low Power 16-bit Microcontroller Forum » CCSv5 New Compiler Give some error
Share
MSP430™ Microcontrollers
  • Forum
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
MSP430 Resources
  • MSP430 Product Folder
  • MSP-EXP430G2 - MSP430 LaunchPad Value Line Development kit
  • MSP430 Getting Started Guide
  • MSP430 Microcontroller Projects
  • More Resources >
  • CCSv5 New Compiler Give some error

    CCSv5 New Compiler Give some error

    This question is not answered
    Ajit Sonawane
    Posted by Ajit Sonawane
    on Dec 12 2011 03:19 AM
    Intellectual280 points

    I am update my CCSv4 to CCSv5 but CCSv4 project give me some error

    like  " No source available for "0xa866"  " and show  "view  Disassembly ''

     

    what this problem plz tell me and how to avoid and also my delay routine not consider but when seprate made header and C file it take in to code

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Bernhard Weller
      Posted by Bernhard Weller
      on Dec 12 2011 06:01 AM
      Genius4915 points

      The problems you are facing are most likely caused by the now standard "on" optimizations in the new code generation tools.

      The compiler will now produce code with optimization level 0, even if no optimization level is selected in the project properties.

      To turn off the optimizations go to: Project -> Properties -> Build -> MSP430 Compiler -> Advanced Options -> Advanced Optimization

      There check the box with "Disable all high level optimizations"

       

      The optimization will perform several changes, the most famous pitfall is that delay loops don't work anymore. That is because the delay loop is doing nothing useful (from the compiler point of view) and thus will be removed to optimize the code.

      That is why everyone should use the _delay_cycles() intrinsic to get a defined delay even when optimizations are turned to maximum.

       

      The second thing you are seeing is "No source available for 0xABCD", this happens when the debugger can't align the current location to a source code line. This also happens often due to optimizations as code will get rearranged to get more speed or reduce the size of the code. Somewhere in that process the assignment between position and source code gets lost.

      --------------------------------------------------------------------------------------
      Use the verify answer button to mark your questions as solved.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ajit Sonawane
      Posted by Ajit Sonawane
      on Dec 12 2011 22:01 PM
      Intellectual280 points

      Hi,

      Friend Bernhard Weller

      When i I am trying to clik on this box below

      To turn off the optimizations go to: Project -> Properties -> Build -> MSP430 Compiler -> Advanced Options -> Advanced Optimization

      There check the box with "Disable all high level optimizations"

      Give the following error

       

       

      What I do then my CCSv4 project run without error exactly same in CCSv5,

      Plz give give me suggestion

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Bernhard Weller
      Posted by Bernhard Weller
      on Dec 13 2011 02:05 AM
      Genius4915 points

      It seems like your .out file is not found by the CCSv5.1. I don't know why it shouldn't find it's own generated file. The thing I can think of is maybe that there were compilation errors and no out file was created. But then there should have been an error message before.

      Maybe it's best to ask over at the Code Composer Studio, as the TI support there will most likely be better able to help you with that.

      --------------------------------------------------------------------------------------
      Use the verify answer button to mark your questions as solved.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Venkat Ramshankar
      Posted by Venkat Ramshankar
      on Aug 09 2012 02:33 AM
      Prodigy190 points

      Hi,

      I have run into the same "no source code for foo_bar at 0xABCD" error with CCS v 5.2.1.00018 and TI compiler v4.1.1. Dis assembly sure shows foo_bar, but in a different location (generally < 0xABCD). Program build and loading happens without any problem, but the main is not called. 

      Regarding the above solution, I have searched through the Project->Properties->.. but did not find any option to disable all optimizations. The compiler document mentions about "--no_high_level_opt" option, but I am not able to find the same.

      Please let me know where the option is found/ if it has been removed or renamed.

      Thanks,

      -Venkat.

      CCS v5.2 no high level optimizations
      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