PCLINT: µVISION ignores MISRA configuration file for PC-Lint
Information in this knowledgebase article applies to:
µVision Version 5.23 introduced a new PC-Lint configuration dialog which offers a selection of different MISRA rules.
After selecting one of the MISRA rules and after pressing the Setup button, the corresponding configuration file MISRA_C_xxxx_Config.lnt is copied into the project folder. By pressing the button Edit, this configuration file is opened in µVision and can be modified in Configuration Wizard mode.
Unfortunately, the copied and possibly adapted MISRA_C_xxxx_Config.lnt configuration file is not used by PC-Lint and any changes in this file are ignored.
µVision correctly copies the file MISRA_C_xxxx_Config.lnt into the project folder, but because of a wrong PC-Lint command file search order, the default configuration file in path C:\Keil_v5\UV4\Lint\MISRA_C_xxxx_Config.lnt is used by mistake.
Extract the attached ZIP file into the folder C:\Keil_v5\UV4 to replace the UV4.exe file. If you have installed MDK-ARM into a different folder, you need to adapt the path accordingly.
This problem was fixed in MDK version 5.24 and later. That version also includes a MISRA-C++ 2008 template for C++ projects, and a new warning level avoids conflicts of MISRA rules and CLANG diagnostic messages.
Request the files attached to this knowledgebase article.
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Wednesday, March 14, 2018
of your data.