Getting around MISRA Errors in IAR with KSDK Projects

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting around MISRA Errors in IAR with KSDK Projects

508 Views
dereksnell
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.

21384_21384.jpg1.jpg

 

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

21385_21385.jpg2.jpg

 

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.

21387_21387.jpg3.jpg

Labels (1)
Tags (2)
0 Replies