<?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: Debugging with LPC-Link2 hangs intermittently in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debugging-with-LPC-Link2-hangs-intermittently/m-p/1166069#M6208</link>
    <description>&lt;P&gt;Hi, I have exactly the same issue with standard development kit QN9090-DK6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2020 12:41:56 GMT</pubDate>
    <dc:creator>MikeCalm</dc:creator>
    <dc:date>2020-10-12T12:41:56Z</dc:date>
    <item>
      <title>Debugging with LPC-Link2 hangs intermittently</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debugging-with-LPC-Link2-hangs-intermittently/m-p/1165331#M6194</link>
      <description>&lt;P&gt;I have a custom board with an iMXRT1064. I'm using the LPC-Link2 to debug over the SWD port, I'm able to successfully run the debugger, step through the program, etc with MCUExpresso. However, if I run debugger long enough, it loses the connection to the MCU. Here is my test code:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;int main(void) {
    customInit();
    int loop=0;
    while(true) {
        int result = doSomething();
        printf("Got result of %d on loop %d\r\n",result,loop);
        toggleLED();
        loop++;
    }    
}&lt;/LI-CODE&gt;&lt;P&gt;Sometimes my loop runs for tens of thousands on iterations. But eventually my program and my debugging connection crash. The LED does not toggle, I no longer get print lines to the console and in MCUExpresso, when I try to pause or stop the debugging, these errors pop up:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failed to execute MI command:
-interpretor-exec console kill
Error message from debugger back end:
Can't kill process&lt;/LI-CODE&gt;&lt;P&gt;and&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Target reported errors (click 'cancel' to terminal session)
Reason:
  19: Could not stop execution from running
  Wire ACK Fault in DAP access
  Debugging context: test_code LinkServer Debug
&lt;/LI-CODE&gt;&lt;P&gt;If I run the program without debugging (just reboot since debugger writes to the flash), the program never crashes and the LED always toggles.&amp;nbsp; Sometimes restarting MCUExpresso and disconnecting and reconnecting the LPC-Link2 seems to help get the code to run longer, and some tweaks to the code in doSomething() seems to make the crashes more or less frequent, but whenever I narrow in on something, it changes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be going on and how I can troubleshoot and fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 16:24:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debugging-with-LPC-Link2-hangs-intermittently/m-p/1165331#M6194</guid>
      <dc:creator>bennxp</dc:creator>
      <dc:date>2020-10-09T16:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging with LPC-Link2 hangs intermittently</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debugging-with-LPC-Link2-hangs-intermittently/m-p/1166069#M6208</link>
      <description>&lt;P&gt;Hi, I have exactly the same issue with standard development kit QN9090-DK6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 12:41:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debugging-with-LPC-Link2-hangs-intermittently/m-p/1166069#M6208</guid>
      <dc:creator>MikeCalm</dc:creator>
      <dc:date>2020-10-12T12:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging with LPC-Link2 hangs intermittently</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debugging-with-LPC-Link2-hangs-intermittently/m-p/1167694#M6223</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/87774"&gt;@bennxp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Could you follow this guide to reflash the LPC debugger?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Alexis Andalon&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 20:56:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debugging-with-LPC-Link2-hangs-intermittently/m-p/1167694#M6223</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-10-14T20:56:02Z</dc:date>
    </item>
  </channel>
</rss>

