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.

CCS: CCS/TM4C123GH6PM



Tool/software: Code Composer Studio

I want to exclude tivaware and ti rtos files from the misra check can I do this in CCS V9 ?

Thank You

  • There are two levels of concern.  

    1. Building source files from software packages outside the main project (such as TivaWare and TI-RTOS)
    2. Using #include files from software packages outside the main project

    As to #1, you can disable MISRA checks for those files with the File Specific Options feature of CCS.

    As to #2, those header files must already build MISRA clean, or you can try something like this ...

    #pragma CHECK_MISRA("none")
    #include "problem_header_file.h"
    #pragma CHECK_MISRA("all")
    
    

    Please understand those header files may not have been tested that way, thus yet other problems may occur.

    Thanks and regards,

    -George