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.

Invalid project path

Other Parts Discussed in Thread: CCSTUDIO, SFRA

Hello,

I am getting warning "Invalid project path" since I have changed folder's names in my project.

How can I get rid of them?

I am sure that I have deleted old paths from compiler's include search path and there aren't any relative paths which should caused such a problem.
Moreover, I still see old paths in project explorer <project name>/includes


Jozef

  • Hello Jozef,

    Can you copy&paste all the messages in the build console to a file and post it to this thread? 

    Does the project have any files with file specific options?

    If possible, please also post the three .*project files in the project folder.

    Thanks

    ki

  • BuildConsole.txt

    Hi,

    Attached is required file.

    J.

  • Thank you for the attached file. It looks like the project builds fine and I don't see any invalid paths referenced.

    Can you provide the three .*project files in the project folder?

    Thanks

    ki

  • project..zip

    Hi 

    I put all three files into zip.  Are you looking for something specific inside those files?

    J.

  • Thanks. When I look in .cproject, I see the below at lines 312-334:

    <option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_20.2.compilerID.INCLUDE_PATH.1308452204" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_20.2.compilerID.INCLUDE_PATH" valueType="includePath">
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/externalFiles}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/device/TI files/headers/include}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/device/FlashApi}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/device/FlashApi/include/FlashAPI}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/Utils}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/Application/Communications}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/ComplexDrivers}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/device/SFO}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/device/sfra}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/device/TI files/driverlib/inc}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/device/TI files/driverlib}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/device/TI files/include}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/device/TI files/source}"/>
    <listOptionValue builtIn="false" value="${PROJECT_ROOT}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/Application}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/HW_Config}"/>
    <listOptionValue builtIn="false" value="${PROJECT_ROOT}/device"/>
    <listOptionValue builtIn="false" value="${CG_TOOL_ROOT}/include"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/HW_Config/Diagnostic}"/>
    <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/device/TI files/diagnostic/include}"/>
    <listOptionValue builtIn="false" value="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_20.2.3.LTS/include"/>
    </option>

    It looks like there are some paths here that are not showing up in the project properties GUI. If I remove the invalid path from the .cproject file and reopen it in CCS, it seems to remove it from the "Include" folder in the Project Explorer. I'm not sure why there is some synch issue between the GUI and the file. I will need to investigate more.

  • Hi Ki, 

    Thanks for your answer.
    I have deleted some lines and I am not getting warnings anymore. 
    Do you think that it will be possible to fix the problem using CCS GUI as well or it is kind a bug and need to be resolved in future release? 

    J.

  • Do you think that it will be possible to fix the problem using CCS GUI as well or it is kind a bug and need to be resolved in future release? 

    I am waiting to hear back from engineering regarding this. As soon as I have any updates, I will let you know.

  • Hi Jozef,

    Could you please let us know what build version of CCS you are using?  You can find the version in Help > About dialog.

    It looks like the only difference between old and new paths is the lettercase in one of the folder names.  But I cannot reproduce this issue in the latest CCS v11.1.0.

    Thanks,

    Baltasar

  • Hi Jozef,

    Update: please ignore my previous message - I re-read your post more carefully, and I *am* able to reproduce the same behaviour using the project files that you've attached.

    The confusion is caused by the fact that your CPU1_FLASH build-configuration also overrides the compiler include-path on the <project>/externalFiles/ directory.  So, for that build-configuration, the project-scope compiler include-path properly references the directories in <project>/Device/ subfolder, but it also overrides the include-path on the <project>/externalFiles/ directory, where it incorrectly references the lower-case <project>/device/ subfolder.

    You can fix your project by right-clicking on the <project>/externalFiles/ directory, opening Properties dialog, and adjusting the include paths there.

    Thanks,

    Baltasar 

  • Hi Baltasar,
    Thank you for your advise. It works.

    J.