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/TMS320F28027F: Warning when MISRA-C is enable

Part Number: TMS320F28027F
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

Hi, I have created simple project and its working fine. But for industry standard like MISRA-C , when i enable that option for my project it is showing lots of warnings in problems window.

And most of them are from header files provided in ControlSUITE . So my question is can i use same header files for our final  project  OR we have to create our own headers file . How to remove these warnings, presents in header files.

  • Hello,
    I am writing to let you know that a C2000 team member has been assigned to this post and should be answering shortly.

    Regards
    Baskaran
  • Hello,

    I am assuming you're using the TI compiler's MISRA-C checking abilities. Correct me if that's not the case.

    At this time we don't have any plans to update the header files ourselves to make them MISRA-C compliant. You could edit them to add #pragmas or compiler options to disable MISRA-C checks on a file-by-file basis. There are some details in the MISRA-C section in the compiler User Guide.

    downloads.ti.com/.../index.html

    Whitney
  • Yes , I am using TI compiler's MISRA-C (C-2004)checking .
    That is ok . I will add/modify header file to make it as per MISRA-C standard . Could you suggest me what exactly should be modified like which section of header file , data types , type conversion... etc

    Thanks and Regards
    Indrajit
  • Since I've never tried to remove all the MISRA violations from our header files, I really don't know exactly what all will need to be changed. The warnings should tell you what you need to do. If you want advice on any specific warnings that you're having trouble with, I can help with that.

    Whitney