<?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中的主题 How to avoid from permanent lock of kinetis devices during Flash programming.</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-avoid-from-permanent-lock-of-kinetis-devices-during-Flash/m-p/644193#M39060</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 have FRDM-K64F device and I wrote Flash algorithm for flash programming.&lt;/P&gt;&lt;P&gt;During flash programming, it seems that my device becomes permanent lock.&lt;/P&gt;&lt;P&gt;as Jlink commander tools give following error. (IIUC, my device become useless?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;unlock kinetis&lt;BR /&gt;Found SWD-DP with ID 0x2BA01477&lt;BR /&gt;Unlocking device...Unlock via debug port is disabled. Unlock failed.&lt;BR /&gt;Timeout while unlocking device.&lt;BR /&gt;J-Link&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is that, How can I avoid from such situation in future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share with me a exact flash algorithm in some programing language to avoid permanent lock/secure board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Bilal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2016 17:44:46 GMT</pubDate>
    <dc:creator>muhammadbilal</dc:creator>
    <dc:date>2016-09-22T17:44:46Z</dc:date>
    <item>
      <title>How to avoid from permanent lock of kinetis devices during Flash programming.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-avoid-from-permanent-lock-of-kinetis-devices-during-Flash/m-p/644193#M39060</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 have FRDM-K64F device and I wrote Flash algorithm for flash programming.&lt;/P&gt;&lt;P&gt;During flash programming, it seems that my device becomes permanent lock.&lt;/P&gt;&lt;P&gt;as Jlink commander tools give following error. (IIUC, my device become useless?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;unlock kinetis&lt;BR /&gt;Found SWD-DP with ID 0x2BA01477&lt;BR /&gt;Unlocking device...Unlock via debug port is disabled. Unlock failed.&lt;BR /&gt;Timeout while unlocking device.&lt;BR /&gt;J-Link&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is that, How can I avoid from such situation in future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share with me a exact flash algorithm in some programing language to avoid permanent lock/secure board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Bilal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 17:44:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-avoid-from-permanent-lock-of-kinetis-devices-during-Flash/m-p/644193#M39060</guid>
      <dc:creator>muhammadbilal</dc:creator>
      <dc:date>2016-09-22T17:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid from permanent lock of kinetis devices during Flash programming.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-avoid-from-permanent-lock-of-kinetis-devices-during-Flash/m-p/644194#M39061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muhammad bilal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, as you are using the Jlink commander, could you try to send a "erase" command in the same tool, to see if this can mass erase the content in the flash, then if this method works, try the unlock kinetis. This is to see if your device has become &lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;irrecoverable.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Your flash algorithm shouldn't be the problem, the problem is what you are loading in the flash configuration field, in the address 0x0_040C (FSEC). I recommend you to check this links:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2012/11/04/how-not-to-secure-my-microcontroller/" title="https://mcuoneclipse.com/2012/11/04/how-not-to-secure-my-microcontroller/"&gt;https://mcuoneclipse.com/2012/11/04/how-not-to-secure-my-microcontroller/&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;A class="link-titled" href="http://cache.nxp.com/files/microcontrollers/doc/app_note/AN4507.pdf" title="http://cache.nxp.com/files/microcontrollers/doc/app_note/AN4507.pdf"&gt;http://cache.nxp.com/files/microcontrollers/doc/app_note/AN4507.pdf&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Both of them describes good practices when you program kinetis devices and tell you how to avoid the security lock. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&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>Thu, 29 Sep 2016 20:18:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-avoid-from-permanent-lock-of-kinetis-devices-during-Flash/m-p/644194#M39061</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2016-09-29T20:18:45Z</dc:date>
    </item>
  </channel>
</rss>

