<?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: Question about SWD interface protocol with K64F in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574087#M34191</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 use J-Link Commander tool to read two FRDM-K64F boards MDM-AP IDR value, which is not same for each board.&lt;/P&gt;&lt;P&gt;If the JTAG interface and on board OpenSDA debugger tool works with new mounted K64 product, that means the debug interface without any problem.&lt;/P&gt;&lt;P&gt;Then customer also could try a complicated application, such as Ethernet to check if other features working as expected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&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>Tue, 09 Aug 2016 07:28:33 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2016-08-09T07:28:33Z</dc:date>
    <item>
      <title>Question about SWD interface protocol with K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574086#M34190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a question about SWD flash programming by using two different FRDMK64F boards, I use one of FRDMK64F board to verify my project but in some reason the MK64F chip is broken, so I bought a new MK64F chip to change it to the FRDMK64F board (named "board1"), and another FRDMK64F board used as backup solution (named "board2"). &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can not flash the FW code correctly by board1, and I checked the HW circuit was not shorted or damaged, so I checked the flash protocol with Logical Analyzer.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I found the difference in past steps. In step about read component ID register data, I got two different outcome:&lt;/P&gt;&lt;P&gt;"0x40030018"(board2) &amp;amp; "0x10150028"(board1).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="158028_158028.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122087i115E50946D260A54/image-size/large?v=v2&amp;amp;px=999" role="button" title="158028_158028.png" alt="158028_158028.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1695i4850FA1D851A4CC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;next step, I used JLINK debug tool to connect &amp;amp; flash board1 directly (not using the MK20DX chip on board1), the FW was flashed successfully and worked like the board2.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The final verify step, I using Kinetis to write a sample blinky code and debug it with openOCD, then the amazing thing was happen, the FW was worked successfully, too.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is someone know what point cause the different behavior?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the attached file is the capture data by Logical analyzer(saleae)&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-337640"&gt;board1_download_fw_FAIL.logicdata.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-337640"&gt;board2_download_fw_OK.logicdata.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-337640"&gt;fail.txt.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-337640"&gt;pass.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 03:55:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574086#M34190</guid>
      <dc:creator>hokins</dc:creator>
      <dc:date>2016-08-05T03:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SWD interface protocol with K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574087#M34191</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 use J-Link Commander tool to read two FRDM-K64F boards MDM-AP IDR value, which is not same for each board.&lt;/P&gt;&lt;P&gt;If the JTAG interface and on board OpenSDA debugger tool works with new mounted K64 product, that means the debug interface without any problem.&lt;/P&gt;&lt;P&gt;Then customer also could try a complicated application, such as Ethernet to check if other features working as expected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&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>Tue, 09 Aug 2016 07:28:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574087#M34191</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-08-09T07:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SWD interface protocol with K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574088#M34192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have answered yourself. I remember the same case, when I was playing with this.&lt;/P&gt;&lt;P&gt;The OpenSDA onboard programming FW (in K20) is tied to the device ID originally placed on board.&lt;/P&gt;&lt;P&gt;So if you replace the main device on the board, the OpenSDA will not work.&lt;/P&gt;&lt;P&gt;We have discussed with PEmicro and board manufacturing team and the reason is that they want to protect their business with stand-alone programming tools. (not allow to use the on-board OpenSDA as the external programming tool for other devices)&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 07:30:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574088#M34192</guid>
      <dc:creator>michael_galda</dc:creator>
      <dc:date>2016-08-10T07:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SWD interface protocol with K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574089#M34193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, so it means if I completed the development of my project on K64F board, then I already have a prototype hardware(not K64F), I need to using another debug tool (like JLINK or ULINK) to download FW directly, not using K20 mcu as fw download bridge.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 08:23:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574089#M34193</guid>
      <dc:creator>hokins</dc:creator>
      <dc:date>2016-08-10T08:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SWD interface protocol with K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574090#M34194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, exactly, this is the correct approach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 08:30:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574090#M34194</guid>
      <dc:creator>michael_galda</dc:creator>
      <dc:date>2016-08-10T08:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SWD interface protocol with K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574091#M34195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can load the &lt;A href="https://www.segger.com/opensda.html"&gt;Segger J-Link OpenSDA firmware&lt;/A&gt; on the Freedom board OpenSDA K20 chip, and I understand the Segger OpenSDA firmware isn't tied to the serial number of the Freedom board target MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you could gain even more freedom (no pun intended) by using the &lt;A href="https://developer.mbed.org/platforms/FRDM-K64F/"&gt;mbed K64F&lt;/A&gt; CMSIS-DAP &lt;A href="https://developer.mbed.org/handbook/Firmware-FRDM-K64F"&gt;OpenSDA firmware &lt;/A&gt;on the K20 chip instead, which unlike Segger and P&amp;amp;E's firmwares for OpenSDA, the mbed one is totally open and free -- you can use it to even debug other chips off-board if you install the 10-pin Cortex debug header.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 22:01:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574091#M34195</guid>
      <dc:creator>colin</dc:creator>
      <dc:date>2016-08-12T22:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Question about SWD interface protocol with K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574092#M34196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin, &lt;/P&gt;&lt;P&gt;I've tried to use the Segger J-Link OpenSDA firmware to trace &amp;amp; debug my target prototype &amp;amp; K64F board. And it simulated as J-link debug tool, too.&lt;/P&gt;&lt;P&gt;then I try it to flash fw to board1 &amp;amp; board2, It can't not complete the fw flashing.&lt;/P&gt;&lt;P&gt;then I checked the record of SWD output, the TRACE_SWD Pin &amp;amp; RST Pin trig some pulses then the fw flashing fail.&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/2324i9A3414BF4D27C054/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 04:15:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Question-about-SWD-interface-protocol-with-K64F/m-p/574092#M34196</guid>
      <dc:creator>hokins</dc:creator>
      <dc:date>2016-08-15T04:15:05Z</dc:date>
    </item>
  </channel>
</rss>

