Getting around MISRA Errors in IAR with KSDK Projects

Showing results for 
Search instead for 
Did you mean: 

Getting around MISRA Errors in IAR with KSDK Projects

NXP Employee
NXP Employee

The IAR library and example projects included in Kinetis Software Development Kit (KSDK) use IAR to check for MISRA compliance.  However, some IAR licenses, like their temporary evaluation license, do not allow the MISRA checks to run.  With those licenses, IAR will generate errors when these KSDK projects are built.  This post shows how to disable the MISRA checks in IAR to allow IAR to build the projects.


With a KSDK project or workspace open in IAR, use the IAR menu Project->Options.  Use the screenshot below to find the MISRA-C:2004 settings.



To disable the MISRA checking, first check the box to Enable MISRA-C.  Then clock the None button



Once the MISRA rules are unselected, uncheck the box Enable MISRA-C.  Then click the OK button to save these changes to the project.  Now the project will be built without the MISRA checks.  Remember to do this for every KSDK library and example project before building.


Labels (1)
Tags (2)
0 Replies