This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

segger embedded studio static code analysis

We are experiencing some problems with our code and suspect it is an incorrect formatted printf.

Unfortunately the static code analysis in segger embedded studio (4.52c) does not seem to work, e.g. compiling the following with  -Wall -Wextra will not spawn an error:


    float i = 42;

    printf("%d", i);
    printf("%s", (int)i);

I asked Segger but they say it is the specific gcc compiler version used by nordic.

Can you tell me how to enable static code checks, especially the printf format string checks?

Parents Reply Children
Related