<?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: First impression with KDS 1.1.0 Can't Debug FRDM-K64F with OpenOCD/CMSIS-DAP in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348711#M1276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Took a break from KDS. Reload with 20140530_k20dx128_k64f_if_mbed.bin and worked with mbed for a while. &lt;/P&gt;&lt;P&gt;I restarted KDS and now OpenOCD is working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FRDM-K64F OpenOCD success.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45549i8B1F6732B44898C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="FRDM-K64F OpenOCD success.jpg" alt="FRDM-K64F OpenOCD success.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Aug 2014 22:23:53 GMT</pubDate>
    <dc:creator>schen</dc:creator>
    <dc:date>2014-08-10T22:23:53Z</dc:date>
    <item>
      <title>First impression with KDS 1.1.0 Can't Debug FRDM-K64F with OpenOCD/CMSIS-DAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348710#M1275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just installed KDS 1.1.0.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wrote a simple program using Processor Expert to blink an LED.&lt;/P&gt;&lt;P&gt;I tried an FRDM-KL25Z. It works with OpenOCD/CMSIS-DAP and OpenSDA/P&amp;amp;E GDB Server.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried an FRDM-K64F. Was able to get it to work with OpenOCD/Segger J-Link firmware but can't get it to go into debugger with OpenOCD/CMSIS-DAP.&lt;/P&gt;&lt;P&gt;I tried the latest firmware 20140530_k20dx128_k64f_if_mbed.bin. It displayed these messages in the Console then went silent:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="13928_13928.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119894i33DD65FB8CA177B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="13928_13928.jpg" alt="13928_13928.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="OpenOCD failed 2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45534i7F5A542B42EF14C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="OpenOCD failed 2.jpg" alt="OpenOCD failed 2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I manually switched to Debug perspective, I see this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="13929_13929.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119895i1EE74C1C470D6D5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="13929_13929.jpg" alt="13929_13929.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="OpenOCD failed 3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45535i0DD3678F6B3A0F9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="OpenOCD failed 3.jpg" alt="OpenOCD failed 3.jpg" /&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 tried an older version of the firmware: DEBUG_K64F_MBED_PEMICRO_V108.bin, which gave me the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="13927_13927.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119896iA867A395C64EBDC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="13927_13927.jpg" alt="13927_13927.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FRDM-K64F OpenOCD failed.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45536i5F44633CA18D3288/image-size/large?v=v2&amp;amp;px=999" role="button" title="FRDM-K64F OpenOCD failed.jpg" alt="FRDM-K64F OpenOCD failed.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tried DEBUG-FRDM-K64F_Pemicro_v108.bin firmware, it would not communicate with P&amp;amp;E GDB Server.&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="13931_13931.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119897i36812B2CAEF22575/image-size/large?v=v2&amp;amp;px=999" role="button" title="13931_13931.jpg" alt="13931_13931.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="OpenSDA failed.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45537iAC22396DDA54A45A/image-size/large?v=v2&amp;amp;px=999" role="button" title="OpenSDA failed.jpg" alt="OpenSDA failed.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; text-align: left;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Any suggestions are appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2014 16:59:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348710#M1275</guid>
      <dc:creator>schen</dc:creator>
      <dc:date>2014-08-10T16:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: First impression with KDS 1.1.0 Can't Debug FRDM-K64F with OpenOCD/CMSIS-DAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348711#M1276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Took a break from KDS. Reload with 20140530_k20dx128_k64f_if_mbed.bin and worked with mbed for a while. &lt;/P&gt;&lt;P&gt;I restarted KDS and now OpenOCD is working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FRDM-K64F OpenOCD success.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45549i8B1F6732B44898C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="FRDM-K64F OpenOCD success.jpg" alt="FRDM-K64F OpenOCD success.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2014 22:23:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348711#M1276</guid>
      <dc:creator>schen</dc:creator>
      <dc:date>2014-08-10T22:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: First impression with KDS 1.1.0 Can't Debug FRDM-K64F with OpenOCD/CMSIS-DAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348712#M1277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;if you have the mbed/CMSIS-DAP firmware loaded on your board, then you only can use it with a CMSIS-DAP aware connection (e.g. OpenOCD). So trying to connect to it with the P&amp;amp;E GDB server (or Segger GDB server too) will fail, so no surprise.&lt;/P&gt;&lt;P&gt;Your first screenshot indicates that you are not using the correct configuration kinetis.cfg file. See screenshot below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other thing I saw sometimes (and might be related to your issue): I have seen cases that if debug connection with CMSIS-DAP fails, it is necessary to re-power the board, and then it is ok. I have already filed a ticket about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45552i188C1F293BDFDA56/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 06:00:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348712#M1277</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-08-11T06:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: First impression with KDS 1.1.0 Can't Debug FRDM-K64F with OpenOCD/CMSIS-DAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348713#M1278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich,&lt;/P&gt;&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For FRDM-K64F, I have tried three firmwares:&lt;/P&gt;&lt;P&gt;1. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;mbed/CMSIS-DAP firmware&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;2. P&amp;amp;E OpenSDA with GDB Server&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;3. Segger J-Link&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only #3 gave me consistent success debug connection.&lt;/P&gt;&lt;P&gt;#2 GDB Server gave me E17925&amp;nbsp; error all the time.&lt;/P&gt;&lt;P&gt;#1 debug connection is touchy. The first time I set it up, it would not work as described above. I play with mbed, reset, and disconnect/reconnect USB and it worked sometimes but not all the time. I have yet to find the pattern.&amp;nbsp; I did read that k64.cfg is deprecated and tried kinetis.cfg but kinetis.cfg did not get me anywhere. I finally realized that I should replace&lt;/P&gt;&lt;P&gt;-f target/k64.cfg&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;-f kinetis.cfg&lt;/P&gt;&lt;P&gt;but I was using&lt;/P&gt;&lt;P&gt;-f target/kinetis.cfg&lt;/P&gt;&lt;P&gt;and that seemed to be the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could get my simple blinking LED program to work most of the time now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a program trying to use printf through virtual COM port following the directions from &lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2014/07/12/printf-for-the-frdm-k64f-board-and-kinetis-design-studio/#more-12504" title="http://mcuoneclipse.com/2014/07/12/printf-for-the-frdm-k64f-board-and-kinetis-design-studio/#more-12504"&gt;UART printf() for the FRDM-K64F Board and Kinetis Design Studio | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but I could not get the debugger launched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Console said "monitor halt" and the Debug window said&lt;/P&gt;&lt;P&gt;&amp;lt;terminated, exit value: -1&amp;gt;openocd&lt;/P&gt;&lt;P&gt;&amp;lt;terminated, exit value: 1&amp;gt;arm-none-eabi-gdb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would not be surprised I have some bugs in my code but without getting into the debugger, it is difficult to find the bugs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 12:42:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348713#M1278</guid>
      <dc:creator>schen</dc:creator>
      <dc:date>2014-08-11T12:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: First impression with KDS 1.1.0 Can't Debug FRDM-K64F with OpenOCD/CMSIS-DAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348714#M1279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;you really need to use&lt;/P&gt;&lt;P&gt;-f kinetis.cfg&lt;/P&gt;&lt;P&gt;otherwise I'm not surprised that you face problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another issue I have seen with OpenOCD and CMSIS-DAP (at least with the 0203 firmware from the mbed site): You need to power the board twice before it can be debugged. There is a note about this in the release notes, but probably not clear.&lt;/P&gt;&lt;P&gt;As basic steps:&lt;/P&gt;&lt;P&gt;a) plug in the FRDM-K64F board (using the OpenSDA plug).&lt;/P&gt;&lt;P&gt;b) unplug the board&lt;/P&gt;&lt;P&gt;c) plug in the baord again&lt;/P&gt;&lt;P&gt;d) now you can debug the board with OpenOCD/CMSIS-DAP&lt;/P&gt;&lt;P&gt;It is not clear to me why this is so strange, but that way I was able to debug the board as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll check if I have an example to post for printf().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 06:30:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348714#M1279</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-08-13T06:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: First impression with KDS 1.1.0 Can't Debug FRDM-K64F with OpenOCD/CMSIS-DAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348715#M1280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is my example for UART printf on the FRDM-K64F board and KDS V1.1.0.&lt;/P&gt;&lt;P&gt;It has debug configurations for OpenOCD, P&amp;amp;E and Segger.&lt;/P&gt;&lt;P&gt;I verfied that on my end, and that works fine. Make sure you are using a terminal program with the correct COM port to the virtual COM (OpenOCD, Segger or P&amp;amp;E).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The project is availabl !e on GitHub too: &lt;A href="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/KDS/FRDM-K64F120M/K64_PEx_Printf" title="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/KDS/FRDM-K64F120M/K64_PEx_Printf"&gt;mcuoneclipse/Examples/KDS/FRDM-K64F120M/K64_PEx_Printf at master · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 07:18:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348715#M1280</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-08-13T07:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: First impression with KDS 1.1.0 Can't Debug FRDM-K64F with OpenOCD/CMSIS-DAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348716#M1281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank, Erich. I would not have thought of powering the board twice is the solution but I did experience it. I ought to read the release note more carefully.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 13:05:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348716#M1281</guid>
      <dc:creator>schen</dc:creator>
      <dc:date>2014-08-13T13:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: First impression with KDS 1.1.0 Can't Debug FRDM-K64F with OpenOCD/CMSIS-DAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348717#M1282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is really helpful. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 13:06:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348717#M1282</guid>
      <dc:creator>schen</dc:creator>
      <dc:date>2014-08-13T13:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: First impression with KDS 1.1.0 Can't Debug FRDM-K64F with OpenOCD/CMSIS-DAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348718#M1283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric&lt;/P&gt;&lt;P&gt;I have experienced an error with OpenOCD. Please have a look my reply for details &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/430922"&gt;Debugging on FRDM-K64F on KDS 1.1.1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will appreciate your help in this regard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bilal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Nov 2014 05:45:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/First-impression-with-KDS-1-1-0-Can-t-Debug-FRDM-K64F-with/m-p/348718#M1283</guid>
      <dc:creator>bilalarain</dc:creator>
      <dc:date>2014-11-16T05:45:49Z</dc:date>
    </item>
  </channel>
</rss>

