<?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: How to unsecure K22F</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411747#M23306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ping,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We don't use JTAG per say.&amp;nbsp; I only see 4 pins connected on this board, SWDIO &amp;amp; SWDCLK and then Voltage and GND.&amp;nbsp; Do you think that might be causing it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Cecylia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2015 01:16:54 GMT</pubDate>
    <dc:creator>cwati</dc:creator>
    <dc:date>2015-08-07T01:16:54Z</dc:date>
    <item>
      <title>How to unsecure K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411744#M23303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We just recently tried to program our production-version boards (2 kinds) using these K22F chips:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;STRONG&gt;MK22FN1M0AVMC12&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;STRONG&gt;MK22FN256VDC12 &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;As we tried to bringup the boards for the first time, we couldn't download the code image with J-Link (KDS &amp;amp;/ IAR) due to "timeout unsecuring device" (see exact error messages below). &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Connecting to J-Link...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;J-Link is connected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Firmware: J-Link OpenSDA 2 compiled Aug&amp;nbsp; 4 2014 13:30:09&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Hardware: V1.00&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;S/N: 621000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Checking target voltage...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Target voltage: 3.30 V&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Listening on TCP/IP port 2331&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Connecting to target...ERROR: Kinetis (connect): &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;Timeout while unsecuring device.&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt; Erase never starts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Kinetis (connect): Failed to unsecure Kinetis device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;ERROR: Error while identifying Cortex-M core.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;ERROR: Could not connect to target.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Shutting down...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;We also tried to unlock the MCU using J-Link Commander tool, but failed as well with similar messages.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt; &lt;BR /&gt;We followed different posts, for example this one: &lt;A href="https://community.nxp.com/message/305649"&gt;How to unlock a secured Freescale Kinetis L chip&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;It didn't work.&amp;nbsp; But, the chip is different so I'm wondering if there's another set of steps for K22F.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;it seems like 22F is a newer board and there's no exact help on the forum for this.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Thanks,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Cecylia&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 17:48:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411744#M23303</guid>
      <dc:creator>cwati</dc:creator>
      <dc:date>2015-08-04T17:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to unsecure K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411745#M23304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ceylia,&lt;/P&gt;&lt;P&gt;According to the message you shared, I think the root cause of issue is failed connection, Fig 1 shows the message about correct connection.&lt;/P&gt;&lt;P&gt;So please check the JTAG hardware circuit design at first, and I'd like to suggest that you can refer to the attachment for designing the JTAG interface.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2015-08-05_9-26-52.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54628i938E7FE352F30822/image-size/large?v=v2&amp;amp;px=999" role="button" title="2015-08-05_9-26-52.jpg" alt="2015-08-05_9-26-52.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fig 1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 01:48:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411745#M23304</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2015-08-05T01:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to unsecure K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411746#M23305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i first connect the board to the debugger, it shows the following.&amp;nbsp; So I think there is some sort of connection happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEGGER J-Link Commander V4.92 ('?' for help)&lt;/P&gt;&lt;P&gt;Compiled Sep 30 2014 09:33:51&lt;/P&gt;&lt;P&gt;DLL version V4.92, compiled Sep 30 2014 09:33:42&lt;/P&gt;&lt;P&gt;Firmware: J-Link OpenSDA 2 compiled Aug&amp;nbsp; 4 2014 13:30:09&lt;/P&gt;&lt;P&gt;Hardware: V1.00&lt;/P&gt;&lt;P&gt;S/N: 621000000&lt;/P&gt;&lt;P&gt;VTarget = 3.300V&lt;/P&gt;&lt;P&gt;No devices found on JTAG chain. Trying to find device on SWD.&lt;/P&gt;&lt;P&gt;No device found on SWD.&lt;/P&gt;&lt;P&gt;Failed to identify target. Trying again with slow (4 kHz) speed.&lt;/P&gt;&lt;P&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****** Error: Error while identifying Cortex-M core.&lt;/P&gt;&lt;P&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/P&gt;&lt;P&gt;No devices found on JTAG chain. Trying to find device on SWD.&lt;/P&gt;&lt;P&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****** Error: Error while identifying Cortex-M core.&lt;/P&gt;&lt;P&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/P&gt;&lt;P&gt;No device found on SWD.&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 18:48:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411746#M23305</guid>
      <dc:creator>cwati</dc:creator>
      <dc:date>2015-08-05T18:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to unsecure K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411747#M23306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ping,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We don't use JTAG per say.&amp;nbsp; I only see 4 pins connected on this board, SWDIO &amp;amp; SWDCLK and then Voltage and GND.&amp;nbsp; Do you think that might be causing it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Cecylia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 01:16:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411747#M23306</guid>
      <dc:creator>cwati</dc:creator>
      <dc:date>2015-08-07T01:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to unsecure K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411748#M23307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cecyila,&lt;/P&gt;&lt;P&gt;The SWD mode debug port pin is compatible with the JTAG mode, likes the Fig 1 shows.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2015-08-07_9-39-41.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55289i8D40C42287E52D0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2015-08-07_9-39-41.jpg" alt="2015-08-07_9-39-41.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And I'd like to recommend that you'd better to add an external pull-up resistor (4.7~10kΩ ) to NMI pin.&lt;BR /&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Ping&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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 01:40:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411748#M23307</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2015-08-07T01:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to unsecure K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411749#M23308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This chip: MK22FN1M0XXX12 is giving me a lot of headache.&lt;BR /&gt;This is named 22F, but is actually 21F minus the security feature, or so they say.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, we found that this chip is super sensitive, meaning some firmware programming on this chip could easily cause the chip to get into some sort of locked state.&amp;nbsp; (Maybe they didn't fully remove the "security" feature? I don't know...)&lt;/P&gt;&lt;P&gt;If you're lucky the chip is still responding and these steps might recover it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use JLINK Commander&lt;BR /&gt;Open a CMD (Command prompt) then "cd C:\Freescale\KDS***\segger"&lt;BR /&gt;Then type "jlink"&lt;BR /&gt;On a bad hub the Jlink can't recognize the device.&amp;nbsp; Use the next steps to recover.&lt;/LI&gt;&lt;LI&gt;On the jlink prompt type:&lt;OL&gt;&lt;LI&gt;speed 4&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;device ?&amp;nbsp;&amp;nbsp; ---&amp;gt; put device name, or simply&lt;BR /&gt;device MK22FN1M0XXX12&lt;/LI&gt;&lt;LI&gt;erase&amp;nbsp; ----&amp;gt; slow as expected at 4 KHz, but just be patient if you want to even have a hope of recovering your chip&lt;/LI&gt;&lt;LI&gt;unlock kinetis&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;If step 1. &amp;amp; 2. are successful, when you restart jlink, jlink should automatically recognize the chip.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Aug 2015 00:00:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411749#M23308</guid>
      <dc:creator>cwati</dc:creator>
      <dc:date>2015-08-22T00:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to unsecure K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411750#M23309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just fix my KEA board which is locked by erasing block 0x2 (0x400~0x5FF)。&lt;/P&gt;&lt;P&gt;Thanks for Cecylia's sharing!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 08:05:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-unsecure-K22F/m-p/411750#M23309</guid>
      <dc:creator>guangyuli</dc:creator>
      <dc:date>2018-04-04T08:05:47Z</dc:date>
    </item>
  </channel>
</rss>

