<?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 MicrocontrollersのトピックRe: PE multilink JTAG/BDM Kinetis programming issue</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258164#M7741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge&lt;/P&gt;&lt;P&gt;I Have replaced the 1k with 4.7K at reset circuit and have also connected the 10k pullup at pin no 21. before trying with the new uc I wanted to ask you one thing ,in the following image there is an option for JTAG and cJTAG /SWD I tried both but it didnt worked.. which one is recommended?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42470i1CD610464B2CEEB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also while flash programming there is an option to choose the configuration file, which one is recommended ? I tried with the default configuration file then later I tried with all available configuration file for K20DX128.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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/42471iC2A2803FBB4E199B/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&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 03:35:32 GMT</pubDate>
    <dc:creator>Amit_Kumar1</dc:creator>
    <dc:date>2014-01-29T03:35:32Z</dc:date>
    <item>
      <title>PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258156#M7733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to program K20 custom board but it is showing an error.&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/41743i9946E46354D95F34/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;after clicking yes,&amp;nbsp; the same msg appear and again I click yes then following error comes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13145iE3CC1D97AF3738FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these two error msg comes after one another and it doesn't program. Kindly look into the matter initially I had the same issue for K10 board. I tried everything but It didn't worked. &lt;A href="https://community.nxp.com/thread/317292"&gt;PE multilink universal not detecting K10 uc&lt;/A&gt; I thought that there might be some soldering issue as it was a QFN package. so I changed my design and added MK20DX128VLF5(LQFP) we bought 100 pcs of this uc and 100 pc of KL05 , 30 pc of K10. we checked for K10 and K20 uc it doesn't work. I checked PE multilink by programming FRDM-KL46Z board through SWD connecter J6, it is programming the board without any issue. I went through the &lt;STRONG&gt;KQRUG&lt;/STRONG&gt; user guide which I found out from my previous query regarding K10 board through the community. and I also went through the &lt;STRONG&gt;PE4576-Technical summary. &lt;/STRONG&gt;and tried resolving the issue but didn't resolve then after bashing my head I somehow managed to find an app note on programming kinetis uc i.e &lt;STRONG&gt;AN4835&lt;/STRONG&gt; which I think is supposed to be mention in the datasheet as no user will get to know that there exist an app note for how to program the Kinetis uc. There are many engineers who will be working on ARM cortex uc but if there is not much resources then why will they choose freescale. Kindly look into the matter and make the programmer work as I fear all the above controller i.e (100 K20, 100 Kl05, 30 K10) uc will be collecting dust. Already we have 100 k20 boards ready. The following diagram shows the connections I have tried for different modes(JTAG/SWD) for programming K20 board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_12.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41340i38B8CB88BC581BA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;it didn't worked then i tried SWD config&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_13.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41410i81C4F8916631FBE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_13.png" alt="pastedImage_13.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In both the cases I connected &lt;STRONG&gt;VCC(3.3V) -----&amp;gt;TVCC(PIN 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and GND----&amp;gt; GND(PIN 4) &lt;/STRONG&gt;of PE multilink universal. I am using the following port from PE multilink universal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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/41744iDF4213B6621AA095/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_18.png" alt="pastedImage_18.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I probed &lt;STRONG&gt;RESET_b&lt;/STRONG&gt; pin in normal condition it is logic high(3.3V) and while programming it becomes logic low(0V).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="photo 4.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41933i3820B678522FA983/image-size/large?v=v2&amp;amp;px=999" role="button" title="photo 4.JPG.jpg" alt="photo 4.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The above is the testing breakout board(dual side).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="photo 4.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42067iD01AF9ECEF6473D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="photo 4.JPG.jpg" alt="photo 4.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;P&gt;I hope The community will help me to resolve this issue ASAP. Our expected target is 100,000&amp;nbsp; kinetis&amp;nbsp; units this year In our line of products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 06:35:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258156#M7733</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-01-25T06:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258157#M7734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me throw some suggestions and questions trying to help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt; Are you connecting VSS to GND (MCU pin 23)?. Sorry if this is a silly question, but from your board picture I cannot see the other side and I just see a capacitor in there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2)&lt;/STRONG&gt; Again, most probably you have checked it, but just to make sure, do you see both LEDs ON when connecting your Multilink?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3)&lt;/STRONG&gt; You connected GND to PIN 4 of Multilink. The ARM JTAG interface specs recommend to connect all the GND pins, not only pin 4 (pins 4/6/8/10/12/14/16/18/20). This is to reduce noise.\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4)&lt;/STRONG&gt; You are not using a standard 20 pin header in your custom board, so I assume you are connecting your Multilink with jumper wires. In this case you have to make sure that these wires are as short as possible. In several cases large cables have caused connection problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5)&lt;/STRONG&gt; Try reducing the PE Universal Multilink debug speed. This can be done from the tab Run -&amp;gt; Debug Configurations -&amp;gt; Edit. As your MCUs are brand new, I also recommend to check the "Always mass erase on connect" option. And last, for your second schematic (using SWD instead of JTAG), you have to make sure to select the "Use SWD ..." option. See the next images for these comments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Edit_connection.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41343i4F9384CD17DAA294/image-size/large?v=v2&amp;amp;px=999" role="button" title="Edit_connection.png" alt="Edit_connection.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Multilink_options.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41151iE1803F5195D301DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Multilink_options.png" alt="Multilink_options.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6)&lt;/STRONG&gt; And finally, I have known of cases in which the debug configurations get corrupted. Easiest way to discard this is to create a new empty bareboard project and trying to program this in your MCU, but considering my points above as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope some of this guides you to the solution. Let us know about further findings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jan 2014 23:58:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258157#M7734</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-01-26T23:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258158#M7735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge&lt;/P&gt;&lt;P&gt;Thanks for the quick reply. I have followed your suggestions. what I did was :&lt;/P&gt;&lt;P&gt;1. I removed all the external connections and checked the continuity of the board. vdd(+3.3V) is connected to pin nos 1, 9, 10, 16, 22 and the VSS(GND) is connected to pin nos. 2, 11, 12, 23.(Its a dual sided board)&lt;/P&gt;&lt;P&gt;2. As per the multilink universal guideline i.e its given below, I followed and ensured both the LEDs are glowing. &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/41219iA942E231CE0B5683/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;3. I have connected all the ground pins (2,4,6,8,10,12,14,16,18,20) of multilink externally. (although multimeter shows that all the gnd pins are shorted internally when not connected)&lt;/P&gt;&lt;P&gt;4. I have checked that there is no loose contact with the jumpers, and the length of the jumper is around 15 cm.&lt;/P&gt;&lt;P&gt;5. According to the 1st schematic, value for R1(resistor to reset pin) is 1K. when I probe this pin, &lt;STRONG&gt;In normal condition I get 1.64V and when the programming starts it becomes (0V). &lt;/STRONG&gt;Is that expected?? I mean the voltage 1.64v? or should it be higher?&lt;/P&gt;&lt;P&gt;6. I tried your 5th point i.e 1st checked for SWD, and then for JTAG.&lt;/P&gt;&lt;P&gt;7. I tried making empty bareboard project and programming it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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/41152i5399A8EC3BEC3C33/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&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41344i4E5074B04B1C192D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case It didn't asked for secure, it directly stated that multilink is not communicating i.e 2nd image which I shared in my 1st post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above configuration is for SWD now Trying for JTAG. It still didn't worked. what should I do next?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 04:55:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258158#M7735</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-01-27T04:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258159#M7736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for considering my suggestions. About your comments and some more inputs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5)&lt;/STRONG&gt; This should not be critical, but try replacing that 1K resistor with one of 4.7K - 10K. Also confirm that you have the R2 10K pull - up resistor connected to pin 21, and measure voltage in that pin to verify that it is always in high level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the 1.64 V is definitely not correct, the value should be near the 3.3 V when not asserted. This seems to indicate that the MCU is constantly resetting. You need to watch that pin with an oscilloscope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the device is resetting, this may solve the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Make sure to select "&lt;STRONG&gt;Always mass erase on connect"&lt;/STRONG&gt;, and select a not so high debug frequency (e.g. 0.10 MHz).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Connection.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41220iF0BA0F83F9F811B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Connection.png" alt="Connection.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then follow the next steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Disconnect the board from your 3.3 V source.&lt;/P&gt;&lt;P&gt;2) With a jumper force the reset pin to a low level (GND) and hold it.&lt;/P&gt;&lt;P&gt;3) Power on the board (connect the 3.3 V source). Do not release reset yet.&lt;/P&gt;&lt;P&gt;4) Start a debug session and as soon as it is starting release the reset button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this more than once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, you could also try mass erasing the K20 device from the Flash programmer. Just open the programmer, select proper connection and specific flash configuration file and then click on "Erase Whole Device".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Mass_erase.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41345i8F8A3C09965B03E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Mass_erase.png" alt="Mass_erase.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the Erase is successful, then you should be able to debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know what you find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 07:49:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258159#M7736</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-01-27T07:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258160#M7737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge&lt;/P&gt;&lt;P&gt;I Tried the steps you mentioned but it didn't worked. I then removed all external connections and probed to each pins of the uc(all the connections present in the schematic is&amp;nbsp; still connected) to the oscilloscope and found that pin nos.&lt;/P&gt;&lt;P&gt;1----&amp;gt; 3.30V&lt;/P&gt;&lt;P&gt;9,10-----&amp;gt; 3.30V&lt;/P&gt;&lt;P&gt;16---&amp;gt;3.30V&lt;/P&gt;&lt;P&gt;18---&amp;gt;3.29v&lt;/P&gt;&lt;P&gt;20----&amp;gt;3.30v&lt;/P&gt;&lt;P&gt;21----&amp;gt;3.29v&lt;/P&gt;&lt;P&gt;22----&amp;gt;3.30v&lt;/P&gt;&lt;P&gt;26----&amp;gt;1.64v&lt;/P&gt;&lt;P&gt;For the reset pin I was also doubtful so I soldered the pinout board for KL05 and checked for the reset pin there. On kl05 reset pin I got 1.64v. for the reset pin if I am not connecting any capacitor then getting the following pulse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41346iADF6B5CF063228FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.jpg" alt="pastedImage_0.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after connecting the 1uf capacitor I am getting the following waveform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41222i7A044AA2706C3C9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.jpg" alt="pastedImage_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what you suggest me to do ? These voltages are when multilink is not connected to the uc. even after connecting the same results exist. These waveforms are common for both k20 and kl05 uc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 12:03:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258160#M7737</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-01-27T12:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258161#M7738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your MCUs are constantly resetting. This is because they are virgin and the watchdog is enabled. First thing you should do with a new MCU before trying to debug is a mass erase. So we need to forget about the debugger right now and try to erase the whole device using the Flash Programmer (thunderbolt icon).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your second picture also shows that the capacitor is holding the voltage. So please follow the next steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - Remove the capacitor.&lt;/P&gt;&lt;P&gt;2 - Connect your multilink and open the flash programmer (the one that says &lt;EM&gt;Flash File to target&lt;/EM&gt; as in my previous respose).&lt;/P&gt;&lt;P&gt;3 - Select the FLASH PnE U-Multilink connection, and select also the correct Flash configuration file. You may try with JTAG or SWD, just make sure to click on "Edit" and that the SWD option is checked/unchecked accordingly.&lt;/P&gt;&lt;P&gt;4 - Click on Erase Whole Device&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should read a message in the console indicating "Erase Command Succeeded".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this does not work, repeat the procedure but this time with the steps suggested in my previous post, which are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Connect Multilink and open flash programmer.&lt;/P&gt;&lt;P&gt;- Disconnect board power.&lt;/P&gt;&lt;P&gt;- Hold reset low.&lt;/P&gt;&lt;P&gt;- Power on the board.&lt;/P&gt;&lt;P&gt;- Click on "Erase Whole Device" and then release the reset line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I received feedback from a colleague that 15 cm jumpers are still long in some cases. Could you try with even shorter cables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be great if you can post here a picture showing your connections all the way from the header in your multilink to the pins in your custom board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 23:07:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258161#M7738</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-01-27T23:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258162#M7739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jorge&lt;/P&gt;&lt;P&gt;I Tried the steps you mentioned (including removing the capacitor) even holding the reset pin to gnd and after clicking mass erase releasing it. but still the error persists....below is the screenshot if you can see the console window in it.&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/42455i73467398D5B38F9B/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;for the jumper length of jumper&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="photo.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42456i19A07AA493DA94F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="photo.JPG.jpg" alt="photo.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried for kl05 it worked i.e it got mass erased and now programs are being dumped in it without any error. But for k20 it is still showing the same error... in KL05 there is only SWD but in k20 there is JTAG, EZPort, SWD. Is there anything else I need to do if I am focusing for SWD in k20 apart from the above schematic? as SWD worked for KL05 using the PE multilink universal(PORT B).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 06:33:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258162#M7739</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-01-28T06:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258163#M7740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good to know about the KL05 working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The procedure is the same for the K20 (just make sure to check the "SWD.." option in the connection).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference I see in your SWD schematic is the pin 21 without pull up, besides of removing capacitor and changing R1 from 1K to 10K.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you assembled more than one K20 board? or just that one in your picture?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try with another board with the K20 to discard that the MCU is somehow secured or bricked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 17:39:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258163#M7740</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-01-28T17:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258164#M7741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge&lt;/P&gt;&lt;P&gt;I Have replaced the 1k with 4.7K at reset circuit and have also connected the 10k pullup at pin no 21. before trying with the new uc I wanted to ask you one thing ,in the following image there is an option for JTAG and cJTAG /SWD I tried both but it didnt worked.. which one is recommended?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42470i1CD610464B2CEEB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also while flash programming there is an option to choose the configuration file, which one is recommended ? I tried with the default configuration file then later I tried with all available configuration file for K20DX128.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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/42471iC2A2803FBB4E199B/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&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 03:35:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258164#M7741</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-01-29T03:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258165#M7742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit, about your questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The default mode in Kinetis K is JTAG, so I'd go for that. This setting is not relevant right now, as you need to be able to mass erase your K20 first from the flash programmer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If your MCUs have a 'Z' in the name (on the top of the chip), then select K20DX128&lt;STRONG&gt;Z&lt;/STRONG&gt;.xml, otherwise select the K20DX128.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could share with me a picture of your connections from the Multilink to the board that would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 03:58:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258165#M7742</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-01-29T03:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258166#M7743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jorge&lt;/P&gt;&lt;P&gt;Below is the picture of my connections of PE multilink universal with my test board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="DSC_0082.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42477i7B85E28B8C36F28E/image-size/large?v=v2&amp;amp;px=999" role="button" title="DSC_0082.jpg" alt="DSC_0082.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it will be tuff for you to see the connections so I have made the connection diagram below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42478i6EEC7FABCF61A86C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the image is clear .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 08:40:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258166#M7743</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-01-29T08:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258167#M7744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HOORAYY!!! I just got my custom K10 board working after reading the above!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The board I got working is shown on the right. I mounted only the K10, a 3.3V regulator, one bulk 10uF on the regulator output, and one SMD 10k pull-up on reset.&lt;/LI&gt;&lt;LI&gt;There is a debug adapter board covering the top half of my mainboard; it has only the Cortex Mini-10 pin header and one 1uF capacitor on reset mounted.&lt;/LI&gt;&lt;LI&gt;There is another board covering the bottom half of my mainboard; it has only a DC barrel jack on it, connected to the regulator input.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I removed the 1uF from reset while following along through the steps above, but I'm not 100% sure that was necessary.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;A 10k PTH resistor is attached to the debug adapter between 3.3V and EZP_CS. I'll put this on the mainboard's next revision.&lt;/LI&gt;&lt;LI&gt;The 10k resistor on the breadboard (upper) is connected to 3.3V and SWDIO.&lt;/LI&gt;&lt;LI&gt;The &amp;lt;100ohm resistor on the left is connected to VTREF and 3.3V. It was recommended in something I read trying to fix my problem, but is unnecessary; jumper wire is fine.&lt;/LI&gt;&lt;LI&gt;The connector on the far left is for the Mini-10 cable that came with the Multilink which is about a mile long (~12" actually).&lt;/LI&gt;&lt;LI&gt;The left-most Mini10 adapter is the only one with pin numbers matching the Cortex spec/cable; the two identical adapters I used reversed the pin order, while a mistake on the debug adapter swapped every two pins. With the corrections I'm making, the standard cable should hook directly up and work.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My chip was rebooting like yours, but by the time I had fixed my mistakes, I no longer needed to do the reset trick described; it mass erased on the first try and then programmed on the first try. I suspect I could have skipped the mass erase. So, I put a PWM LDD in my project, deployed, and stuck a UV LED into the socket and HELLOOOOOO BLINKY!!!! (Thanks Jorge! and good luck Amit!)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20140129_035812.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42479i8C8624D116F1F86B/image-size/large?v=v2&amp;amp;px=999" role="button" title="20140129_035812.jpg" alt="20140129_035812.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 10:45:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258167#M7744</guid>
      <dc:creator>kerbal</dc:creator>
      <dc:date>2014-01-29T10:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258168#M7745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Congratulation Jon !!!&lt;/P&gt;&lt;P&gt;Good to hear that you got benefited from this post. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 04:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258168#M7745</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-02-01T04:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258169#M7746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jorge!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a new board with a different K20 uc and there I added 20 pin header and that got mass erased and is working fine. I was able to program custom made K-60 board also !!!. I think with the controller in which only SWD pins are there for programing, needs to be programmed using SWD mode only and for the controller in which SWD/JTAG and EZport is present needs to be programmed with JTAG mode. I Tried with SWD but that didn't worked JTAG worked successfully there, for KL05 swd worked.&lt;/P&gt;&lt;P&gt;I have also made a post in which I have described the shortcut process.&lt;A href="https://community.nxp.com/docs/DOC-99609"&gt;https://community.nxp.com/docs/DOC-99609&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but I feel in datasheet it should be mentioned that all new controller should be programmed in a different way for the1st time programming. &lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 04:42:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258169#M7746</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-02-01T04:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258170#M7747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I've been a little busy. It is great you finally got positive results!!. I agree about the JTAG/SWD modes (although I am not sure why it did not work in SWD, I will try to investigate this), and also with the mass erase info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to thank you a lot because this thread and the document you just created are going to help many people, as Jon above for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 15:37:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258170#M7747</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-02-03T15:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258171#M7748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm now testing our first Kinetis MK22FX512VLK12 custom controller board.&lt;/P&gt;&lt;P&gt;In our design we included a SWD programming connector (VCC, GND, SWD_DIO, SWD_CLK, RESET). These pins are connected to the PEMicro Multilink Universal (firmware v6.10) Port B (TVCC, GND, TMS/SWD_DIO, TCK/SWD_CLK).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After several attempts using the SWD interface I always get a "Device is secure" message on CW 10.6 and KDS 1.1.0. This is the same behavior as described by Amit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I also managed to tweak the board and I added TDI and TDO. It works, but I'm looking for a way to use SWD interface.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The Kinetis MCUs use JTAG at reset state, but they can switch from JTAG to SWD mode using a sequence on TMS and TCK, so the Multilink should be able to send this command. (reference manual page 210 - 9.2.1 JTAG-to-SWD change sequence)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seams that only Eric Styger was successfully using SWD on K20 using the Multilink programmer.&lt;/P&gt;&lt;P&gt;You can check it here &lt;A href="http://mcuoneclipse.com/2014/08/09/hacking-the-teensy-v3-1-for-swd-debugging/"&gt;http://mcuoneclipse.com/2014/08/09/hacking-the-teensy-v3-1-for-swd-debugging/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is his board schematic:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Teensy v3.1 Schematic with SWD Pins (Source: based on https://www.pjrc.com/teensy/schematic.html)" class="jiveImage" src="http://mcuoneclipse.files.wordpress.com/2014/08/teensy-v3-1-schematic-with-swd-pins.png?w=839&amp;amp;h=774" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comparing his solution to mine:&lt;/P&gt;&lt;P&gt;1 - I'm using Multilink Port B instead of Port G. Pins are short circuit, so...&lt;/P&gt;&lt;P&gt;2 - My board has a 10k pullup on Reset (it is recommended by Freescale, should I remove it?)&lt;/P&gt;&lt;P&gt;3 - Kinetis K22 vs K20...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 11:41:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258171#M7748</guid>
      <dc:creator>JCRib</dc:creator>
      <dc:date>2014-08-21T11:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258172#M7749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose&lt;/P&gt;&lt;P&gt;Please follow these steps &lt;A href="https://community.nxp.com/docs/DOC-99609"&gt;How To Sucessfully Program a Custom made Kinetis Microcontroller Board.&lt;/A&gt; Altough this document is a summary of the above thread but I think it might help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 11:59:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258172#M7749</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-08-21T11:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258173#M7750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already done those steps yesterday and thanks to you I was able to debug it but only if I use JTAG (btw, I can debug it without the EZP_CS pullup...)&lt;/P&gt;&lt;P&gt;The problem is that SWD never works. Can't even mass erase the device using SWD. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I think you couldn't use SWD also, am I right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We need to ask Erich Styger how he managed to debug using SWD... :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;José Ribeiro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 17:40:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258173#M7750</guid>
      <dc:creator>JCRib</dc:creator>
      <dc:date>2014-08-21T17:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258174#M7751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few Suggestions for SWD program in K series&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For mass erase of device No need to be pull-up of EZP_CS_b pin. It will erase the device if you connect GND to all GND of PE Microlink SWD_CLK, SWD_DIO and RESET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these four pins are must&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Where as if you want debug/program in SWD mode EZP_CS_b should be pulled up with 10k resistor.(EZP_CS_b pulling up is must for SWD/JTAG)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the connections at Connector wether it is touching properly or not. Try with direct soldering on the brd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. And you need select use SWD pin reduce option in Codewarrier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you. I am able to program my device in SWD as well JTAG mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;darla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 03:33:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258174#M7751</guid>
      <dc:creator>rameshdarla</dc:creator>
      <dc:date>2014-08-22T03:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re: PE multilink JTAG/BDM Kinetis programming issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258175#M7752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just checked if the K20 is being programmed or not using SWD and it did. attached is the test code which I compiled in CW10.5 Kindly check the settings done in the run configuration. One Suggestion I would like to give you is in your custom board place 20 pin header and connect the appropriate pins to it as in case of wired connections, the wires can induce noise which can cause this issue. I was not able to program the board shown in the above thread instead I had to design a new board containing 20 pin header along with 10 gnd pins connected to the board's ground. I know all the ground is shorted in PE multilink but these ground&amp;nbsp; accompanying with the swd/jtag pins are there to provide isolation from noise. after doing these changes my board worked. I just realized that you are using PORT G so in that connect all the gnds to the board gnd. Rest I hope you have already connected as required. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 06:12:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PE-multilink-JTAG-BDM-Kinetis-programming-issue/m-p/258175#M7752</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-08-22T06:12:07Z</dc:date>
    </item>
  </channel>
</rss>

