Other Parts Discussed in Thread: C2000WARE
Is MISRA C 2012 support/plug-in available to Code Composer Studio?
If yes, please let me know the procedure to get this support/plug-in.
Thanks.
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.
Is MISRA C 2012 support/plug-in available to Code Composer Studio?
If yes, please let me know the procedure to get this support/plug-in.
Thanks.
Harshal,
Code Composer Studio (CCS) does not provide native support for MISRA C 2012 checking. As mentioned by Kier we used to have support for the 2004 standard but that is not present in our newer compilers.
There are commercial products available from ParaSoft, LDRA and others that are compatible with CCS and support MISRA C 2012 checking.
https://www.parasoft.com/products/parasoft-c-ctest/c-c-static-analysis/
https://ldra.com/products/ldrarules/
Regards,
John
A word of warning for LDRArules. Their CCS plug was written for version 6. Whether this ever worked at all I don't know but with CCS 10/11 the plug in has various issues with CCS environment variables, i.e. it cannot resolve them.
For example one might have the following include:
${FPU_FASTRTS_LIB_ROOT}/include
LDRArules cannot resolve this to:
C:\ti\c2000\C2000Ware_3_04_00_00\libraries\math\FPUfastRTS\c28\include
So it fails to compile a translation unit for analysis.
The only solution is to hardcode all your include paths in the CCS compiler options which loses all your portability from one C2000Ware version to the next.