<?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 time programming K20 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1499756#M63719</link>
    <description>&lt;P&gt;If you don't have a valid program on the device, then it will constantly reset: it will start running, then run into an illegal instruction, reset again, and so on. So this his normal.&lt;/P&gt;&lt;P&gt;The debug probe needs to get hold of the device first and program it with a proper binary.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 17:20:29 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2022-08-02T17:20:29Z</dc:date>
    <item>
      <title>First time programming K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1499612#M63712</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I asked for soldering an MK20128VFT5 uC in my custom board.&lt;/P&gt;&lt;P&gt;I have already tried to program with&amp;nbsp;olimex arm-usb-ocd-h with open ocd, and Segger j-link with J-Link commander using JTAG.&lt;/P&gt;&lt;P&gt;Connections:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Target&amp;nbsp;&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Programmer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Tref&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;3.3V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;GND&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;GND&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;TCK&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;TCK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;TDO&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;TDO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="25px"&gt;TDI&lt;/TD&gt;&lt;TD height="25px"&gt;TDI&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="25px"&gt;mRESET&lt;/TD&gt;&lt;TD height="25px"&gt;GND&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just connecting mRESET directly to ground I have something "working", otherwise I din't have anything working I think because of protected kinetis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using open Olimex programmer, openocd reported to me that I'm using MK10DX8xxx5. Should be an MK20, so I'm also concerning the chip that the fabric soldered in my board (Reference in the chip M20AGV 3N86B 4EJYA).&lt;/P&gt;&lt;P&gt;With Segger J-link, when I try to unlock kinetis, I have the error described in the attachment (tmp.png).&lt;/P&gt;&lt;P&gt;Some relevant information about MDM_AP (tmp2.png).&lt;/P&gt;&lt;P&gt;I really appreciate your help.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Fábio Vasconcelos&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 13:12:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1499612#M63712</guid>
      <dc:creator>fabio_vasconcelos</dc:creator>
      <dc:date>2022-08-02T13:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: First time programming K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1499710#M63714</link>
      <description>&lt;P&gt;Hi;&lt;BR /&gt;&lt;BR /&gt;Have you tried selecting the device "MK20DX128XXX5 (Allow Security)" instead?&lt;BR /&gt;Reset_b should be pulled high regardless - maybe try pulling it to VDD through a 10k resistor.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Troels&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 15:48:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1499710#M63714</guid>
      <dc:creator>troelsoesteraa</dc:creator>
      <dc:date>2022-08-02T15:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: First time programming K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1499726#M63716</link>
      <description>&lt;P&gt;Have you tried talking to the chip with the SWD instead of JTAG?&lt;/P&gt;&lt;P&gt;And as noted: the Reset line shall be pulled high, not tied to GND.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 16:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1499726#M63716</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2022-08-02T16:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: First time programming K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1499746#M63718</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;troelsoesteraa,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tried with the device&amp;nbsp;&lt;SPAN&gt;"MK20DX128XXX5 (Allow Security)" and I got the same result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pulling up the reset pin, it seems that the uC is always under reset (tmp3.png)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you so much for your help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 16:55:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1499746#M63718</guid>
      <dc:creator>fabio_vasconcelos</dc:creator>
      <dc:date>2022-08-02T16:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: First time programming K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1499756#M63719</link>
      <description>&lt;P&gt;If you don't have a valid program on the device, then it will constantly reset: it will start running, then run into an illegal instruction, reset again, and so on. So this his normal.&lt;/P&gt;&lt;P&gt;The debug probe needs to get hold of the device first and program it with a proper binary.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 17:20:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1499756#M63719</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2022-08-02T17:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: First time programming K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1499795#M63721</link>
      <description>&lt;P&gt;Thinking a bit more about this.&lt;BR /&gt;&lt;BR /&gt;The Segger J-link has a dedicated nRESET pin, which should connect to RESET_b on the MCU, but it is still recommented to pull it up by a resistor on the board, so that it doesn't float.&lt;BR /&gt;&lt;BR /&gt;Also, follow the recommendations here:&lt;BR /&gt;&lt;A href="https://www.segger.com/products/debug-probes/j-link/technology/interface-description/" target="_blank"&gt;https://www.segger.com/products/debug-probes/j-link/technology/interface-description/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;E.g., use pull-ups on TDI, TMS, TRST.. maybe TCK as well.&lt;BR /&gt;&lt;BR /&gt;When it is a new MCU, it should not be locked in any way, which is very strange.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 19:28:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1499795#M63721</guid>
      <dc:creator>troelsoesteraa</dc:creator>
      <dc:date>2022-08-02T19:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: First time programming K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1500180#M63728</link>
      <description>&lt;P&gt;I already flash some firmwares in this MCU, exactly the way you described, but all of them are already flashed previously in de PCB supplier.&lt;/P&gt;&lt;P&gt;However, this time the MCUs arrived cleared and I face this problem exactly with the connection you suggest (tmp4.png)&lt;/P&gt;&lt;P&gt;I searched in internet about it and it seems they are protected and some people solved their problems connecting RESET_b on the MCU directly to ground and performing a unlock kinetis and it works fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connecting to ground at least I can connect, but failed when I try to unlock it.&lt;/P&gt;&lt;P&gt;Thank you so much for your time&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 10:10:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1500180#M63728</guid>
      <dc:creator>fabio_vasconcelos</dc:creator>
      <dc:date>2022-08-03T10:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: First time programming K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1500181#M63729</link>
      <description>&lt;P&gt;I already have a working firmware, my problem seems that the MK20 is protected and I'm not finding a way to unlock it to flash there a bootloader and a firmware.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your time&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 10:12:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1500181#M63729</guid>
      <dc:creator>fabio_vasconcelos</dc:creator>
      <dc:date>2022-08-03T10:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: First time programming K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1500183#M63730</link>
      <description>&lt;P&gt;Not yet, but I will give a try and let you know &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 10:13:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1500183#M63730</guid>
      <dc:creator>fabio_vasconcelos</dc:creator>
      <dc:date>2022-08-03T10:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: First time programming K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1504797#M63799</link>
      <description>&lt;P&gt;It was already solved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;While debugging the pcb board, we get that that is a ground pin unconnected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then we tried to program the uC with Olimex ARM-USB-OCD-H but stills protected.&lt;BR /&gt;Rather than, we connect RST of uC to GND, and start sending kx.cfg commands 1 by 1 till the uC stayed it is unprotected, then we connect RST of uC to JRST of JTAG and continue sending the .kx.cfg commands. It works!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 09:02:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/First-time-programming-K20/m-p/1504797#M63799</guid>
      <dc:creator>fabio_vasconcelos</dc:creator>
      <dc:date>2022-08-11T09:02:55Z</dc:date>
    </item>
  </channel>
</rss>

