This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MISRA Support in Code Composer Studio v5



Hi All,

How do I enable the MISRA-C support in Code Composer Studio 5? I am using TMS570LS20SPGE board.

According to "ARM Optimizing C/C++ Compiler v4.9" User's Guide, you can enable/disable the MISRA-c rules by using the following option:

--check_misra={all|required|advisory|none|rulespec}

But I don't know where to enable it in the CCS.

Regards,

Dennis

  • I've already figured out how to manually add the MISRA-C support in Code Composer Studio.

    Select the project, right-click and select Properties->CCS Build->TMS470 Compiler. In the Command text box, add " --check_misra=all"

  • Dennis,

    In later versions of CCS and the compiler, there should be a whole section for MISRA support.

    I'm guess you are using an older version of the tools where the options are more buried inside and hard to navigate to.

    But your method also works just fine. If you know the option, you can manually add it to the field.

    Thanks

    ki