cancel
Showing results for 
Search instead for 
Did you mean: 

tool to check MISRA C compliance?

jg_spitfire
Senior

Hi, I am using cubeide and I would like to enable MISRA C checking in order to develop a more robust code, thanks

7 REPLIES 7
Semer CHERNI
ST Employee

Hello @jg_spitfire​ 

Unfortunately to perform such checking on your code you could rely on third-party tools as.

Kind regards,

Semer.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Javier1
Principal

check out PC Lint

https://community.st.com/s/question/0D53W00001FlwSvSAJ/how-to-import-an-external-tools-configuration

we dont need to firmware by ourselves, lets talk
Kolkentu
Associate II

Hello.

I am interested in performing MISRA C checks on projects created in CubeIDE, as other IDEs (uVision, Eclipse, etc.) do, incorporating third-party tools (PC-Lint, LDRA, etc.).

Is it possible to incorporate PC-Lint, cppcheck, etc. into CubeIDE?

Thanks

Of course, yes. CubeIDE is based on Eclipse CDT, so follow instructions for Eclipse CDT.

 

Kolkentu
Associate II

Hi.

I tried to install LDRA_eclipse_plugin. The instructions say:

 

"Move the two files: “com.ldra.toolsuite.activeproject_X.X.X.jar" "com.ldra.toolsuite_X.X.X.jar" into the “dropins” folder which can be found within your eclipse installation directory. The next time Eclipse is restarted the plug-in will be activated and ready to use".

 

But there is no dropins folder in STM32CubeIDE. I created the dropins folder in the following path, and left both files in the folder, but it doesn't work: C:\ST\STM32CubeIDE_1.14.1\STM32CubeIDE\dropins

I also tried the help/installnew software option, without any result.

 

Can anyone help me?

 

Thanks

Hello.

The path "C:\ST\STM32CubeIDE_1.14.1\dropins" does not work.
The path "C:\ST\STM32CubeIDE_1.14.1\STM32CubeIDE\dropins" does not work.
The path "C:\ST\STM32CubeIDE_1.14.1\STM32CubeIDE\dropins\eclipse\features\plugins" does not work.

On the other hand, I have performed a test with another IDE, Codewarrior, based on Eclipse. In this case there is an empty eclipse/dropins folder, and when dropping the two files, the plugin works:
C:\Freescale\CW MCU v11.0\eclipse\dropins

The plugin is fine, and the problem is the IDE.

In the STM32CubeIDE installation there is no folder called eclipse/plugin. Could this be the problem, and is there any additional configuration needed in STM32CubeIDE?

 

Thanks