• 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 » C6000_CSL_CG_ROOT build variable
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

    C6000_CSL_CG_ROOT build variable

    This question is answered
    selwyn yee
    Posted by selwyn yee
    on Apr 27 2012 20:41 PM
    Prodigy40 points

    Hi,

    I found some example programs for DSK6713, and attempted to compile on Code Composer v5.1.  Code Composer allowed me to

    "Import Legacy CCSv3.3 Project".  Could not import as existing project.

    Anyway, the project built, but had warnings:

    -----------------------------------------------------------------------------------------------------------------------------------------
    Build variable 'C6000_CSL_CG_ROOT' cannot be resolved.     led        properties    TI Problem Marker
    Build variable 'CCSv3_INSTALL_ROOT' cannot be resolved.     led        properties    TI Problem Marker

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

    What should I set these build variables to?  Especially C6000_CSL_CG_ROOT?

    I don't have CCSv3.3 installed, so I don't think I need to set CCSv3_INSTALL_ROOT?

    thanks,

    Selwyn

    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 Apr 30 2012 08:25 AM
      Guru100195 points

      Hi Selwyn,

      could you please provide further details on how you tried to import the project and exactly what errors you recieved?

      Have a look at this wiki and check the include paths.  You are correct, it appears a could build variables may need to be fixed.  Unfortunately this is the situation in some import cases.

      Best Regards,
      Lisa

      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 Apr 30 2012 08:25 AM
      Guru100195 points

      Here is the link to the mentioned wiki ...

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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • selwyn yee
      Posted by selwyn yee
      on May 02 2012 23:32 PM
      Prodigy40 points

      Hi Lisa,

      The example project I tried to build was old.  It was the "Target Content" zip file from

      http://c6000.spectrumdigital.com/dsk6713/.  According to its README, the examples are for CCS v3.0, so not surprising it does

      not port properly.  The project I tried to build is "\DSK6713\examples\dsk6713\bsl\led\led.pjt".  From CCSv5.1, I tried to execute

      "Project->Import Legacy CCSv3.3 Project".

      I got the following error and warnings:

      Description    Resource    Path    Location    Type
      #5 could not open source file "dsk6713.h"    led.c    /led    line 36    C/C++ Problem
      Build variable 'C6000_CSL_CG_ROOT' cannot be resolved.     led        properties    TI Problem Marker
      Build variable 'C6000_CSL_CG_ROOT' cannot be resolved.     led        properties    TI Problem Marker
      Build variable 'CCSv3_INSTALL_ROOT' cannot be resolved.     led        properties    TI Problem Marker
      Build variable 'CCSv3_INSTALL_ROOT' cannot be resolved.     led        properties    TI Problem Marker
      Invalid project path: Include path not found (\c6000\dsk6713\include).    led        pathentry    Path Entry Problem
      Invalid project path: Include path not found (\include).    led        pathentry    Path Entry Problem

      Please note I do not have CCSv3.3 installed, only CCSv5.1.

      Thanks,

      Selwyn

      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 May 03 2012 09:55 AM
      Guru100195 points

      Hi Selwyn,

      what steps did you take/options did you select in the import wizard?  Do you have the latest released 5.1.1 version of CCS?  I just tried to reproduce this, but had no problems to import and build the project.  I did get a log basically warning me the project had been migrated to newer tools etc but could import the example.

      Best Regards,
      Lisa

      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 May 03 2012 11:19 AM
      Guru100195 points

      HI Selwyn,

      I have now managed to see what you are experiencing.  Let me look into the warnings and get back to you as soon as I have any feedback.

      Best Regards,

      Lisa

      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 May 03 2012 11:50 AM
      Guru100195 points

      Hi Selwyn,

      first of all, if you do not want to keep a v3 installation alongside v5, then you will need to install CSL separately and point v5 to it since v4 and v5 do not come with the CSL libraries.  Have a look at this migration wiki. 

      http://processors.wiki.ti.com/index.php/Importing_CCSv3_Projects_into_CCSv4#CSL_and_XDAIS

      This is where CSL can be downloaded from:

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

      The above migration wiki should help get rid of most of the path/build warnings/problems.  The remaining one should simply be to correct to the CCS installation root instead of CCSv3 installation rool.  This wiki should help with that

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

      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.
    • selwyn yee
      Posted by selwyn yee
      on May 04 2012 18:27 PM
      Verified Answer
      Verified by Lisa TI
      Prodigy40 points

      Hi Lisa,

      thank you for the advice.  Now I successfully built an example DSK6713 program.  You were right, I did not have the chip support libraries, so I downloaded them for the C6000 architecture.  The download file is sprc090.zip.  The documentation said sprc090.zip supported up to Windows XP.  But I have Windows 7.  Seems ok.

      Installed in C:\ti\C6xCSL.  I then chose timer example program for DSK6713.  Imported as Legacy CCSv3.3 project.  Could not resolve build variable C6000_CSL_CG_ROOT.  Set C6000_CSL_CG_ROOT = C:\ti\C6xCSL.

      Still had build error.  Could not find CSL6713.lib.  Turns out the linker search path had to be changed, because the C6xCSL directory did not have a "lib" directory.  It had lib_2x and lib_3x directories.  So under the properties for the project, I went to C6000 Linker->File Search Path->--search_path, and changed ${C6000_CSL_CG_ROOT}/lib to ${C6000_CSL_CG_ROOT}/lib_3x.  I chose lib_3x because I am using CCSv5.1.  Hopefully this is correct?  I still get these warnings:

      Description    Resource    Path    Location    Type
      #10210-D creating ".stack" section with default size of 0x400; use the    timer1             C/C++ Problem
      #10210-D creating ".sysmem" section with default size of 0x400; use    timer1             C/C++ Problem

      What do these mean?

      Thanks,

      Selwyn

      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 May 07 2012 09:15 AM
      Guru100195 points

      Hi Selwyn,

      you are getting these warnings because you did not explicitly specify to the linker where to locate these two sections that were generated.  In such cases, the linker place it in the default location and allocate the default size for it.

      Hope this helps explain.

      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