<?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>S32KのトピックRe: S32K148 OTP</title>
    <link>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1978931#M42363</link>
    <description>&lt;P&gt;This can be done in the Flash configuration field by reflashing the image with a new FPROT settings. But it is not possible to unprotect it from the application in the run time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2024 07:34:28 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2024-10-22T07:34:28Z</dc:date>
    <item>
      <title>S32K148 OTP</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1969547#M41823</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My requirement is to put the bootloader code into the OTP area. Do NXP have any related documentation or examples?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 05:56:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1969547#M41823</guid>
      <dc:creator>ZY2</dc:creator>
      <dc:date>2024-10-09T05:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 OTP</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1969648#M41835</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241679"&gt;@ZY2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The flash can be protected by programming the FPROT registers in the flash configuration field.&lt;/P&gt;
&lt;P&gt;RM, rev.14&lt;/P&gt;
&lt;P&gt;36.4.4.1.7 Program Flash Protection Registers (FPROT0 - FPROT3),&lt;/P&gt;
&lt;P&gt;36.4.1 Flash configuration field description.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to this thread:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx/program-flash-write-protection/m-p/1073282" target="_blank"&gt;https://community.nxp.com/t5/MPC5xxx/program-flash-write-protection/m-p/1073282&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The protection can be removed by Mass erase.&lt;/P&gt;
&lt;P&gt;However, Mass erase can be disabled in the FSEC byte of the Flash configuration field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 08:58:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1969648#M41835</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-10-17T08:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 OTP</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1974926#M42138</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZY2_0-1729063754643.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/304944iA6C8F3FF5FF7FD43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZY2_0-1729063754643.png" alt="ZY2_0-1729063754643.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After calling FLASH_DRV_SetPFlashProtection() interface, re-MCU, call FLASH_DRV_GetSecurityState() to check the status, and the return value is 0x01. Do I have the correct steps to enable Flash protection?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 07:35:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1974926#M42138</guid>
      <dc:creator>ZY2</dc:creator>
      <dc:date>2024-10-16T07:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 OTP</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1975929#M42202</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241679"&gt;@ZY2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Protection and Security are two different things.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Protection:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx/program-flash-write-protection/m-p/1073282" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/MPC5xxx/program-flash-write-protection/m-p/1073282&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FLASH_DRV_GetPFlashProtection &lt;/STRONG&gt;reads the FTFC_FPROT registers&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FLASH_DRV_SetPFlashProtection &lt;/STRONG&gt;sets the FTFC_FPROT registers.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;These APIs work with the FTFC registers that are configured during the boot sequence from the FPROT bytes in the flash (Flash configuration field). That means we can set the protection in the application image.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1729155898392.png" style="width: 558px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305222iA2B1E0C494C76A3B/image-dimensions/558x389?v=v2" width="558" height="389" role="button" title="danielmartynek_0-1729155898392.png" alt="danielmartynek_0-1729155898392.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you use S32DS IDE, modify Startup_S32k148.S file:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1729156002581.png" style="width: 559px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305223iA930E859A04BE765/image-dimensions/559x239?v=v2" width="559" height="239" role="button" title="danielmartynek_1-1729156002581.png" alt="danielmartynek_1-1729156002581.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Security&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;FLASH_DRV_GetSecurityState &lt;/STRONG&gt;reads the FSEC register, that is again configurable in the flash configuration field (FSEC byte).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 09:11:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1975929#M42202</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-10-17T09:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 OTP</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1975957#M42205</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZY2_0-1729156601167.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305225iC56FF0414A16E2F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZY2_0-1729156601167.png" alt="ZY2_0-1729156601167.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZY2_1-1729156655743.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305227iD2071094818D31DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZY2_1-1729156655743.png" alt="ZY2_1-1729156655743.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I misconfigured the FSEC register to 0xfe, and finally succeeded in protecting the flash sector 0~0x10000, but the current situation is that the protection of the sector 0~0x10000 cannot be removed by the key.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 09:22:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1975957#M42205</guid>
      <dc:creator>ZY2</dc:creator>
      <dc:date>2024-10-17T09:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 OTP</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1975965#M42207</link>
      <description>&lt;P&gt;Again, Security is not Protection, Security bypass is not about the protection.&lt;/P&gt;
&lt;P&gt;The protection cannot be removed in the FPROT registers, only added, have a look at the description of the FPROT registers in the RM.&lt;/P&gt;
&lt;P&gt;To remove the protection, you need to remove it from the flash image (Flash configuration field).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 09:31:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1975965#M42207</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-10-17T09:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 OTP</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1975987#M42208</link>
      <description>&lt;P&gt;Ok, thanks, so I want to deprotect sectors 0~0x10000 is not allowed right?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZY2_0-1729160032803.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305232iC41B455AB552C3A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZY2_0-1729160032803.png" alt="ZY2_0-1729160032803.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 10:14:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1975987#M42208</guid>
      <dc:creator>ZY2</dc:creator>
      <dc:date>2024-10-17T10:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 OTP</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1978931#M42363</link>
      <description>&lt;P&gt;This can be done in the Flash configuration field by reflashing the image with a new FPROT settings. But it is not possible to unprotect it from the application in the run time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 07:34:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-OTP/m-p/1978931#M42363</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-10-22T07:34:28Z</dc:date>
    </item>
  </channel>
</rss>

