Skip to main content
jg_spitfire
Senior
September 6, 2022
Question

tool to check MISRA C compliance?

  • September 6, 2022
  • 6 replies
  • 4755 views

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

6 replies

Semer CHERNI
ST Employee
September 12, 2022

Hello @jg_spitfire​ 

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

Kind regards,

Semer.

Javier1
Principal
September 12, 2022
hit me up in https://www.linkedin.com/in/javiermuñoz/
Associate II
September 24, 2024

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

Pavel A.
Super User
September 24, 2024

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

 

Associate II
November 5, 2024

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

Associate II
November 6, 2024

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

 

CTapp.1
Senior III
March 26, 2025

You could try contacting the LDRA support team (using the "Contact LDRA Support" from the "Help" menu.

Your LDRA version may be different, but I've got this working in the past when installing a TLP, which places the .jar files in:

"C:\ST\STM32CubeIDE_1.17.0\STM32CubeIDE\plugins"

 

All posts are made in a personal capacityMISRA C++ ChairMISRA C WG MemberDirector The MISRA Consortium Limited (TMCL)