• 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 » CC430 v.3.1 Librarian: ignores --output_file
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
  • Forums

    CC430 v.3.1 Librarian: ignores --output_file

    This question is answered
    pruzis
    Posted by pruzis
    on May 11 2009 11:48 AM
    Prodigy60 points

    The linker ignores the --output_file directive when building a library as a managed CC430 project. CC430 insread places the .lib in the \release subdirectory of the project. The managed project was created used the CC430 project Wizard.

    Here's the output file set in the options:

    and here's the corresponding console output.

    Just to be sure; the output file in 'TO Debug Settings' is also set to 'C:\SPJ1\swr\lib\cc430\arith_norm.lib'

        Steven Pruzina

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • AartiG
      Posted by AartiG
      on May 12 2009 13:38 PM
      Verified Answer
      Verified by JohnS
      Guru69085 points

      Steven,

      This appears to be a bug in CCE v3. If you take a look at the linker build step, it has the --output_file option which is the location that you specified for the output file followed by the -o option which was added by the build step by default, which defaults to \Debug or \Release directory. The later option is taken into effect, hence the output file always ends up in \Debug or \Release instead of the user specified location. This is addressed in the next release of the toolset, Code Composer Studio v4.

      To work around this in CCE v3, you can change the command line by doing the following:
      Right-click on the Project, select Properties->C/C++ Build->MSP430 Librarian

      Change the command line from:
      ${command} ${flags} ${output_flag} ${output} ${inputs}

      to:

      ${command} ${output_flag} ${output} ${flags} ${inputs}

      The idea is that the --output_file option should appear after the -o option in the build

      Also, I just wanted to mention that the creation of a library project will be different in the next release CCS v4 compared to CCE v3. In CCE v3, if you select Project Type as Library, then the source files are compiled and then linked as a relocatable module. In CCS v4, the source files will be compiled, and then the object files will be archived into a object library (using the Archiver), which actually fits better with the definition of a library. So the --output_file option will really not even be available for the librarian. More details on the archiver can be found in the MSP430 Assembly Language Tools Users Guide,
      http://www-s.ti.com/sc/techlit/slau131


      If a post answers your question please mark it with the "Verify Answer" button

      Search the wikis for common questions: CGT, BIOS,  CCSv3, CCSv4
      Track a known bug with SDOWP. Enter the bug id in the "Find Record ID" box

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • pruzis
      Posted by pruzis
      on May 17 2009 22:45 PM
      Prodigy60 points

      Git it!. Thx

      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