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.
**** 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.
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?
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?
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:
Hope this helps,
- 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!
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.
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.
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 )
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 : )
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?
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.
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?
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?
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.
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?
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
Yes I can open, edit and save the main.c file in the project.
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!
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.
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.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.