Tool/software: TI C/C++ Compiler
Hi,
Version Info
CCS Version: 6.2.0.00050
Compiler Version: TI ARM v.16.9.1LTS
XDCTools Version: 3.32.1.22
TI-RTOS for CC13xx and CC26xx Version: 2.21.0.06
Background
I am attempting to use MISRA-C:2004 rule checking with a TI-RTOS based project. My primary interest is ensuring the application code is passing checks and not any TI-RTOS code. Presently I am attempting to do this using '#pragma CHECK_MISRA("none")' and '#pragma RESET_MISRA("all")' around all includes of TI-RTOS files. Presently it would appear as if this #pragma is not being recognized.
Steps Taken
- Created a new CC1350LaunchPad TI-RTOS project
- File -> New -> CCS Project -> Target: CC1350F128, Name: misra, Project templates and examples -> TI-RTOS Examples -> CC1350 LaunchPad -> Driver Examples -> Empty Examples -> Empty Project -> 'Finish'
- Enable all MISRA-C:2004 checks
- Project properties -> Build -> ARM Compiler -> Advanced Options -> MISRA-C:2004 -> 'All'
- Modify empty.c to check 'none' MISRA-C:2004
- Line 1:
#pragma CHECK_MISRA("none")
Question
Is it still possible to utilize the MISRA pragams with a TI-RTOS project or is there another approach to "exclude" MISRA checking outside of application code?
Thank you for any help or insight!
Best Regards,
Mark-