<?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: S32K144 chip CESc function</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2026808#M45052</link>
    <description>&lt;P&gt;The flash algorithm used by JLink is proprietary of Segger, I don't know what is does exactly. It's possible that it tried to run mass erase but that's not allowed due to enabled CSEc. Maye it tried to erase the flash by sectors, so the Flash Configuration Field was erased and then it crashed for another reason resulting to lockup. But this is a speculation only.&lt;/P&gt;
&lt;P&gt;From application note AN12130:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1736777551762.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/319273i5FE3347A889DF5FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1736777551762.png" alt="lukaszadrapa_0-1736777551762.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;Lukas&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2025 14:12:41 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2025-01-13T14:12:41Z</dc:date>
    <item>
      <title>S32K144 chip CESc function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2020800#M44679</link>
      <description>&lt;P&gt;When I set up partitions, enable CSEc function, generate MASTER_KEY and restore factory settings, repeated restarts will cause the chip to not connect to JLink. What is the reason? Is there a remedy available?&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;LI-SPOILER&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/317747i7D1B36E395EBEFF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Tue, 31 Dec 2024 11:03:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2020800#M44679</guid>
      <dc:creator>wangmingming</dc:creator>
      <dc:date>2024-12-31T11:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 chip CESc function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2021343#M44721</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/245061"&gt;@wangmingming&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the only limitation I know is that JLink cannot be used to load new application once the CSEc is enabled. It's because JLink uses mass erase which is not allowed when CSEc is enabled. For example, Pemicro erases the flash block by block, so it works. I'm not sure if Segger already changed this, you can ask them directly.&lt;/P&gt;
&lt;P&gt;If CMD_DBG_AUTH command was successful, I can't see a reason why it does not work. Are you sure you got ERC_NO_ERROR?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 14:49:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2021343#M44721</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-01-02T14:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 chip CESc function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2021506#M44735</link>
      <description>&lt;P&gt;The Jlink download program is downloaded directly by pressing F7, without erasing the chip. Theoretically, F7 will not erase the DFlash area. I confirm that CMD-DBG_SUTH is successful, as shown in the following figure&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 540px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/317928i0AAE54C202F17E3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 01:30:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2021506#M44735</guid>
      <dc:creator>wangmingming</dc:creator>
      <dc:date>2025-01-03T01:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 chip CESc function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2021514#M44738</link>
      <description>&lt;P&gt;The Jlink download program is downloaded directly by pressing F7, without erasing the chip. Theoretically, F7 will not erase the DFlash area. I confirm that CMD-DBG_SUTH is successful, as shown in the following figure. In addition, after CMD_SBG_SUTH is successful, the dflash area is not reallocated, and CSEC_DRV_Init is not called. MASTER_KEY (CSEC_DRV_LoadKey (CSEC_MASTER-ECU, M1, M2, M3, M4_out, M5_out) is directly loaded.) Although it returns an error, will this cause the chip to lock up when powered on next time.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 01:49:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2021514#M44738</guid>
      <dc:creator>wangmingming</dc:creator>
      <dc:date>2025-01-03T01:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 chip CESc function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2021695#M44756</link>
      <description>&lt;P&gt;This really should not cause any lock up. I do not have JLink but I have never had a problem when using other debuggers either from Pemicro or from Lauterbach. Once CMD_DBG_AUTH was successful, I could always start from the beggining. Even if you try to load a key after reseting a device back to factory state, nothing will happen, the command will be simply ignored. I tested this too in the past. So, I'm not really sure what's the problem on your side. &lt;BR /&gt;If JLink loads a project to RAM, it won't erase the flash. But if it is a flash project, I'm sure it erases the flash.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 07:23:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2021695#M44756</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-01-03T07:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 chip CESc function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2022046#M44785</link>
      <description>&lt;P&gt;When I first generated and loaded CSEC_MASTER-ECU, the return was successful. Afterwards, CSEc was restored to factory settings and returned successfully. Immediately after, I generated and loaded CSEC_MASTER-ECU again, and the result returned was also successful. But when I tried to reset CSEc to factory settings, I returned an error code. Why is that?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/318091i4681599A963C1735/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2025 03:36:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2022046#M44785</guid>
      <dc:creator>wangmingming</dc:creator>
      <dc:date>2025-01-04T03:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 chip CESc function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2022554#M44819</link>
      <description>&lt;P&gt;Are you sure you used the right MASTER_ECU_KEY second time? &lt;BR /&gt;And second possible reason - this could happen if you loaded a key which has WRITE_PROTECT attribute set. &lt;BR /&gt;These are the only reasons I can see. There are no known issues which could cause this.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 11:47:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2022554#M44819</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-01-06T11:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 chip CESc function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2026134#M45015</link>
      <description>&lt;P&gt;The reason for the lock is that when csec is enabled, jlink is used to perform the download program operation. As shown in the figure below, before downloading, jlink will first erase the chip, and the erase area contains dflash, which may cause the chip to lock. How can the chip be unlocked in this situation?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6.png" style="width: 569px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/319039i5C5AA2BA3641B6EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="6.png" alt="6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the locked state, the waveform of the reset pin is as follows&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3c1e54133eb1201aa7dab358debd43d.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/319040i3249771E87FAD7BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="3c1e54133eb1201aa7dab358debd43d.jpg" alt="3c1e54133eb1201aa7dab358debd43d.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2025 07:05:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2026134#M45015</guid>
      <dc:creator>wangmingming</dc:creator>
      <dc:date>2025-01-11T07:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 chip CESc function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2026808#M45052</link>
      <description>&lt;P&gt;The flash algorithm used by JLink is proprietary of Segger, I don't know what is does exactly. It's possible that it tried to run mass erase but that's not allowed due to enabled CSEc. Maye it tried to erase the flash by sectors, so the Flash Configuration Field was erased and then it crashed for another reason resulting to lockup. But this is a speculation only.&lt;/P&gt;
&lt;P&gt;From application note AN12130:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1736777551762.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/319273i5FE3347A889DF5FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1736777551762.png" alt="lukaszadrapa_0-1736777551762.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;Lukas&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 14:12:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2026808#M45052</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-01-13T14:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 chip CESc function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2027104#M45063</link>
      <description>&lt;P&gt;If the chip is locked due to erasing the chip while CSEc is enabled, is there any way to unlock it?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 01:05:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2027104#M45063</guid>
      <dc:creator>wangmingming</dc:creator>
      <dc:date>2025-01-14T01:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 chip CESc function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2027396#M45077</link>
      <description>&lt;P&gt;If the CSEc is still enabled and the flash configuration field is erased, there's no way to recover.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 08:10:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-chip-CESc-function/m-p/2027396#M45077</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-01-14T08:10:08Z</dc:date>
    </item>
  </channel>
</rss>

