<?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>Kinetis Design StudioのトピックIssue to Beware of In Debugging OpenOCD</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Issue-to-Beware-of-In-Debugging-OpenOCD/m-p/352759#M1418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was having an issue in which, out of the blue, I could not debug my FRDM-K22F board with the P&amp;amp;E OpenOCD driver for anything, and it had been working flawlessly before. It would start to connect, then disconnect with no indication as to why it did so. You might see a message like:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initializing.&lt;/P&gt;&lt;P&gt;Target has been RESET and is active.&lt;/P&gt;&lt;P&gt;Disconnected from "127.0.0.1" via 127.0.0.1&lt;/P&gt;&lt;P&gt;Target Disconnected.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem turns out to be that if you create a breakpoint for code you later remove, and do not COMPLETELY delete the breakpoint (not just disable it) the debugger just crashes without any warning at startup and provides nothing to indicate why. I just about pulled my hair out figuring this one out. &lt;SPAN aria-label="Sad" class="emoticon_sad emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the answer on the P&amp;amp;E Forum: &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.pemicro.com%2Fforums%2Fforum.cfm%3Fforum_topic_id%3D4324" rel="nofollow" target="_blank"&gt;P&amp;amp;E Microcomputer Systems&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this tip saves someone some heartache! &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2015 22:10:54 GMT</pubDate>
    <dc:creator>tharonhall</dc:creator>
    <dc:date>2015-01-16T22:10:54Z</dc:date>
    <item>
      <title>Issue to Beware of In Debugging OpenOCD</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Issue-to-Beware-of-In-Debugging-OpenOCD/m-p/352759#M1418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was having an issue in which, out of the blue, I could not debug my FRDM-K22F board with the P&amp;amp;E OpenOCD driver for anything, and it had been working flawlessly before. It would start to connect, then disconnect with no indication as to why it did so. You might see a message like:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initializing.&lt;/P&gt;&lt;P&gt;Target has been RESET and is active.&lt;/P&gt;&lt;P&gt;Disconnected from "127.0.0.1" via 127.0.0.1&lt;/P&gt;&lt;P&gt;Target Disconnected.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem turns out to be that if you create a breakpoint for code you later remove, and do not COMPLETELY delete the breakpoint (not just disable it) the debugger just crashes without any warning at startup and provides nothing to indicate why. I just about pulled my hair out figuring this one out. &lt;SPAN aria-label="Sad" class="emoticon_sad emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the answer on the P&amp;amp;E Forum: &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.pemicro.com%2Fforums%2Fforum.cfm%3Fforum_topic_id%3D4324" rel="nofollow" target="_blank"&gt;P&amp;amp;E Microcomputer Systems&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this tip saves someone some heartache! &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 22:10:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Issue-to-Beware-of-In-Debugging-OpenOCD/m-p/352759#M1418</guid>
      <dc:creator>tharonhall</dc:creator>
      <dc:date>2015-01-16T22:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue to Beware of In Debugging OpenOCD</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Issue-to-Beware-of-In-Debugging-OpenOCD/m-p/352760#M1419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick follow up - Since posting this I have at least two more encounters with this behavior and fixed it by deleting the breakpoints completely. I think the problem may occur not just if the code is removed, but if there are changes near the break point code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 14:17:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Issue-to-Beware-of-In-Debugging-OpenOCD/m-p/352760#M1419</guid>
      <dc:creator>tharonhall</dc:creator>
      <dc:date>2015-01-20T14:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue to Beware of In Debugging OpenOCD</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Issue-to-Beware-of-In-Debugging-OpenOCD/m-p/352761#M1420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe this is a GDB bug (problem with breakpoints/watchpoints on non-existing code, see &lt;A href="http://mcuoneclipse.com/2014/10/11/failed-to-debug-with-gdb-breakpoints-or-expressions-on-non-existing-locations/" title="http://mcuoneclipse.com/2014/10/11/failed-to-debug-with-gdb-breakpoints-or-expressions-on-non-existing-locations/"&gt;Failed to Debug with GDB: Breakpoints or Expressions on non-existing Locations | MCU on Eclipse&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;So this is not a problem of OpenOCD, P&amp;amp;E or Segger (the problem occurs for all of them), but a problem of the GDB used in the GNU 4.8 version. GNU 4.9 (launchpad, see above article) does not show the problem for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 14:35:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Issue-to-Beware-of-In-Debugging-OpenOCD/m-p/352761#M1420</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-01-20T14:35:42Z</dc:date>
    </item>
  </channel>
</rss>

