This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

My CCS was working and suddenly started giving error as file not found.

Other Parts Discussed in Thread: MSP430FG4618, MSP430WARE

It was a working project and now it doesn't build.

I tried re importing it and no help.

I created a new example too and issue remains same.

Please i need to resolve this ASAP as i am stuck on some issues.

**** Build of configuration Debug for project test **** "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all 'Building file: ../msp430xG46x_1.c' 'Invoking: MSP430 Compiler' "C:/ti/ccsv5/tools/compiler/msp430_4.1.5/bin/cl430" -vmspx --abi=eabi -g --include_path="C:/ti/ccsv5/ccs_base/msp430/include" --include_path="C:/ti/ccsv5/tools/compiler/msp430_4.1.5/include" --advice:power=all --define=__MSP430FG4618__ --diag_warning=225 --display_error_number --diag_wrap=off --printf_support=minimal --preproc_with_compile --preproc_dependency="msp430xG46x_1.pp" "../msp430xG46x_1.c" Fatal error #5: could not open source file "../msp430xG46x_1.c" 1 fatal error detected in the compilation of "../msp430xG46x_1.c". >> Compilation failure Compilation terminated. gmake: *** [msp430xG46x_1.obj] Error 1 gmake: Target `all' not remade because of errors.

  • Hi Rakesh,

    it is hard to say without many details.  That error is typical of include path issues or permissions issues.

    See this wiki

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

    I would also ask yourself what might have changed with this "break" occured?  Also an alternative is simple corruption somehow.

    Best Regards,

    Lisa

  • I am not what happen.

    I tried to build the basic example given on TI website , it also doesn't build.

    Permission is not the issue.

    I am now trying to update it .

    These are C files which  build is not able to find eventhough path is correct .

    i had added the file mannually also but same results.

     

  • Hi Rakesh,

    how have you verified the paths?

    Alternatively it is possible corruption.  Would you be willing to try a fresh clean installation?

    Best Regards,
    Lisa

  • In my view linked resource is empty.

    How to edit it as it is masked?

    Path variable looks good.

  • Hi  Lisa

    Please see the screen short resource link is empty.

    Is there a way to edit it.May be this is issue.

    Re-installing is last option as it takes lot of time due to those java issues.

  • Hi Rakesh,

    Do you have any linked files?   That window shows any linked files in the project.  Have a look at the wiki.   It shows you where to include non linked paths for added not linked files.   THis is in the compilers include options.

    Are you sure you have problems with a built in example?  

    Best Regards,

    LIsa

  • yes i am building a built in example .I am not sure what caused this but looks like i need to uninstall now both version 4 and 5 then re install just 5.

    Do you know which file i  should check to see if during build what all path build is going through.

     

  • Hi Rakesh,

    you should not need to check a file.   You simply need to be sure ccs can find all the files used in the project.  As stated in the wiki, for included files this is in the compilers include options.  For linked files this is in the linkers file search path.

    However built in examples should work as they are.  My recommendation.  Clear ccs out and do a full fresh v5.5 installation.  Go to Help->Welcome to CCS if you don't have the resource explorer open already and bring in an example using the resource explorer.

    Best Regards,

    Lisa

  • Hi Lisa,

    I re-install Version 4 and 5 but not luck.

    Is there any environment variable Eclipse or CCS used to check before build.

    I am not sure what path it is taking during the build.

    what is difference between internal build and external build ?

    Reason i am asking it is because on version 4 it build through internal build but i have not tested the image.

    I had downloaded Version 5.5 now and going to repeat all the process again .

    In meantime if you can let me know how it checks the .c files then i can go can check what path it is trying to take during build.

  • Hi Rakesh,

    I'm not sure I understand what you are doing.

    I would complete the fresh installation, go to help->welcome to ccs and try bring and example into a fresh workspace from there.  You should not need to do anything further.

    Best Regards

    Lisa

  • I already tested the examples and it also doesn't build.

    I get the same error

    ========================================

    C:/ti/ccsv5/tools/compiler/msp430_4.1.5/bin/cl430" -vmspx --abi=coffabi -g --include_path="C:/ti/ccsv5/ccs_base/msp430/include" --include_path="C:/ti/ccsv5/tools/compiler/msp430_4.1.5/include" --advice:power="all" --define=__MSP430FG4618__ --diag_warning=225 --display_error_number --diag_wrap=off --printf_support=minimal --preproc_with_compile --preproc_dependency="msp430xG46x_adc12_02.pp"  "../msp430xG46x_adc12_02.c"
    Fatal error #5: could not open source file "../msp430xG46x_adc12_02.c"
    1 fatal error detected in the compilation of "../msp430xG46x_adc12_02.c".
    Compilation terminated.

    >> Compilation failure
    gmake: *** [msp430xG46x_adc12_02.obj] Error 1

    ===========================================

    My question is if CCS is not able to locate the C file , it must be looking into some path during the build.How i can check what path is looking.

    When i load the project it loads the file properly.but when i build it says cannot open .c file.

    How it is looking into

    --preproc_dependency="msp430xG46x_adc12_02.pp"  "../msp430xG46x_adc12_02.c" .

    Where in the system i can check what is the path for "../msp430xG46x_adc12_02.c" . which it is not able to locate as file is in the project folder.

  • Hi Rakesh,

    it depends where you have MSPWare installed,  and I would check for anything like permissions or antivirus that might be blocking ccs.

    Mine is here:

    C:\ti\msp430\MSP430ware_1_40_00_24\examples\devices\4xx\MSP430FG461x_Code_Examples\C

    Best Regards,

    Lisa

  • Finally I understand what is going on here.

    Somehow My ccs is always looking for file from C:\  not from the path of project workspace.
    I have no idea why it is looking in C drive instead if looking in C:\Project\

    Some where in setting there should be a setting for PATH and that PATH is corrupted and it is not recovering on re-installation also.I need to find that place where that path is set to C instead if C:\Project\

    This is build issue .debugger works just fine and if .out file is there it works and refer file from c:\Project\

  • Hi Rakesh,

    ok, glad you got to the problem and are able to work around it.

    In the Project ->properties->general tab you should be able to inspect your build variables.

    Best Regards,

    Lisa

  • I was right in my analysis.It was the problem CCS or eclipse .It was  just looking into C drive instead of the project workspace.

    when i put the files in C drive it not only find the files but all the build files and object was also in C drive.

    Then i found real issues was in registry.

    It was really tough .

    I am not sure  CCS or Eclipse  who is responsible for it .

    but I have a recommendation that  when it build and it cannot go to that directory it should throw error to show  path which it is looking for.

    Since we don't know what causes registry to go corrupt it will be better if anyone else face this issue they will at least know what path it is trying to take.

    second recommendation is if how did CCS write Obj file or out outside the given path.It should never Happen.

    Please  forward this  request to design team to check if they cannot open directory mentioned in the project  path setting what  they do.

    Please review that path of error.