Skip to main content
SGasp.1
Associate III
November 5, 2021
Solved

Static code tools analyzers

  • November 5, 2021
  • 6 replies
  • 9185 views

Hi community..

Which static code tool analyzer do you suggest for stm32 embedded c Projects ?

Thanks a lot

    This topic has been closed for replies.

    6 replies

    TDK
    Super User
    November 5, 2021

    Clang is decent if you spend a little bit of time customizing what you want. It's integrated in with my IDE and has definitely caught some things I wouldn't have noticed right away.

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    SGasp.1
    SGasp.1Author
    Associate III
    November 5, 2021

    Can I use it download it for stm32cube Ide ?

    What about misra coding standard ?

    Visitor II
    November 9, 2021

    I use MISRA-C-2004 and MISRA-C-1998. They are part of IAR Embedded Workbench for ARM.

    TDK
    Super User
    November 5, 2021

    "eclipse clang plugin" returns promising results.

    What about it?

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    SGasp.1
    SGasp.1Author
    Associate III
    November 5, 2021

    Where Can I find to install the clang plugin in stm32 cube ide ?

    Thanks

    0693W00000GWcSkQAL.png

    Pavel A.
    Super User
    November 7, 2021

    this is likely the "CppStyle" plugin. It is installable from the eclipse marketplace.

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    November 7, 2021
    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Piranha
    Principal III
    November 7, 2021

    Regardless of tools used, still the best analyzer is a developer's brain. Or at least it should be. As a counter example - the HAL/Cube team uses multiple coding standards, compilers, analyzers and runs a bunch of testing, but still deliver a completely broken bloatware. No tool can compensate developer's incompetence...

    SGasp.1
    SGasp.1Author
    Associate III
    November 8, 2021

    Dear Piranha... when you want to work in such sectors (automtotive, medical, aerospace..) running a static code analyzer is mandatory and required

    for obtaining the certification.

    Developing code is complex and errors can happen.

    Staying on the safe side is always suggested .