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.
Tool/software: TI C/C++ Compiler
I am trying to turn on the code generation MISRA C check option for my Ti compiler from within Simulink, so that when I build my model the C2000 V6.4.6 Ti compiler runs the MISRA checks on the generated C code. Note that I know how to turn on the MISRA C checks for my models (which is a Simulink built-in feature and has nothing to do with Ti compiler); what I want to do is to turn on the MISRA checks on the generated C code when the Ti compiler is called during the build process.
I am not familiar with Simulink. But I can tell you the TI compiler option to enable MISRA checks is --check_misra. Please search for it in the C2000 compiler manual.
Thanks and regards,
TI C/C++ Compiler Forum ModeratorPlease click This Resolved My Issue on the best reply to your questionThe CCS Youtube Channel has short how-to videosThe Compiler Wiki answers most common questionsTrack an issue with SDOWP. Enter your bug id in the Search box.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
You can specify the compiler flags at:
Venkatesh Chilapur | MathWorks
In reply to venkatesh chilapur:
Hi - I have used '--check_misra=all' (which is also the same command used in CCS) in the 'C Compiler' section and that seems to have done the trick! Loads of MISRA warnings to keep me busy now! Thanks all for contributing.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.