<?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: Unable to unlock K64F in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-unlock-K64F/m-p/452471#M26876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;Do you mean the FRDM-K64 board can not connect or your custom board ?&lt;/P&gt;&lt;P&gt;If the FRDM-K64 board , please copy and pest the “Jlink_OpenSDA_v2.bin” to the bootloader mode of the board,&lt;/P&gt;&lt;P&gt;then use the OpenSDA (j16 pin) to test , check whether it can work well .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want erase the chip , you can entry "unlock kinetis" on the J-Link Commander :&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/51868i61674D4C2D6EC019/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;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2015 02:37:30 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2015-11-04T02:37:30Z</dc:date>
    <item>
      <title>Unable to unlock K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-unlock-K64F/m-p/452470#M26875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have made a custom board with a MK64FN1MOVLL12 MCU, the board is based on the FRDM-K64F dev board..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using the freedom board with J-link loaded on it as a programmer, which worked in the beginning. &lt;/P&gt;&lt;P&gt;But now it seems that I have locked the MCU accidental, as it now says it is in secure mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I can't get it out of secure mode, I have tried J-Flash Lite's unlock/erase, but it times out.&lt;/P&gt;&lt;P&gt;Also JLink Commander's unlock function timesout (unlock kinetis).&lt;/P&gt;&lt;P&gt;I have even tried activating a mass erase manually, by writing to the control register, but nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when trying to unlock from KDE I get following message in the console&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14465568048855255 jive_text_macro" data-renderedposition="218_8_1232_224" jivemacro_uid="_14465568048855255" modifiedtitle="true"&gt;&lt;P&gt;Connecting to J-Link...&lt;/P&gt;&lt;P&gt;J-Link is connected.&lt;/P&gt;&lt;P&gt;Firmware: J-Link OpenSDA 2 compiled Oct 13 2015 12:10:27&lt;/P&gt;&lt;P&gt;Hardware: V1.00&lt;/P&gt;&lt;P&gt;S/N: 621000000&lt;/P&gt;&lt;P&gt;Checking target voltage...&lt;/P&gt;&lt;P&gt;Target voltage: 3.30 V&lt;/P&gt;&lt;P&gt;Listening on TCP/IP port 2331&lt;/P&gt;&lt;P&gt;Connecting to target...ERROR: Kinetis (connect): Timeout while unsecuring device. Erase never starts.&lt;/P&gt;&lt;P&gt;Kinetis (connect): Failed to unsecure Kinetis device.&lt;/P&gt;&lt;P&gt;ERROR: Error while identifying Cortex-M core.&lt;/P&gt;&lt;P&gt;ERROR: Could not connect to target.&lt;/P&gt;&lt;P&gt;Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...&lt;/P&gt;&lt;P&gt;Shutting down...&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have I somehow bricked the board, or am I missing something to fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When reading the MDM-AP status register I get either 0x00000036 or 0x00000034 (found via swdreadap 0 in jlink)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The custom MCU's reset pin is pulsing with 71kHz, which I figure is the watchdog messing around&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 13:27:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-unlock-K64F/m-p/452470#M26875</guid>
      <dc:creator>frederiknielsen</dc:creator>
      <dc:date>2015-11-03T13:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to unlock K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-unlock-K64F/m-p/452471#M26876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;Do you mean the FRDM-K64 board can not connect or your custom board ?&lt;/P&gt;&lt;P&gt;If the FRDM-K64 board , please copy and pest the “Jlink_OpenSDA_v2.bin” to the bootloader mode of the board,&lt;/P&gt;&lt;P&gt;then use the OpenSDA (j16 pin) to test , check whether it can work well .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want erase the chip , you can entry "unlock kinetis" on the J-Link Commander :&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/51868i61674D4C2D6EC019/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;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 02:37:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-unlock-K64F/m-p/452471#M26876</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-11-04T02:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to unlock K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-unlock-K64F/m-p/452472#M26877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FRDM-K64F can connect to the board fine, with Jlink interface, it's the "unlock kinetis" function that won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As also shown in the console output in my first post, all normal way to unlock the MCU seems to fails&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 08:06:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-unlock-K64F/m-p/452472#M26877</guid>
      <dc:creator>frederiknielsen</dc:creator>
      <dc:date>2015-11-04T08:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to unlock K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-unlock-K64F/m-p/452473#M26878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Frederik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your first post , i see it show connect to target error :&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/29073i872043428E92D394/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;so how do you know it can connect the board well ？&lt;/P&gt;&lt;P&gt;I recommend you copy and past the "Jlink_OpenSDA_v2.bin” to the bootloader mode of the board , then have a try .&lt;/P&gt;&lt;P&gt;IF it still can not work well , please show the how do you operation and the new information in the console window .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 06:00:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-unlock-K64F/m-p/452473#M26878</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-11-05T06:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to unlock K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-unlock-K64F/m-p/452474#M26879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already had the Jlink bootloader, but installed the one you linked to anyway..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct it seems to not connect now, but I have been able to connect and program this board before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, here is a screen of trying the "unlock kinetis" feature in Commander.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="unlock1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1318i23B5C43B78DF4F92/image-size/large?v=v2&amp;amp;px=999" role="button" title="unlock1.png" alt="unlock1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I still assume I have connection to the MCU, is that I can get results from the MDM-AP status register&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="unlock2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1340i6F146BF96D322263/image-size/large?v=v2&amp;amp;px=999" role="button" title="unlock2.png" alt="unlock2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The change in readout is because the watchdog is resetting the MCU with 71kHz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 08:25:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-unlock-K64F/m-p/452474#M26879</guid>
      <dc:creator>frederiknielsen</dc:creator>
      <dc:date>2015-11-05T08:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to unlock K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-unlock-K64F/m-p/452475#M26880</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 think your chip has disalbe mess erase function , so it can not erase or write now.&lt;/P&gt;&lt;P&gt;I recommend you contact the local FAE and send back to FSL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 09:09:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-unlock-K64F/m-p/452475#M26880</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-11-05T09:09:19Z</dc:date>
    </item>
  </channel>
</rss>

