• 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.2.3.00004 unable to open source file during compilation
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
  • CCS 4.2.3.00004 unable to open source file during compilation

    CCS 4.2.3.00004 unable to open source file during compilation

    This question is answered
    John Matthews
    Posted by John Matthews
    on Jul 29 2011 18:55 PM
    Prodigy120 points

    Hello,

    I receive an error:

    "Fatal error: could not open source file "../main.c""

    when trying to compile an example project for the eZ430-Chronos. I imported the project into my workspace and can open and edit the main.c file in the project. I am using the Platinum edition of CCS 4.2.3.00004 with a 30 day trial license.

    Any guidance is greatly appreciated.

    Thanks!

     

    **** Build of configuration 915MHz - Unrestricted CCS Platinum for project Lab2_Chronos2Chronos ****

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all
    'Building file: ../main.c'
    'Invoking: Compiler'
    'Flags: --cmd_file="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Applications/configuration/smpl_nwk_config.dat" --cmd_file="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Applications/configuration/End Device/smpl_config.dat"  -vmspx -g -O4 --opt_for_speed=0 --define=__CCE__ --define=ISM_US --define=peer --define=__CC430F6137__ --define=MRFI_CC430 --include_path="C:/Program Files/Texas Instruments/ccsv4/msp430/include" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/msp430/include" --include_path="C:/Program Files/Texas Instruments/ccsv4/msp430/include" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/include" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/driver" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/logic" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/bluerobin" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Applications/application/End Device" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Components/bsp" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Components/bsp/boards" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Components/bsp/boards/CC430EM" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Components/bsp/boards/CC430EM/bsp_external" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Components/bsp/drivers" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Components/bsp/drivers/code" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Components/bsp/mcus" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Components/mrfi" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Components/mrfi/radios" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Components/mrfi/radios/family5" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Components/mrfi/smartrf" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Components/nwk" --include_path="C:/TI_workshop/Workspace/Lab2_Chronos2Chronos/simpliciti/Components/nwk_applications" --diag_warning=225 --call_assumptions=0 --auto_inline=0 --gen_opt_info=2 --printf_support=minimal --preproc_with_compile --preproc_dependency="main.pp"'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/msp430/bin/cl430" -@"main_ccsCompiler.opt"
    Fatal error: could not open source file "../main.c"
    1 fatal error detected in the compilation of "../main.c".
    Compilation terminated.

     

    PJT_Import
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • desouza
      Posted by desouza
      on Aug 01 2011 08:46 AM
      Guru56025 points

      Hi,

      I wonder if there is a problem with the original project itself... Could you point me to where you downloaded this project so I can try it out here?

      Regards,

      Rafael


      If my reply answers your question please click on the green button "Verify Answer".
      Search the wiki or go to useful pages for SDOWP, CGT, BIOS, CCSv3, CCSv4, CCSv5
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • John Matthews
      Posted by John Matthews
      on Aug 01 2011 12:16 PM
      Prodigy120 points
      Avnet_RF_Speedway_Files.zip

      Project files attached. Other people in the workshop were able to get the projects to compile without issue. I ended up going through the workshop using my partners build. I did have a previous version of CCS installed (4.1.???)  when I installed the 30 day trial of 4.2.3 Platinum. Perhaps the two versions didn't play nice together?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • desouza
      Posted by desouza
      on Aug 01 2011 13:54 PM
      Guru56025 points

      Hi,

      I managed to build the project straight from what you sent (I built all of the Lab2 projects, including the 915MHz Unrestricted configuration you used), therefore I suspect that something is strange with the workspace you are using. Can you either import your projects into a new workspace or "clean" the existing one? Check the section General IDE section of the troubleshooting page below:

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

      Hope this helps,

      Rafael

       


      If my reply answers your question please click on the green button "Verify Answer".
      Search the wiki or go to useful pages for SDOWP, CGT, BIOS, CCSv3, CCSv4, CCSv5
      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 Aug 02 2011 06:54 AM
      Guru100155 points

      Hello,

      have you 

      - tried the latest version of the examples?

      - where did you unzip the example projects?  Sometimes with SimpliciTI projects you need to unzip them in the SimpliciTI folders and you may also find you need to set the DEV_ROOT etc in CCS.   I will have a look at the zip file you sent, but I would also like to know what DEV_ROOT and settings you use.

      Hopefully we can figure this out!

      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 Matthews
      Posted by John Matthews
      on Aug 02 2011 16:06 PM
      Prodigy120 points
      CCSLogs.zip

      Hi Rafael,

      I tried the cleanup methods you mentioned, but it did not solve the problem. Thanks for pointing me to the Wiki. I've attached the debug files I should have included originally.

       

      Hi Lisa,

      I'm not aware of any more-recent examples. As noted above, these example have compiled successfully for several other people.

      I am using a fresh install of CCS v4.2.3.00004. I have not modified the DEV_ROOT or anything else in the project files, and am unsure of how to check this in CCS.

      Please let me know if there are other debug files or information I can gather to help solve this.

      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 Aug 02 2011 16:59 PM
      Guru100155 points

      Hi John,

      I tried to import and build the examples from the zip file you sent.  I was able to do this without issue.

      Please try the following

      1) Open a fresh workspace

      2) Project -> Import Existing CCE/CCS Project

      3) Browse to the folder where the lab2 files are.  For me this happened to be as below (Will be different for you )

      C:\Users\a0406096\Desktop\Stellaris\Avnet_RF_Speedway_Files\Lab2 files\Lab2ab_Chronos2Chronos

      4) CCS should find one project which will automatically be ticked

      5) Select "Copy project into workspace"

      Try the build again.

      Please let me know whether this works.   

      You actually should not have to worry about SimpliciTI or DEV_ROOT ... the examples are well enough self contained from what I see :  )

      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 Matthews
      Posted by John Matthews
      on Aug 03 2011 15:42 PM
      Prodigy120 points

      I have been doing this from the start without success. I have tried several fresh workspaces to no avail. Could I have gotten to the point of compiling the project if I didn't have it successfully imported into the workspace?

      I suspect the problem stems from the fact I had an older version of CCS installed on my machine when I first installed CCS v4.2.3.00004. I have since uninstalled the old version and reinstalled CCS v4.2.3.00004 with the temporary 30 day platnium license and the MSP430 components but that has not resolved the issue. Are there any Windows environment variables that I can check or other things that would be related to my installation of the IDE?

       

      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 Aug 03 2011 16:22 PM
      Guru100155 points

      Hi John,

      Ok, it sounds like you are doing things correctly and I have not been able to reproduce the issue with that project. 

      One thing I am wondering is if you have chosen the wrong version of project to make active my selecting the Unrestricted version of the 915MHz project.  What happens if you select the Core version of the project as active and build that?   I found that when I select the Core Version I get errors ... almost identical .. when I select Unrestricted I do not.

      It is relatively hard unfortunately not being able to reproduce the issue.   

      Please let me know if this could be the issue.  I am wondering whether it is a silly licensing thing.

      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 Matthews
      Posted by John Matthews
      on Aug 03 2011 17:45 PM
      Prodigy120 points
      CCSLicense.JPG

      Hi Lisa,

      Thanks for all your help with this and for your prompt responses. With the Core build configuration I receive the same initial error as I get with the Unrestricted version:

      Fatal error: could not open source file "../main.c"
      1 fatal error detected in the compilation of "../main.c".
      Compilation terminated.

      I've attached a screenshot of my licensing info from CCS.

      I believe the earlier version I originally had installed was also a trial version that had expired (from a previous workshop). Perhaps having the older version installed initially, or my multiple uninstall/reinstall of 4.2.3 messed up the licensing. Is there any way to completely clear out my current license data so that I can do a fresh install of the evaluation version?

      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 Aug 04 2011 09:09 AM
      Guru100155 points

      Hi John,

      let me see if I can look into this for you.  Unfortunately it is fewer and fewer programs that like to do clean uninstalls.

      What license options did you select?  Did you find remnants of CCS after you uninstalled the previous version you had?

      Cheers,
      Lisa 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • John Matthews
      Posted by John Matthews
      on Aug 04 2011 16:09 PM
      Prodigy120 points

      I selected the 30 day evaluation license. The only remnants from my previous installation were empty folders that I had not deleted via the final step of the uninstaller. If it is licensing, the problem is probably lurking in the registry somewhere. Let me know if it would be helpful to identify the problem, I can save off a copy of my registry contents.

      Any idea when there will be a new version of CCS available for download? I can wait for that and give it a try with a fresh install and the evaluation license if the newer version will reset my license.

      One thing i noticed: the download Wiki (http://processors.wiki.ti.com/index.php/Download_CCS) says the latest version is 4.2.4.00033, but when I download and install the production DVD image (http://software-dl.ti.com/dsps/forms/self_cert_export.html?prod_no=setup_CCS_4_Platinum.zip&ref_url=http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/CCSv4/latest/) the version is actually the same 4.2.3.00004 that I have been working with.

      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 Aug 05 2011 10:39 AM
      Guru100155 points

      Hi John,

      I am wondering less and less now if it has to do with the licenses.  

      Have you run updates in CCS? 

      It almost seems like in your case the MSP430 code generation tools are not included.  I assume you can create a blank MSP430 project and see a Code Generation Tool version in the CCS Build option.

      I would assume if you imported and built the project that this is the case.  I attached two screenshots.  How do these compare with yours?

      Best Regards,

      Lisa

       

       

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • JohnS
      Posted by JohnS
      on Aug 05 2011 13:51 PM
      Guru59145 points

      Quick question. If you double click on main.c in the "C/C++ Projects" View does it open ok in the editor?

       


      If my reply answers your question please mark the thread as answered

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • John Matthews
      Posted by John Matthews
      on Aug 05 2011 16:44 PM
      Prodigy120 points

      Hi John,

      Yes I can open, edit and save the main.c file in the project.

       

      Hi Lisa,

      After running the updates, I captured the same screenshots and noticed one small difference: My "Effective Code Generation tools:" for CCS Build show as TI v3.3.2.

      I can create a blank CCS MSP430 project. I also created a new MSP430 project using the "Hello World" example and received a similar compilation error:

      Fatal error: could not open source file "../hello.c"
      1 fatal error detected in the compilation of "../hello.c".
      Compilation terminated.

       

      Thanks and have a great weekend!


      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 Aug 08 2011 09:45 AM
      Guru100155 points

      Hi John,

      I am thinking this is likely due to the MSP430 code generation tools. 

      I have experienced the following

      CCS 4.2.3 - version 3.3.3 is ok, 3.3.2 generates errors.

      CCA 4.2.4 (what you actually seem to have) - I do not have 3.3.2 at all.  Once again 3.3.3 works.

      I would suggest the following and please keep me informed.

      1) If you can select 3.3.3 or 3.3.1 please give one of these a try.

      2) Run an update .. Help -> Software Updates -> Find and Install.   Hopefully that will include the newer 3.3.3 version of MSP430 code generation tools.

      Hopefully this will get you going.

      Best Regards,
      Lisa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    12
    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