<?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: Secure mode and OTA updates</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Secure-mode-and-OTA-updates/m-p/1077538#M57442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct, I did not secure the chip, but it failed to run after reset.&amp;nbsp; After a little research I now see that the lock can only&amp;nbsp; occur when I later connect with J-Link.&amp;nbsp; My guess is that the FSEC bits got corrupted during programming.&amp;nbsp;&amp;nbsp; (Of course, I need J-Link to inspect flash to figure out why it failed to program!&amp;nbsp; But I have some other ideas how to do it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect a programming error.&amp;nbsp; I'll report back later, but for now I'll mark your answer correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Denis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2020 21:18:51 GMT</pubDate>
    <dc:creator>deniscollis</dc:creator>
    <dc:date>2020-05-27T21:18:51Z</dc:date>
    <item>
      <title>Secure mode and OTA updates</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Secure-mode-and-OTA-updates/m-p/1077536#M57440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My K8x gets locked when programming.&amp;nbsp; This is not a problem in a development environment, where I use Segger J-Link commands to unlock it.&amp;nbsp; &amp;nbsp;This is not viable in a production environment, with Over-The-Air (OTA) updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flash_Config is unaltered from factory defaults - (FOPT = 0x3D, FSEC = 0xFE) - which I take to mean that the secure lock feature should not be in play.&amp;nbsp; I do not use a mass erase because some data sections in internal flash may need to be preserved.&amp;nbsp; To program the chip an OTA update package is sent to the device, and staged on external SPI NOR Flash.&amp;nbsp; The package contains the target with a header&amp;nbsp;- load address, length, and ECDSA (signature). The staged file is checked for integrity, and a RAM function erases sufficient 4K blocks, and then writes the target. The MCU is reset and the system reboots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Except that sometimes it doesn't!&amp;nbsp; Connecting J-Link I find the chip in a secure locked state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What causes this, and how do I overcome it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 18:50:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Secure-mode-and-OTA-updates/m-p/1077536#M57440</guid>
      <dc:creator>deniscollis</dc:creator>
      <dc:date>2020-05-26T18:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Secure mode and OTA updates</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Secure-mode-and-OTA-updates/m-p/1077537#M57441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="303172" data-username="deniscollis" href="https://community.nxp.com/people/deniscollis"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline; "&gt;Denis Collis&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do you mean, you didn't secure the chip in the code FOPT, but the Kinetis chip is locked up during program, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp; If yes, please check this document at first:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/servlet/JiveServlet/download/2019-439921-857127-396709/Kinetis Lock issue analysis and unlock way.pdf"&gt;https://community.nxp.com/servlet/JiveServlet/download/2019-439921-857127-396709/Kinetis+Lock+issue+analysis+and+unlock+way.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Whether you meet the requirement in the document.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you still have issues about it, please kindly let me know.&lt;/P&gt;&lt;P style="border: 0px currentColor; color: #51626f; background-color: #ffffff;"&gt;Best Regards,&lt;/P&gt;&lt;P style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&gt;Kerry&lt;/P&gt;&lt;P style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 06:41:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Secure-mode-and-OTA-updates/m-p/1077537#M57441</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-05-27T06:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Secure mode and OTA updates</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Secure-mode-and-OTA-updates/m-p/1077538#M57442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct, I did not secure the chip, but it failed to run after reset.&amp;nbsp; After a little research I now see that the lock can only&amp;nbsp; occur when I later connect with J-Link.&amp;nbsp; My guess is that the FSEC bits got corrupted during programming.&amp;nbsp;&amp;nbsp; (Of course, I need J-Link to inspect flash to figure out why it failed to program!&amp;nbsp; But I have some other ideas how to do it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect a programming error.&amp;nbsp; I'll report back later, but for now I'll mark your answer correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Denis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 21:18:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Secure-mode-and-OTA-updates/m-p/1077538#M57442</guid>
      <dc:creator>deniscollis</dc:creator>
      <dc:date>2020-05-27T21:18:51Z</dc:date>
    </item>
  </channel>
</rss>

