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.

Where is the complete "text" of the MISRA-C Checker rules ? And why is CCS shipped with an "incomplete" set of rules in an XML file ?

Other Parts Discussed in Thread: CCSTUDIO

With CCS 5.5.0,

“C:\<ccs installation directory>\eclipse\plugins\com.ti.ccstudio.buildDefinitions.MSP430_5.5.0.201308270800\resources\buildDefinitions\native\metadata”

contains two XML files ( “CHECK_MISRAMSP430_3.3.xml”, “CHECK_MISRAMSP430_3.4.xml”) with the incomplete (!) text of the MISRA-C rules - some rules are missing.

For example, the rules 6.2 and 6.4 are in the XML file, 6.3 not.

Questions to the community:

1. Is there in other editions of CCS a more complete list of MISRA-Rules shipped as XML?

As I don´t have "every" CCS installed, please look with Windows-Search for "MISRA" and so you will find the XML datafiles :-) so that you can check them for completeness.

2. How does CCS work,if the XML data is inomplete? Is this data "just for reference" ? And why are 2 similar if not equal files shipped ?

My motivation:

I just wanted to use the data to build an external table in a Wiki or Excel sheet, to add comments for a project which rules are already passed, and what code changes were done ect.

I might take the list from the official MISRA-C:2004 book, but... taking it from an tool-related source I thought is a better idea :-).. I am just interested in the rules the way the CCS checker handels,

- as the official MISRA-C:2004 book has other rule numbering and naming

- as all other rules ( MISRA-C++:2008,.MISRA-C:2012,...)  I must check manually, and I know that this does not work well..

Sincerely

Rolf

  • Rolf,

    I am not sure what the XML files are intended for, but if you are looking for the list of MISRA rules that are checked by the TI compiler, then there is a file included in the compiler tools directory called misra.txt that contains this list. However, I noticed that this file is missing from the msp430 compiler tools folder but it is there in the C2000 and ARM compiler tools folders.  I am pretty sure the same file would be applicable for MSP430 as well.

    If you installed CCS with support for either C2000 or ARM, you can find the file in \ccsv5\tools\compiler\arm_5.1.1 or \ccsv5\tools\compiler\c2000_6.2.0. If you do not have either installed let me know and I can send you the file.