<?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: FLASH security configuration in S32K</title>
    <link>https://community.nxp.com/t5/S32K/FLASH-security-configuration/m-p/1687023#M25082</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Please read &lt;STRONG&gt;&lt;EM&gt;18.3.6 Protection&lt;/EM&gt;&lt;/STRONG&gt; of &lt;A href="https://www.nxp.com/webapp/dummycrawl.jsp?code=KEA64RM" target="_self"&gt;KEA64RM&lt;/A&gt;. If you&amp;nbsp;change the value of &lt;STRONG&gt;Flash Configuration&lt;/STRONG&gt; from FE to &lt;STRONG&gt;FD&lt;/STRONG&gt;, the flash will secure. 0x40E is the address of Flash&amp;nbsp;security byte. FTMRH_FSEC[SEC]=&lt;STRONG&gt;01&lt;/STRONG&gt; mean &lt;STRONG&gt;Secured&lt;/STRONG&gt;. Refer to&amp;nbsp;&lt;EM&gt;18.4.2 Flash Security Register (FTMRH_FSEC).&lt;/EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="18.3.6 Protection KEA64RM.png" style="width: 843px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/232045i639DC42CB8EBD9D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="18.3.6 Protection KEA64RM.png" alt="18.3.6 Protection KEA64RM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Recommended you refer to &lt;EM&gt;&lt;STRONG&gt;18.3.7.1 Unsecuring the MCU using backdoor key access&lt;/STRONG&gt;&lt;/EM&gt; after you got the request over LIN or any other external request.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&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&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;</description>
    <pubDate>Thu, 13 Jul 2023 03:03:41 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2023-07-13T03:03:41Z</dc:date>
    <item>
      <title>FLASH security configuration</title>
      <link>https://community.nxp.com/t5/S32K/FLASH-security-configuration/m-p/1686215#M25026</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using S9KEAZN64AMLC MCU (Custom Board). I want to secure the FLASH After Flashing.&lt;/P&gt;&lt;P&gt;and again when I got the request over&amp;nbsp; LIN&amp;nbsp; or any other external request then I had to Unsecure,&lt;/P&gt;&lt;P&gt;Is there any way to do that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went through the start-up code. If we change the value from FE to FD is flash will secure?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sourdev_0-1689135932603.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/231854i7F1EF86F50FF9E1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sourdev_0-1689135932603.png" alt="Sourdev_0-1689135932603.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can we do that if I want to change this configuration in run time?&lt;/P&gt;&lt;P&gt;I tried the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sourdev_1-1689136253195.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/231855iF2A0F3FC4F591AE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sourdev_1-1689136253195.png" alt="Sourdev_1-1689136253195.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sourdev_2-1689136286821.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/231856i5A08FC9DECDF5EAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sourdev_2-1689136286821.png" alt="Sourdev_2-1689136286821.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When any request comes from an external environment I am calling this function to unlock the FLASH but when control comes here it is going to default to ISR. Is it the right way to do that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not how we can lock and unlock FLASH in RUN time?&lt;/P&gt;&lt;P&gt;And if FLASH is locked and unable to unlock then how we can do MASS Erase? &lt;STRONG&gt;(NOTE: I am using S32DS IDE&amp;nbsp; and PE Micro Multilink Universal )&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 04:38:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FLASH-security-configuration/m-p/1686215#M25026</guid>
      <dc:creator>Sourdev</dc:creator>
      <dc:date>2023-07-12T04:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: FLASH security configuration</title>
      <link>https://community.nxp.com/t5/S32K/FLASH-security-configuration/m-p/1687023#M25082</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Please read &lt;STRONG&gt;&lt;EM&gt;18.3.6 Protection&lt;/EM&gt;&lt;/STRONG&gt; of &lt;A href="https://www.nxp.com/webapp/dummycrawl.jsp?code=KEA64RM" target="_self"&gt;KEA64RM&lt;/A&gt;. If you&amp;nbsp;change the value of &lt;STRONG&gt;Flash Configuration&lt;/STRONG&gt; from FE to &lt;STRONG&gt;FD&lt;/STRONG&gt;, the flash will secure. 0x40E is the address of Flash&amp;nbsp;security byte. FTMRH_FSEC[SEC]=&lt;STRONG&gt;01&lt;/STRONG&gt; mean &lt;STRONG&gt;Secured&lt;/STRONG&gt;. Refer to&amp;nbsp;&lt;EM&gt;18.4.2 Flash Security Register (FTMRH_FSEC).&lt;/EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="18.3.6 Protection KEA64RM.png" style="width: 843px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/232045i639DC42CB8EBD9D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="18.3.6 Protection KEA64RM.png" alt="18.3.6 Protection KEA64RM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Recommended you refer to &lt;EM&gt;&lt;STRONG&gt;18.3.7.1 Unsecuring the MCU using backdoor key access&lt;/STRONG&gt;&lt;/EM&gt; after you got the request over LIN or any other external request.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&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&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;</description>
      <pubDate>Thu, 13 Jul 2023 03:03:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FLASH-security-configuration/m-p/1687023#M25082</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-07-13T03:03:41Z</dc:date>
    </item>
  </channel>
</rss>

