<?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中的主题 Re: KDS debug sessions do not terminate</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-debug-sessions-do-not-terminate/m-p/407952#M2876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a file specifically in .metadata/ that you are suggesting I remove?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed the entire .metadata/ directory and this did not fix the issue, but of course for this test KDS example, the .metadata is what remembers that I am testing with an import of the flash demo application (along with importing the K22F51212 platform lib).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I delete the .metadata and relaunch of course it works the first time (just as it works when restarting KDS), but still has the issue when trying to terminate the debug session to start a new one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Sep 2015 16:13:29 GMT</pubDate>
    <dc:creator>sjbrech</dc:creator>
    <dc:date>2015-09-25T16:13:29Z</dc:date>
    <item>
      <title>KDS debug sessions do not terminate</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-debug-sessions-do-not-terminate/m-p/407950#M2874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running KDS in Linux and can download and debug fine on a frdmk22f, but when I try to terminate the debug session (by clicking Terminate), the debug session does not terminate.&amp;nbsp; I can not start another debug session unless I close KDS and start it again.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;KDS 3.0&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;KSDK 1.2 &lt;/LI&gt;&lt;LI&gt;K22 Freedom Board&lt;/LI&gt;&lt;LI&gt;Linux (Fedora 21)&amp;nbsp; uname -a:&amp;nbsp; Linux f21-arm 3.17.4-301.fc21.x86_64 #1 SMP Thu Nov 27 19:09:10 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux&lt;/LI&gt;&lt;LI&gt;(Same issue occurred when I tried this on Windows 7).&lt;/LI&gt;&lt;LI&gt;Segger JLink&lt;/LI&gt;&lt;/UL&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see this running my code, but I ran one of the examples (flash demo) included in the SDK and it also occurs.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The terminate seems to stop the gdb sessions just fine&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While Debug Session is running:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[sbrecheisen@f21-arm ~]$ ps -ef | grep -i gdb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sbreche+&amp;nbsp; 4000&amp;nbsp; 3957&amp;nbsp; 0 10:21 pts/1&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:03 /opt/Freescale/KDS_3.0.0/eclipse/../segger/JLinkGDBServerCL -if swd -device MK22FN512xxx12 -endian little -speed 30 -port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -s&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sbreche+&amp;nbsp; 4020&amp;nbsp; 3957&amp;nbsp; 0 10:21 pts/1&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 arm-none-eabi-gdb --interpreter=mi2 --nx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sbreche+&amp;nbsp; 4060&amp;nbsp; 3625&amp;nbsp; 0 10:27 pts/7&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 grep --color=auto -i gdb&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;After Terminate is initiated:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[sbrecheisen@f21-arm ~]$ ps -ef | grep -i gdb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sbreche+&amp;nbsp; 4086&amp;nbsp; 3625&amp;nbsp; 0 10:29 pts/7&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 grep --color=auto -i gdb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[sbrecheisen@f21-arm ~]$&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KDS doesn't really give any information about why the terminate fails in the console, but I am attaching the output that I see in the terminal where I launched KDS.&lt;/P&gt;&lt;P&gt;Attachment: "terminate_debug_errors".&lt;/P&gt;&lt;P&gt;If I go back to the C/C++ perspective and attempt to start a new debug session, I get the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="79362_79362.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120655iE60B1412247F5ECB/image-size/large?v=v2&amp;amp;px=999" role="button" title="79362_79362.png" alt="79362_79362.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_18.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57496i860466E0BB7A329B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_18.png" alt="pastedImage_18.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know if it is related, but I also always see the following error when I first start my debug session.&amp;nbsp; But I can still debug just fine, other than the termination issue.&amp;nbsp; I also attached the output seen in the terminal where I initially launch the debug session&amp;nbsp; (), although they may not matter.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attachment: "initial_debug_errors"&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="79240_79240.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120656i1FCE7C7351F8E59B/image-size/large?v=v2&amp;amp;px=999" role="button" title="79240_79240.png" alt="79240_79240.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57451iB3D212CF8A821912/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional attempt to terminate debug session&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="79361_79361.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120657iF15A576A01962883/image-size/large?v=v2&amp;amp;px=999" role="button" title="79361_79361.png" alt="79361_79361.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57383i557591BC9BBBD449/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SemihostingProcess.destroy() Thread[Worker-19,5,main] Thread[Semihosting and SWV fake process,1,]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SemihostingProcess.destroy() after interrupt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SemihostingProcess.destroy() before shutdownInput&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SemihostingProcess.destroy() return&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-339116"&gt;terminate_debug_errors.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-339116"&gt;initial_debug_errors.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 15:41:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-debug-sessions-do-not-terminate/m-p/407950#M2874</guid>
      <dc:creator>sjbrech</dc:creator>
      <dc:date>2015-09-24T15:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: KDS debug sessions do not terminate</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-debug-sessions-do-not-terminate/m-p/407951#M2875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if the problem is because of the old associations.&lt;/P&gt;&lt;P&gt;please remove .metadata folder in your current workspace then restart your project again, how does it work then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 06:20:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-debug-sessions-do-not-terminate/m-p/407951#M2875</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-09-25T06:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: KDS debug sessions do not terminate</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-debug-sessions-do-not-terminate/m-p/407952#M2876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a file specifically in .metadata/ that you are suggesting I remove?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed the entire .metadata/ directory and this did not fix the issue, but of course for this test KDS example, the .metadata is what remembers that I am testing with an import of the flash demo application (along with importing the K22F51212 platform lib).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I delete the .metadata and relaunch of course it works the first time (just as it works when restarting KDS), but still has the issue when trying to terminate the debug session to start a new one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 16:13:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-debug-sessions-do-not-terminate/m-p/407952#M2876</guid>
      <dc:creator>sjbrech</dc:creator>
      <dc:date>2015-09-25T16:13:29Z</dc:date>
    </item>
  </channel>
</rss>

