<?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: S32K118 Protection bytes in flash at addr. 0x400 - 0x40F in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K118-Protection-bytes-in-flash-at-addr-0x400-0x40F/m-p/2085626#M48075</link>
    <description>&lt;P&gt;When I try to connect to my S32K118 MCU, I encounter an error. I believe that during the last programming session, the device wrote to the secure zone of the flash (the flash configuration field at 0x400–0x40F), which should be protected. I don’t understand why this write occurred. As a result, I cannot reconnect to the device to erase it or perform any other actions. how can i unlock it?? please a response&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Apr 2025 17:08:19 GMT</pubDate>
    <dc:creator>nourgati</dc:creator>
    <dc:date>2025-04-23T17:08:19Z</dc:date>
    <item>
      <title>S32K118 Protection bytes in flash at addr. 0x400 - 0x40F</title>
      <link>https://community.nxp.com/t5/S32K/S32K118-Protection-bytes-in-flash-at-addr-0x400-0x40F/m-p/2085624#M48074</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d'écran 2025-04-23 180018.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/334533i41014A0DFDB93933/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d'écran 2025-04-23 180018.png" alt="Capture d'écran 2025-04-23 180018.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d'écran 2025-04-23 180036.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/334532i0D270F5B167164CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d'écran 2025-04-23 180036.png" alt="Capture d'écran 2025-04-23 180036.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 17:03:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K118-Protection-bytes-in-flash-at-addr-0x400-0x40F/m-p/2085624#M48074</guid>
      <dc:creator>nourgati</dc:creator>
      <dc:date>2025-04-23T17:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: S32K118 Protection bytes in flash at addr. 0x400 - 0x40F</title>
      <link>https://community.nxp.com/t5/S32K/S32K118-Protection-bytes-in-flash-at-addr-0x400-0x40F/m-p/2085626#M48075</link>
      <description>&lt;P&gt;When I try to connect to my S32K118 MCU, I encounter an error. I believe that during the last programming session, the device wrote to the secure zone of the flash (the flash configuration field at 0x400–0x40F), which should be protected. I don’t understand why this write occurred. As a result, I cannot reconnect to the device to erase it or perform any other actions. how can i unlock it?? please a response&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 17:08:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K118-Protection-bytes-in-flash-at-addr-0x400-0x40F/m-p/2085626#M48075</guid>
      <dc:creator>nourgati</dc:creator>
      <dc:date>2025-04-23T17:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: S32K118 Protection bytes in flash at addr. 0x400 - 0x40F</title>
      <link>https://community.nxp.com/t5/S32K/S32K118-Protection-bytes-in-flash-at-addr-0x400-0x40F/m-p/2087439#M48176</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/249717"&gt;@nourgati&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please use J-Link Commander to read the MDM-AP registers (see Section 58.6, "MDM-AP Status and Control Registers," in the S32K1xx Series Reference Manual, Rev. 14.1). Then, manually trigger the mass-erase. Before you do this, make sure the MDM-AP_STATUS[1] bit (Flash ready) and the MDM-AP_STATUS[5] bit (mass erase enabled) are both set. You can find the J-Link script in the &lt;A href="https://kb.segger.com/S32Kxxx" target="_blank" rel="noopener"&gt;S32Kxxx SEGGER Knowledge Base&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Also, before the MCU was locked, did you enable CSEc (keys allocated) in the MCU? This might have happened if you tested the encrypted SDK example. If CSEc was enabled before the MCU was locked, you cannot recover the MCU, as mass erase is not allowed even if the MDM-AP status register shows that mass erase is enabled.&lt;/P&gt;
&lt;P&gt;Be aware that the first sector might not be programmed correctly when loading new code, which can cause the MCU to become permanently locked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, VaneB&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 17:52:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K118-Protection-bytes-in-flash-at-addr-0x400-0x40F/m-p/2087439#M48176</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2025-04-25T17:52:16Z</dc:date>
    </item>
  </channel>
</rss>

