<?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: FPROT runtime unlock</title>
    <link>https://community.nxp.com/t5/S32K/FPROT-runtime-unlock/m-p/1425239#M14322</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/150023"&gt;@luca_toso&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It is not possible to remove this FPROT protection.&lt;/P&gt;
&lt;P&gt;And reprogramming the first sector is not recommended.&lt;/P&gt;
&lt;P&gt;Ony the areas that do not get reprogrammed should be protected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But access to the flash controller (FTFC) can be restricted in the Peripheral Bridge (AIPS-Lite) (OPACRA register)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1646825908027.png" style="width: 785px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172928i5A99339FEB8732D5/image-dimensions/785x250?v=v2" width="785" height="250" role="button" title="danielmartynek_0-1646825908027.png" alt="danielmartynek_0-1646825908027.png" /&gt;&lt;/span&gt;&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;</description>
    <pubDate>Wed, 09 Mar 2022 11:41:11 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2022-03-09T11:41:11Z</dc:date>
    <item>
      <title>FPROT runtime unlock</title>
      <link>https://community.nxp.com/t5/S32K/FPROT-runtime-unlock/m-p/1424580#M14303</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible without using debugger access or erasing the flash to unlock the FPROT bits at runtime?&lt;/P&gt;&lt;P&gt;Use case: we have some flash area that needs to be protected by erase and/or programming during normal product cycle.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It may be possible to require to update such areas during the lifetime of the product, i.e. sw update via bootloaders, parameters change or other.&lt;/P&gt;&lt;P&gt;If the FPROT is set in the NVM, how can we re-set the FPROT bits without erasing the FPROT flash sector?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;K.R.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 12:57:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FPROT-runtime-unlock/m-p/1424580#M14303</guid>
      <dc:creator>luca_toso</dc:creator>
      <dc:date>2022-03-08T12:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: FPROT runtime unlock</title>
      <link>https://community.nxp.com/t5/S32K/FPROT-runtime-unlock/m-p/1425239#M14322</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/150023"&gt;@luca_toso&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It is not possible to remove this FPROT protection.&lt;/P&gt;
&lt;P&gt;And reprogramming the first sector is not recommended.&lt;/P&gt;
&lt;P&gt;Ony the areas that do not get reprogrammed should be protected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But access to the flash controller (FTFC) can be restricted in the Peripheral Bridge (AIPS-Lite) (OPACRA register)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1646825908027.png" style="width: 785px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172928i5A99339FEB8732D5/image-dimensions/785x250?v=v2" width="785" height="250" role="button" title="danielmartynek_0-1646825908027.png" alt="danielmartynek_0-1646825908027.png" /&gt;&lt;/span&gt;&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;</description>
      <pubDate>Wed, 09 Mar 2022 11:41:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FPROT-runtime-unlock/m-p/1425239#M14322</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-03-09T11:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: FPROT runtime unlock</title>
      <link>https://community.nxp.com/t5/S32K/FPROT-runtime-unlock/m-p/1425389#M14327</link>
      <description>&lt;P&gt;Hello Daniel,&amp;nbsp;&lt;/P&gt;&lt;P&gt;one more related question.&lt;/P&gt;&lt;P&gt;Is it possible to set only one bit in flash?&lt;/P&gt;&lt;P&gt;I am picturing following scenario: FPROT are unlocked and at some point of the development I want to protect some sectors without re-flashing the uC (e.g switching from development to production and then protect sectors).&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my understanding the minumum writable size in P/D-Flash with FCCOB0..BB is 64 bit (8 data byte), but the RM states that "In NVM Normal mode: The protection can only be increased, meaning that currently unprotected memory can be protected but currently protected memory cannot be unprotected. Since unprotected regions are marked with a 1 and protected regions use a 0, only writes changing 1s to 0s are accepted. This 1-to-0 transition check is performed on a bit-by-bit basis. Those FDPROT bits with 1-to-0 transitions are accepted while all bits with 0-to-1 transitions are ignored. "&lt;/P&gt;&lt;P&gt;How can we change only one bit in the NVM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 15:47:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FPROT-runtime-unlock/m-p/1425389#M14327</guid>
      <dc:creator>luca_toso</dc:creator>
      <dc:date>2022-03-09T15:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: FPROT runtime unlock</title>
      <link>https://community.nxp.com/t5/S32K/FPROT-runtime-unlock/m-p/1425415#M14328</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/150023"&gt;@luca_toso&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If one phrase is programmed (bits 1 -&amp;gt; 0), ECC checksum is generated for the data in that phrase (also bits 1 -&amp;gt; 0 in the inaccessible flash that holds the checksum).&lt;/P&gt;
&lt;P&gt;To reprogram that phrase, the whole sector must be erased (all bits 0 -&amp;gt; 1 including the ECC checksum).&lt;/P&gt;
&lt;P&gt;So that the new data can match the new ECC checksums.&lt;/P&gt;
&lt;P&gt;But the FPROT registers (that are loaded from the NVM IFR during the reset sequence) can be ovewritten (to increase the protection only).&lt;/P&gt;
&lt;P&gt;So, the application code can decide which sectors will be protected on top of the regions already protected in NVM.&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, 10 Mar 2022 13:45:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FPROT-runtime-unlock/m-p/1425415#M14328</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-03-10T13:45:51Z</dc:date>
    </item>
  </channel>
</rss>

