Code analysis doing nothing?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code analysis doing nothing?

Jump to solution
1,346 Views
martinfierz
Contributor II

Dear community,

I am using MCUxpresso 10.3.1 (2233), and I would like to use the integrated code analysis. However, I must be missing something as it's never doing anything. I am using the project explorer window to right-click on a source file (e.g. main.c) and choosing "Run C/C++ Code Analysis" from the popup menu. Then nothing happens. Can somebody tell me what I'm missing?

thx in advance

  Martin

1 Solution
1,252 Views
BlackNight
NXP Employee
NXP Employee

Hi Martin,

Check if you have enabled Code Analysis (see Free Static Code Analysis with Eclipse | MCU on Eclipse ).

Check the properties of your project: usually it uses a workspace setting:

pastedImage_3.png

In that setting, enable the items you want to have checked.

I hope this helps,

Erich

View solution in original post

2 Replies
1,252 Views
martinfierz
Contributor II

Hi Erich,

thanks - that helped! I didn't realize I had to first enable code analysis settings.

(I would have expected the code analysis menu command to at least display a warning/tip that I should enable it somewhere)

best regards

  Martin

0 Kudos
1,253 Views
BlackNight
NXP Employee
NXP Employee

Hi Martin,

Check if you have enabled Code Analysis (see Free Static Code Analysis with Eclipse | MCU on Eclipse ).

Check the properties of your project: usually it uses a workspace setting:

pastedImage_3.png

In that setting, enable the items you want to have checked.

I hope this helps,

Erich