<?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 Invalid SWDIO in Keil MDK with CMSIS-DAP in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Invalid-SWDIO-in-Keil-MDK-with-CMSIS-DAP/m-p/385119#M20694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Invalid_SWDIO.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46680iB81EE5E8819054F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Invalid_SWDIO.PNG.png" alt="Invalid_SWDIO.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I love to use on board debugger of FRDM to debug off-board microcontroller. Today I found an issue of &lt;STRONG&gt;WRONG SWDIO&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used to MDK since it can be used to read chip IDCODE in debugger configuration Window. The target is M0+, MKL25Z. I have multiple boards. Some boards can be read as regular as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWDIO: 0x0BC11477 for MKL25Z128 (M0+)&lt;/P&gt;&lt;P&gt;SWDIO:0x2BA01477 for MK20DX128 (M4)&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: verdana, geneva;"&gt;0BC11477-&amp;gt;00001011110000010001010001110111&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some other boards will be read as:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;STRONG style="font-size: 12pt;"&gt;FC0E001B-&amp;gt;11111100000011100000000000011011&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;STRONG style="font-size: 12pt;"&gt;05E08A3B-&amp;gt;00000101111000001000101000111011&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to wrong IDCODE, MDK refuses to download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it is hardware related issue. Is there anything I can do? Shorter cable? Layout issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Oct 2014 04:26:56 GMT</pubDate>
    <dc:creator>kai_liu</dc:creator>
    <dc:date>2014-10-11T04:26:56Z</dc:date>
    <item>
      <title>Invalid SWDIO in Keil MDK with CMSIS-DAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Invalid-SWDIO-in-Keil-MDK-with-CMSIS-DAP/m-p/385119#M20694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Invalid_SWDIO.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46680iB81EE5E8819054F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Invalid_SWDIO.PNG.png" alt="Invalid_SWDIO.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I love to use on board debugger of FRDM to debug off-board microcontroller. Today I found an issue of &lt;STRONG&gt;WRONG SWDIO&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used to MDK since it can be used to read chip IDCODE in debugger configuration Window. The target is M0+, MKL25Z. I have multiple boards. Some boards can be read as regular as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWDIO: 0x0BC11477 for MKL25Z128 (M0+)&lt;/P&gt;&lt;P&gt;SWDIO:0x2BA01477 for MK20DX128 (M4)&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: verdana, geneva;"&gt;0BC11477-&amp;gt;00001011110000010001010001110111&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some other boards will be read as:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;STRONG style="font-size: 12pt;"&gt;FC0E001B-&amp;gt;11111100000011100000000000011011&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;STRONG style="font-size: 12pt;"&gt;05E08A3B-&amp;gt;00000101111000001000101000111011&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to wrong IDCODE, MDK refuses to download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it is hardware related issue. Is there anything I can do? Shorter cable? Layout issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Oct 2014 04:26:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Invalid-SWDIO-in-Keil-MDK-with-CMSIS-DAP/m-p/385119#M20694</guid>
      <dc:creator>kai_liu</dc:creator>
      <dc:date>2014-10-11T04:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid SWDIO in Keil MDK with CMSIS-DAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Invalid-SWDIO-in-Keil-MDK-with-CMSIS-DAP/m-p/385120#M20695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;God only helps peple who helps himself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The target board is powered by USB. It must have small Magnetic beads on both 5V and GND. Due to PCB layout issue, I use 0R to replace them. As a result, the noise from PC comes through whole ground and power supply, I believe noise in ground is more important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I add a choke coil (TDK from SONY DC) on USB cable. It works on every tested board, although I haven't test all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here comes new question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before adding choke coil, some boards always failed with wrong IDCODE. After adding, then every tested board works. Even I removed the choke, they still work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I bought a MKL25Z board from the market, which has dedicated SWD port. The debugger always reads out wrong IDCODE from SWD port. Now I connect debugger to dedicated port, it works fine. Switching back to SWD, it works again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maybe it is not 100% noise issue, improper connection could be another one. If I adjust the jumper wires, sometimes it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it implicts that the device should be reviewed by a prefessional hardware engineer. I am a software engineer who is trying to make own board. :smileyplain:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 00:16:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Invalid-SWDIO-in-Keil-MDK-with-CMSIS-DAP/m-p/385120#M20695</guid>
      <dc:creator>kai_liu</dc:creator>
      <dc:date>2014-10-15T00:16:52Z</dc:date>
    </item>
  </channel>
</rss>

