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.

Issue with Predefined symbols



Hello Members, I have question about predefined symbol property of Code Composer studio. 

I have some symbols defined to STD_ON in predefined symbols. And when i Build my project i do see one symbol source code lines are still grayed out even after defining to STD_ON in predefined symbols. Rest all symbols are working. Issue is only with one symbol. I checked for that symbol in whole project and its not defined anywhere else.

Any idea why its still taking it as undefined ?

Thanks

  • Which version of CCS are you working with?

    Can you share the project that demonstrates the issue (if you have a small, simple one, this would be most ideal) or at least provide screenshots that show the editor view with code grayed out as well as complete set of compiler build options (as it appears on the CCS build console)?

  • Hello Aarti- Thank you for the response 

    Code composer Version am using is 5.2.1.00018 

    Please check below images. All other symbols which are defined are working fine and I defined in same way this symbol whihc is highlighted in below snapshot. But this is the only symbol which greys out always.

    Thanks

  • Can you try rebuilding the index (right-click on project, Index->Rebuild) and see if the issue remains? The other suggestion would be to give CCS 5.5 a try to verify if the issue is reproducible with that version. If the issue persists in 5.5 we would need a test project we can use to reproduce the issue and investigate further. If you do not wish to install CCS 5.5 right away, you can send us the project and we can test with both 5.2.1 and 5.5.

  • niveditha reddy annapu reddy said:

    Why only this specific single .c file is not taking project level predefined symbols definition.

    In general, all files within the project should take the project level options by default. So without further details about your specific project, I don't know the reason why it didn't for this particular source file. Does the file have a push-pin like icon in the Project Explorer view that denotes it has file specific options? If so, it could be that those options were removed at some point. If that is the case, then you can right-click on the file, go to Resource Configurations->Reset to Default to set the options back to default project settings.

    http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS#File_specific_options

  • Yeah that file had specific file options. After doing Reset to Default it worked.

    Thank you Aarti for your time