<?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: Cannot program custom kl05z board in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414859#M23601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The original board is the kl-05z board. The custom board is a pcb designed by me from scratch based on mkl05 microcontroller. I have trouble with my custom board, which design is included in the .sch file attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Oct 2015 11:48:40 GMT</pubDate>
    <dc:creator>kacperpiotrowsk</dc:creator>
    <dc:date>2015-10-12T11:48:40Z</dc:date>
    <item>
      <title>Cannot program custom kl05z board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414856#M23598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have been dealing with this issue for a very long time, and since I was unable to resolve it I decided to actually ask someone else.&lt;/P&gt;&lt;P&gt;The custom kl05z board (for the mkl05 microcontroller) refuses to be programmed by using the header in the original kl05z board.&lt;/P&gt;&lt;P&gt;RESET, SWDIO, SWDCLK, VCC, GND have been connected to the respective pins on kl05z. The CLK signal is disconnected from the on-board microcontroller. There is 1 uF capacitor on the power, no additional pull-ups or capacitors on all other pins since they are already on the original board.&lt;/P&gt;&lt;P&gt;After an attempt to load program there is a window saying: "Kinetis device is locked! Do you want to unlock it ? Mass Erase will be executed!"&lt;/P&gt;&lt;P&gt;I click yes, then there are windows popping saying:&lt;/P&gt;&lt;P&gt;1. AGDI - Cortex-M Error "Cannot access memory"&lt;/P&gt;&lt;P&gt;2. Error: Flash Download failed&amp;nbsp; -&amp;nbsp; Target DLL has been cancelled&lt;/P&gt;&lt;P&gt;Unfortunately, this has been happening over and over again with no clear reason why is that happening. Electrically the signals are quite alike, see the attachments: the original signal is same with the difference in not having those weird "peaks". Is there any answer why is that happening?&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-337724"&gt;headlamp.brd.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-337724"&gt;headlamp.sch.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Sep 2015 14:24:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414856#M23598</guid>
      <dc:creator>kacperpiotrowsk</dc:creator>
      <dc:date>2015-09-27T14:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot program custom kl05z board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414857#M23599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kacper,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you refer to "original KL05 board" in statement "The custom kl05z board (for the mkl05 microcontroller) refuses to be programmed by using the header in the original kl05z board"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 19:41:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414857#M23599</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-10-02T19:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot program custom kl05z board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414858#M23600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that NMI line is pulled UP or not pulled at all. NMI is the default function of some port line and pulling it down makes it impossible to program the Flash using SWD.&lt;/P&gt;&lt;P&gt;Had the same problem 3 months ago. :smileywink:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Oct 2015 08:49:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414858#M23600</guid>
      <dc:creator>gbm</dc:creator>
      <dc:date>2015-10-04T08:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot program custom kl05z board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414859#M23601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The original board is the kl-05z board. The custom board is a pcb designed by me from scratch based on mkl05 microcontroller. I have trouble with my custom board, which design is included in the .sch file attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 11:48:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414859#M23601</guid>
      <dc:creator>kacperpiotrowsk</dc:creator>
      <dc:date>2015-10-12T11:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot program custom kl05z board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414860#M23602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I will check this out and let you know if I succeed.&lt;/P&gt;&lt;P&gt;edit: in my design the NMI pin (PTB5) is not connected to anything, but I tried to add a pull-up anyway. It didn't work, I will try to add a proper pull-up and a capacitor near the RESET pin and let you know afterwards. You can see one leg of a 10kohm resistor on this picture going to a PTB5 pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IMG_20151013_211652.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22026iB0CB911792FE39D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_20151013_211652.jpg" alt="IMG_20151013_211652.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 11:51:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414860#M23602</guid>
      <dc:creator>kacperpiotrowsk</dc:creator>
      <dc:date>2015-10-12T11:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot program custom kl05z board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414861#M23603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kacper,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please attach your schematic in PDF version?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There some posts from that talk about using a FRDM board in order to program/debug another board, maybe these posts could be useful for you.&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2015/08/19/using-the-freescale-freedom-frdm-kl43z-to-debug-other-boards/" title="http://mcuoneclipse.com/2015/08/19/using-the-freescale-freedom-frdm-kl43z-to-debug-other-boards/"&gt;Using the Freescale Freedom (FRDM-KL43Z) to Debug other Boards | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2013/04/21/using-the-freedom-board-as-jtag-programmer/" title="http://mcuoneclipse.com/2013/04/21/using-the-freedom-board-as-jtag-programmer/"&gt;Using the Freedom Board as SWD Programmer | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2015/09/08/using-frdm-k64f-board-to-debug-another-kinetis-board/" title="http://mcuoneclipse.com/2015/09/08/using-frdm-k64f-board-to-debug-another-kinetis-board/"&gt;Using FRDM-K64F Board to debug another Kinetis Board | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 15:17:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414861#M23603</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-10-12T15:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot program custom kl05z board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414862#M23604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;here's the schematic, please be patient if something is wrong, I'm still learning. The capacitor near the microcontroller was changed to 1uF and is placed very close physically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 23:21:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414862#M23604</guid>
      <dc:creator>kacperpiotrowsk</dc:creator>
      <dc:date>2015-10-12T23:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot program custom kl05z board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414863#M23605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kacper,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on FRDM-KL05Z board, you should try adding an external pull-up resistor on Reset Pin and 1uF Capacitor on it. Also, please be sure to avoid a zero-logic level on NMI pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Reset Pin.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21889i28DAAEBF78CE2862/image-size/large?v=v2&amp;amp;px=999" role="button" title="Reset Pin.jpg" alt="Reset Pin.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 19:34:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414863#M23605</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-10-13T19:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot program custom kl05z board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414864#M23606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there Isaac,&lt;/P&gt;&lt;P&gt;Thanks for help, I added a pull-up resistor and a capacitor on the board as presented on the RESET pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IMG_20151017_234925.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2305i90DE7F136C02660C/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_20151017_234925.jpg" alt="IMG_20151017_234925.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can see them just on the right edge of the uC. The NMI pin is pulled - up. Unfortunately, this didn't work. During the programming, the voltage in time looks as follows on the RESET pin:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="NewFile1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24302i8AF5676960F73815/image-size/large?v=v2&amp;amp;px=999" role="button" title="NewFile1.png" alt="NewFile1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can see the RESET pin goes down during the programming. The visible oscillating high state is actually a sawtooth:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="NewFile2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2391iBD0AA3F4E770DB00/image-size/large?v=v2&amp;amp;px=999" role="button" title="NewFile2.png" alt="NewFile2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Which is normal for non-programmed mkl05z - the uC just keeps turning itself on and off. The board is powered externally. Is there anything I can still do to make this thing work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2015 21:58:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/414864#M23606</guid>
      <dc:creator>kacperpiotrowsk</dc:creator>
      <dc:date>2015-10-17T21:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot program custom kl05z board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/1634191#M64954</link>
      <description>&lt;P&gt;Still no solution? &lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 21:26:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-program-custom-kl05z-board/m-p/1634191#M64954</guid>
      <dc:creator>CARA01</dc:creator>
      <dc:date>2023-04-15T21:26:16Z</dc:date>
    </item>
  </channel>
</rss>

