<?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 CSEc Error</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2200878#M54271</link>
    <description>&lt;P&gt;I did quick test on my board and it works as expected - I can enable CSEc by "Initial Firmware", then the CSEc works as expected and then I can reset the device by "Reset Firmware". But I noticed one difference: using the same configuration, DEPART is set 0x04 by the firmware. If I click on "Create Partition Code" in the tool, it is also showing 0x04:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1762521030560.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364461i5CCF7239DB9723D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1762521030560.png" alt="lukaszadrapa_0-1762521030560.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But your screenshot shows that the DEPART is 0x08. It looks like the device is already partitioned but CSEc is not enabled.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can see it's not explicitly mentioned in the user manual of the tool, but I supposed that it expects that the partition is not set when running "Initial Firmware".&lt;/P&gt;
&lt;P&gt;I would try to create RAM project and just run&amp;nbsp;FLASH_DRV_EraseAllBlockUnsecure command. Not just&amp;nbsp;FLASH_DRV_EraseAllBlock command because then it would be necessary to program flash configuration field to unsecured state.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe that it will work as expected after such mass erase.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
    <pubDate>Fri, 07 Nov 2025 13:17:39 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2025-11-07T13:17:39Z</dc:date>
    <item>
      <title>S32K144 CSEc Error</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2198235#M54114</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, I am using the CSEc of the S32K144 chip. I use the S32K1xx CSEC Tool to generate an initialization binary file for the CSEc module, and download the initialization file into the S32K144 chip via J-link. Then I run my own program, and a Reset_Handler occurs at CSEC_DRV_InitRNG. Why is this happening? Did I set something wrong? The pictures below show some of my code and configurations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason88619_0-1762250148114.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363921iB18391C6A5F728A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason88619_0-1762250148114.png" alt="Jason88619_0-1762250148114.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason88619_1-1762250165059.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363922i704245E3D9930F59/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason88619_1-1762250165059.png" alt="Jason88619_1-1762250165059.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason88619_2-1762250205472.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363923i6012E793FAF00BE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason88619_2-1762250205472.png" alt="Jason88619_2-1762250205472.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 09:57:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2198235#M54114</guid>
      <dc:creator>Jason88619</dc:creator>
      <dc:date>2025-11-04T09:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Error</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2199066#M54163</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/252822"&gt;@Jason88619&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CSE PRAM is not writeable if the device is not partitioned and if CSEc is not enabled. This was discussed here, for example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/CSE-PRAM-is-not-writable-S32K146/td-p/1282095" target="_blank"&gt;https://community.nxp.com/t5/S32K/CSE-PRAM-is-not-writable-S32K146/td-p/1282095&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Was the InitFW loaded and executed successfully?&amp;nbsp;What can you see in FCFG1 register in SIM module?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 13:18:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2199066#M54163</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-11-05T13:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Error</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2199068#M54164</link>
      <description>&lt;P&gt;... and also please check FCSESTAT register in FTFC module.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 13:20:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2199068#M54164</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-11-05T13:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Error</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2200433#M54236</link>
      <description>&lt;P&gt;&lt;SPAN&gt;As you mentioned, I checked my FCFG1 register and FCSESTAT register, but their values showed no changes before the program entered the Reset_Handle 。According to the FCFG1 register, the EEPROM memory has been allocated. However, I executed the Reset program generated by the S32K1xx CSEc Tool (though it may not have executed successfully). From the FCSESTAT register, the status of CSEc remains "Busy", even though no operations are currently being performed on CSEc. What should I do to restore CSEc to normal?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason88619_1-1762481705476.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364350iACA57A1FC4759961/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason88619_1-1762481705476.png" alt="Jason88619_1-1762481705476.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="Jason88619_0-1762481652877.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364347i99B4728D0CA56F7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason88619_0-1762481652877.png" alt="Jason88619_0-1762481652877.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regard,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 02:15:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2200433#M54236</guid>
      <dc:creator>Jason88619</dc:creator>
      <dc:date>2025-11-07T02:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Error</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2200446#M54238</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Inside the CSEC_DRV_InitRNG function, immediately after executing the line&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/* Write the command header. This will trigger the command execution. */
CSEC_WriteCommandHeader(CSEC_CMD_INIT_RNG, CSEC_FUNC_FORMAT_COPY&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;/* Write the command header. This will trigger the command execution. */ CSEC_WriteCommandHeader(CSEC_CMD_INIT_RNG, CSEC_FUNC_FORMAT_COPY CSEC_CALL_SEQ_FIRST, CSEC_SECRET_KEY); the program enters DefaultISR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason88619_0-1762482730670.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364355iB0EE70D8DC865C17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason88619_0-1762482730670.png" alt="Jason88619_0-1762482730670.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 02:37:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2200446#M54238</guid>
      <dc:creator>Jason88619</dc:creator>
      <dc:date>2025-11-07T02:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Error</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2200878#M54271</link>
      <description>&lt;P&gt;I did quick test on my board and it works as expected - I can enable CSEc by "Initial Firmware", then the CSEc works as expected and then I can reset the device by "Reset Firmware". But I noticed one difference: using the same configuration, DEPART is set 0x04 by the firmware. If I click on "Create Partition Code" in the tool, it is also showing 0x04:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1762521030560.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364461i5CCF7239DB9723D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1762521030560.png" alt="lukaszadrapa_0-1762521030560.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But your screenshot shows that the DEPART is 0x08. It looks like the device is already partitioned but CSEc is not enabled.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can see it's not explicitly mentioned in the user manual of the tool, but I supposed that it expects that the partition is not set when running "Initial Firmware".&lt;/P&gt;
&lt;P&gt;I would try to create RAM project and just run&amp;nbsp;FLASH_DRV_EraseAllBlockUnsecure command. Not just&amp;nbsp;FLASH_DRV_EraseAllBlock command because then it would be necessary to program flash configuration field to unsecured state.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe that it will work as expected after such mass erase.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 13:17:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2200878#M54271</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-11-07T13:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Error</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2201384#M54295</link>
      <description>&lt;DIV class=""&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;As you suspected, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CSEC_DRV_InitRNG&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function executed successfully after&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FLASH_DRV_EraseAllBlockUnsecure. Although for some unknown reason a HardFault occurred&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;during&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;the execution of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FLASH_DRV_EraseAllBlockUnsecure, the function&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;subsequently&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;completed successfully. After that, the CSEc was able to initialize normally.&lt;/DIV&gt;&lt;DIV class=""&gt;Thank you very much for your explanations and help.&lt;SPAN&gt;Wishing you happiness every single day!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Best&amp;nbsp;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Nov 2025 02:49:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Error/m-p/2201384#M54295</guid>
      <dc:creator>Jason88619</dc:creator>
      <dc:date>2025-11-10T02:49:56Z</dc:date>
    </item>
  </channel>
</rss>

