• 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 » CCS 4 error when loading
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

    CCS 4 error when loading

    This question is answered
    Anand K V
    Posted by Anand K V
    on Apr 16 2012 06:21 AM
    Prodigy60 points

    Hi,  

               I have this problem while building my code in ccs v4.  I am totally new to this tool. This project is bit old and my previous guy did this project and handed over to me. I have imported the project file to the tool and fine. When I go for building these errors occurs. I tried this linking files and other option, I am not getting the correct way to solve the problem , your guidance will be appreciated . Thanks in advance for the help.

     

     

    Regards

    Anand

     

    The errors is as follows and Screen Short

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all

    'Building file: ../DSP2802x_GlobalVariableDefs.c'

    'Invoking: Compiler'

    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" --silicon_version=28 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/include" --diag_warning="225" --large_memory_model --preproc_with_compile --preproc_dependency="DSP2802x_GlobalVariableDefs.pp"  "../DSP2802x_GlobalVariableDefs.c"

    "../DSP2802x_GlobalVariableDefs.c", line 14: fatal error: could not open source file "PeripheralHeaderIncludes.h"

    1 fatal error detected in the compilation of "../DSP2802x_GlobalVariableDefs.c".

    Compilation terminated.

     

    >> Compilation failure

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [DSP2802x_GlobalVariableDefs.obj] Error 1

    'Building file: ../Src/CommFunc.c'

    'Invoking: Compiler'

    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" --silicon_version=28 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/include" --diag_warning=225 --large_memory_model --preproc_with_compile --preproc_dependency="Src/CommFunc.pp" --obj_directory="Src"  "../Src/CommFunc.c"

    "../Src/CommFunc.c", line 40: fatal error: could not open source file "Headerdef.h"

    1 fatal error detected in the compilation of "../Src/CommFunc.c".

    Compilation terminated.

     

    >> Compilation failure

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [Src/CommFunc.obj] Error 1

    'Building file: ../Src/Control.c'

    'Invoking: Compiler'

    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" --silicon_version=28 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/include" --diag_warning=225 --large_memory_model --preproc_with_compile --preproc_dependency="Src/Control.pp" --obj_directory="Src"  "../Src/Control.c"

    "../Src/Control.c", line 40: fatal error: could not open source file "Headerdef.h"

    1 fatal error detected in the compilation of "../Src/Control.c".

    Compilation terminated.

     

    >> Compilation failure

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [Src/Control.obj] Error 1

    'Building file: ../Src/DriverConfig.c'

    'Invoking: Compiler'

    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" --silicon_version=28 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/include" --diag_warning=225 --large_memory_model --preproc_with_compile --preproc_dependency="Src/DriverConfig.pp" --obj_directory="Src"  "../Src/DriverConfig.c"

    "../Src/DriverConfig.c", line 40: fatal error: could not open source file "Headerdef.h"

    1 fatal error detected in the compilation of "../Src/DriverConfig.c".

    Compilation terminated.

     

    >> Compilation failure

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [Src/DriverConfig.obj] Error 1

    'Building file: ../Src/GlobalVar.c'

    'Invoking: Compiler'

    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" --silicon_version=28 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/include" --diag_warning=225 --large_memory_model --preproc_with_compile --preproc_dependency="Src/GlobalVar.pp" --obj_directory="Src"  "../Src/GlobalVar.c"

    "../Src/GlobalVar.c", line 40: fatal error: could not open source file "headerdef.h"

    1 fatal error detected in the compilation of "../Src/GlobalVar.c".

    Compilation terminated.

     

    >> Compilation failure

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [Src/GlobalVar.obj] Error 1

    'Building file: ../Src/Table.c'

    'Invoking: Compiler'

    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" --silicon_version=28 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/include" --diag_warning=225 --large_memory_model --preproc_with_compile --preproc_dependency="Src/Table.pp" --obj_directory="Src"  "../Src/Table.c"

    "../Src/Table.c", line 25: fatal error: could not open source file "Headerdef.h"

    1 fatal error detected in the compilation of "../Src/Table.c".

    Compilation terminated.

     

    >> Compilation failure

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [Src/Table.obj] Error 1

    'Building file: ../Src/main.c'

    'Invoking: Compiler'

    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" --silicon_version=28 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/include" --diag_warning=225 --large_memory_model --preproc_with_compile --preproc_dependency="Src/main.pp" --obj_directory="Src"  "../Src/main.c"

    "../Src/main.c", line 38: fatal error: could not open source file "Headerdef.h"

    1 fatal error detected in the compilation of "../Src/main.c".

    Compilation terminated.

     

    >> Compilation failure

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [Src/main.obj] Error 1

    'Building file: ../LibSrc/DSP2802x_Adc.c'

    'Invoking: Compiler'

    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" --silicon_version=28 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/include" --diag_warning="225" --large_memory_model --preproc_with_compile --preproc_dependency="LibSrc/DSP2802x_Adc.pp" --obj_directory="LibSrc"  "../LibSrc/DSP2802x_Adc.c"

    "../LibSrc/DSP2802x_Adc.c", line 14: fatal error: could not open source file "DSP2802x_Device.h"

    1 fatal error detected in the compilation of "../LibSrc/DSP2802x_Adc.c".

    Compilation terminated.

     

    >> Compilation failure

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [LibSrc/DSP2802x_Adc.obj] Error 1

    'Building file: ../LibSrc/DSP2802x_CSMPasswords.asm'

    'Invoking: Compiler'

    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" --silicon_version=28 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/include" --diag_warning=225 --large_memory_model --preproc_with_compile --preproc_dependency="LibSrc/DSP2802x_CSMPasswords.pp" --obj_directory="LibSrc"  "../LibSrc/DSP2802x_CSMPasswords.asm"

    'Finished building: ../LibSrc/DSP2802x_CSMPasswords.asm'

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • BrandonAzbell
      Posted by BrandonAzbell
      on Apr 16 2012 07:42 AM
      Guru54850 points

      It would appear that the import process did not grab the C Compiler include path setup from your counterpart's setup.

      The C compiler is offering an error indicating various C header files can not be opened, likely due to not being found in the directories that have been provided to the C compiler to look.  You should modify the Project Build settings to add the appropriate paths to the C header files for the C compiler.

      Brandon

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Anand K V
      Posted by Anand K V
      on Apr 17 2012 04:12 AM
      Prodigy60 points

      HI Brandon ,

      Thank you for the reply

      I tried by including the header file but not fixing  the error. please guide me how to do it. 

      regards 

      anand

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • BrandonAzbell
      Posted by BrandonAzbell
      on Apr 17 2012 19:27 PM
      Guru54850 points

      Perhaps you new build log would help illustrate the effects of the changes you have made.  This would help to see if we are on track.

      I may not have been clear in terms of what I mean when suggesting to add the include path to the build options.  You need to select the menu Project->Properties option.  This will invoke a dialog box that allows you to select the C compiler build options.  There should be a category indicating "Include Options".  You would then add the directory appropriate for the expected relative path for the header file.

      Brandon

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Anand K V
      Posted by Anand K V
      on Apr 18 2012 04:45 AM
      Prodigy60 points

      Hi Brandon,

      I have added the header files through this path project > properties> c/c++ build options. After doing some trail and error method I have end up with one error at last as the screenshot I have attached. Please give you’re valuable guidance. Look forward to hear back form you.

      The error is like this 

      could not open source file "PeripheralHeaderIncludes.h" SMI1 DSP2802x_GlobalVariableDefs.c line 14 1334741507836 26

      Thanks and regards

      Anand

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • BrandonAzbell
      Posted by BrandonAzbell
      on Apr 18 2012 19:49 PM
      Verified Answer
      Verified by AartiG
      Guru54850 points

      Is there a PeripheralHeaderIncludes.h file somewhere on your hard drive?

      You mentioned in your original post that this code base was somewhat dated.  That is certainly true since more recent releases of the device support files for the TMS320F2802x do not have this file name used in the DSP2802x_GlobalVariableDefs.c file.

      My suggestion, flying blind here, is for you to identify where this requested file is on your PC's hard drive and add the path to this file in the C compiler include path switches like before.

      Brandon

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Anand K V
      Posted by Anand K V
      on Apr 23 2012 06:57 AM
      Verified Answer
      Verified by Anand K V
      Prodigy60 points

      Hi Brandon,

      Thanks for all your help . The compiling issues got solved.

      Thanks and Regards

      Anand 

      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