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.

CCS5 fake compilation problems

I create some project for Piccolo device and work with CCS5. I use special compiler words such as "interrupt", "cregister" and etc. There are problem with project build. I have got "Finished building target: piccolo.out" message and no errors in Console window after building. But in Problems window I see a lot of errors. For example:

Description Resource Path Location Type
PINT type could not be resolved DSP2802x_PieVect.h /piccolo/include line 36 Semantic Error

because PINT is

typedef interrupt void(*PINT)(void);

If I remove "interrupt" word, project build is ok. But "interrupt" is needed to correctly work with interrupts. I think Code Analysis in Eclipse do not know TI "interrupt" extension of C language and generate a fake error. How to fix it?

  • Max Lashk said:
    I have got "Finished building target: piccolo.out" message and no errors in Console window after building. But in Problems window I see a lot of errors.

    Are they errors or just a warnings? If your executable was generated, they are likely just warnings.

  • Ki-Soo Lee said:
    Are they errors or just a warnings? If your executable was generated, they are likely just warnings.

    No. There are errors. Look "after building" screenshot.

     

    I post image as file, but it have posted as preview. I hope what you can enlarge it.

  • HI Max, 

    Your original analysis was correct. The static code analyzer in Eclipse does not understand some keywords. We will be adjusting this behaviour in upcoming milestone releases of CCSv5.1. You can disable this checking by right clicking on  a project ; then select properties; Expand C/C++ tab then expand Code Analysis and click on Launching; there should be two checkboxes that control when code analysis is executed. Uncheck both of them. Unfortunately, errors already present in problems view will not get cleaned up, thus you would need to select them and manually delete them. 

     

    martin

     

  • Now i try CCSv5.1. There are same "fake" errors on some keywords. Furthermore I can't find how to turn off Code Analysis in this version. There are no this item on project properties...

  • I have just installed CCS  Version: 5.1.0.09000 and I also found an issue with displaying of building problems but in my case the problem is not related to any key words.

    After building of my project I got some errors. I fixed some of them and built the project again but these errors remained in the Problems list. Also, the places in the source code where errors had been were marked even after the piece of code had been deleted and replaced with other code. The same situation was with warnings. When I fixed all errors .out file was created regardless this list of problems.

    I was disappointed with this issue because it makes debugging more difficult. Fortunately, after I had manually deleted all errors and warnings from the list it started working normally.

    Victor