<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Could not initialize cppcheck for project in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Could-not-initialize-cppcheck-for-project/m-p/2172219#M5712</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/71022"&gt;@rshipman&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'm afraid this is outside of NXP's support scope, since it is related to an Eclipse level plugin, rather than a MCUXpresso IDE issue.&lt;/P&gt;
&lt;P&gt;I recommend you take a look at the following links:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/MCUXpresso-IDE/Static-Code-Analysis-Tool-cppcheck-on-MCUXpresso-IDE/m-p/880557" target="_blank"&gt;Static Code Analysis Tool cppcheck on MCUXpresso IDE - NXP Community&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/kwin/cppcheclipse/issues/98" target="_blank"&gt;java.lang.NullPointerException: Could not initialize cppcheck for project lib-ltc · Issue #98 · kwin/cppcheclipse&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Edwin.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2025 19:09:20 GMT</pubDate>
    <dc:creator>EdwinHz</dc:creator>
    <dc:date>2025-09-18T19:09:20Z</dc:date>
    <item>
      <title>Could not initialize cppcheck for project</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Could-not-initialize-cppcheck-for-project/m-p/2172085#M5711</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've just tried to install the ccpcheck plugin etc and it refuses to run:&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;P&gt;Could not initialize cppcheck for project...&lt;/P&gt;&lt;P&gt;Here is the exception stack trace:&lt;BR /&gt;java.lang.NullPointerException: Cannot invoke "org.eclipse.core.runtime.IPath.toFile()" because the return value of "org.eclipse.cdt.core.settings.model.ACPathEntry.getLocation()" is null&lt;BR /&gt;at com.googlecode.cppcheclipse.ui.ToolchainSettings.getIncludes(ToolchainSettings.java:182)&lt;BR /&gt;at com.googlecode.cppcheclipse.ui.ToolchainSettings.getUserIncludes(ToolchainSettings.java:88)&lt;BR /&gt;at com.googlecode.cppcheclipse.core.Checker.&amp;lt;init&amp;gt;(Checker.java:81)&lt;BR /&gt;at com.googlecode.cppcheclipse.ui.Builder$ResourceVisitor.initChecker(Builder.java:164)&lt;BR /&gt;at com.googlecode.cppcheclipse.ui.Builder$ResourceVisitor.processFile(Builder.java:199)&lt;BR /&gt;at com.googlecode.cppcheclipse.ui.Builder$ResourceVisitor.visit(Builder.java:122)&lt;BR /&gt;at org.eclipse.core.internal.resources.Resource.lambda$1(Resource.java:154)&lt;BR /&gt;at org.eclipse.core.internal.resources.Resource.lambda$0(Resource.java:122)&lt;BR /&gt;at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)&lt;BR /&gt;at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:90)&lt;BR /&gt;at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:90)&lt;BR /&gt;at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:135)&lt;BR /&gt;at org.eclipse.core.internal.resources.Resource.accept(Resource.java:131)&lt;BR /&gt;at org.eclipse.core.internal.resources.Resource.accept(Resource.java:92)&lt;BR /&gt;at org.eclipse.core.internal.resources.Resource.accept(Resource.java:154)&lt;BR /&gt;at org.eclipse.core.internal.resources.Resource.accept(Resource.java:142)&lt;BR /&gt;at com.googlecode.cppcheclipse.ui.Builder.processResource(Builder.java:306)&lt;BR /&gt;at com.googlecode.cppcheclipse.ui.commands.RunCodeAnalysis$RunCodeAnalysisJob.runResource(RunCodeAnalysis.java:26)&lt;BR /&gt;at com.googlecode.cppcheclipse.ui.commands.ResourceSelectionJob.run(ResourceSelectionJob.java:44)&lt;BR /&gt;at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)&lt;BR /&gt;&lt;BR /&gt;Info:&lt;BR /&gt;MCUXpresso IDE v24.12 [Build 148] [2025-01-10]&lt;/P&gt;&lt;P&gt;I downloaded Cppcheck 2.18 from here: &lt;A href="https://cppcheck.sourceforge.io/" target="_blank"&gt;https://cppcheck.sourceforge.io/&lt;/A&gt;&lt;BR /&gt;I followed these instructions: &lt;A href="https://github.com/cppchecksolutions/cppcheclipse/wiki/Installation" target="_blank"&gt;https://github.com/cppchecksolutions/cppcheclipse/wiki/Installation&lt;/A&gt;&lt;BR /&gt;I added cppcheck path to PATH environment variable and restarted MCUXpresso.&lt;/P&gt;&lt;P&gt;Any ideas please?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 14:44:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Could-not-initialize-cppcheck-for-project/m-p/2172085#M5711</guid>
      <dc:creator>rshipman</dc:creator>
      <dc:date>2025-09-18T14:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Could not initialize cppcheck for project</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Could-not-initialize-cppcheck-for-project/m-p/2172219#M5712</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/71022"&gt;@rshipman&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'm afraid this is outside of NXP's support scope, since it is related to an Eclipse level plugin, rather than a MCUXpresso IDE issue.&lt;/P&gt;
&lt;P&gt;I recommend you take a look at the following links:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/MCUXpresso-IDE/Static-Code-Analysis-Tool-cppcheck-on-MCUXpresso-IDE/m-p/880557" target="_blank"&gt;Static Code Analysis Tool cppcheck on MCUXpresso IDE - NXP Community&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/kwin/cppcheclipse/issues/98" target="_blank"&gt;java.lang.NullPointerException: Could not initialize cppcheck for project lib-ltc · Issue #98 · kwin/cppcheclipse&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Edwin.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 19:09:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Could-not-initialize-cppcheck-for-project/m-p/2172219#M5712</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2025-09-18T19:09:20Z</dc:date>
    </item>
  </channel>
</rss>

