AnsweredAssumed Answered

Static and Dynamic analysis tools

Question asked by yalamanda dosakayala on Mar 8, 2018
Latest reply on Mar 8, 2018 by AvaTar

Hi STM community,  I want to run valgrind and lint as part of static and dynamic code analysis.

 

I tried to run valgrind option in system work bench IDE , But it is giving the following error

 

valgrind: failed to start tool 'memcheck' for platform 'arm-linux': No such file or directory

 

is there anyway we can fix this issue. I tried one way of fixing by exporting valgrind library path as suggested someone in google.

 

And regarding the static analysis , I am checking with MISRA with PC-LINT setup, but it is giving errors at  standard header files like

 

"Unable to determine type definition
    of intptr_t"

 

So it requires compiler specific option file .

 

If any such file is available for fixing this issue.

 

Or any way we can run misra on stm code.

Outcomes