<?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 Using a backdoor key to unlock security for Kinetis family MCU in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-a-backdoor-key-to-unlock-security-for-Kinetis-family-MCU/m-p/506283#M31771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know how to define K61 MCU security options. Where can I view code sample for Using a backdoor key to unlock security for Kinetis family MCU (K61)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2016 09:31:36 GMT</pubDate>
    <dc:creator>evgenik</dc:creator>
    <dc:date>2016-01-21T09:31:36Z</dc:date>
    <item>
      <title>Using a backdoor key to unlock security for Kinetis family MCU</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-a-backdoor-key-to-unlock-security-for-Kinetis-family-MCU/m-p/506283#M31771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know how to define K61 MCU security options. Where can I view code sample for Using a backdoor key to unlock security for Kinetis family MCU (K61)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 09:31:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-a-backdoor-key-to-unlock-security-for-Kinetis-family-MCU/m-p/506283#M31771</guid>
      <dc:creator>evgenik</dc:creator>
      <dc:date>2016-01-21T09:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using a backdoor key to unlock security for Kinetis family MCU</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-a-backdoor-key-to-unlock-security-for-Kinetis-family-MCU/m-p/506284#M31772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Evgeni Kosakovski:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Flash memory driver &lt;STRONG&gt;&lt;A href="http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe"&gt;C90TFS&lt;/A&gt;&lt;/STRONG&gt;​ comes with an example for the use of the backdoor key. The demo is called &lt;STRONG&gt;demo_secure_&amp;lt;device&amp;gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But actually the use is very simple, just involves the next procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&amp;gt;&lt;/STRONG&gt; Store the desired 8-byte key in flash at addresses 0x0400 - 0x0407. The syntax to store the key in flash depends on your IDE or toolchain but usually there is a default flash configuration definition ready to be modified.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&amp;gt;&lt;/STRONG&gt; Enable backdoor key with the &lt;STRONG&gt;KEYEN&lt;/STRONG&gt; bits in the &lt;STRONG&gt;NVM_FSEC&lt;/STRONG&gt; byte at address 0x040C. The same FSEC byte is used to secure the device with the &lt;STRONG&gt;SEC&lt;/STRONG&gt; bits. Also toolchain dependent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&amp;gt;&lt;/STRONG&gt; Declare a routine in code to get the 8-byte key. This depends on your requirements, for example the key can be expected after pressing a button and waiting for the key via UART from a PC console.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&amp;gt;&lt;/STRONG&gt; Write 0x45 (Backdoor command) to register &lt;STRONG&gt;FCCOB0&lt;/STRONG&gt; and the received 8-byte key to registers &lt;STRONG&gt;FCCOB[4] &lt;/STRONG&gt;to &lt;STRONG&gt;FCCOB[B]&lt;/STRONG&gt; and launch the command by clearing the bit &lt;STRONG&gt;FSTAT[CCIF]&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached code is how the last 2 steps are implemented in the C90TFS driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards!&lt;BR /&gt;Jorge Gonzalez&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>Sat, 23 Jan 2016 03:03:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-a-backdoor-key-to-unlock-security-for-Kinetis-family-MCU/m-p/506284#M31772</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2016-01-23T03:03:44Z</dc:date>
    </item>
  </channel>
</rss>

