<?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: S32K144 CSEc Secure Boot in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270409#M55802</link>
    <description>&lt;P&gt;This should not happen, I can't see a reason for that. The command&amp;nbsp;BOOT_DEFINE(128*1024*8, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt;) selects sequential mode, not strict mode. Even if it fails, everything should be working, just boot protected keys cannot be used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the reset line asserted all the time or is it toggling?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Dec 2025 09:54:57 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2025-12-31T09:54:57Z</dc:date>
    <item>
      <title>S32K144 CSEc Secure Boot</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270078#M55787</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Hardware:&lt;/STRONG&gt;&amp;nbsp;S32K144EVB-Q100&lt;BR /&gt;&lt;STRONG&gt;Software:&lt;/STRONG&gt;&amp;nbsp;S32 Design Studio, OpenBLT Bootloader, an5401-csec&lt;BR /&gt;&lt;BR /&gt;1.Can we use the BOOT_DEFINE to protect only the bootloader region?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;csec_error = BOOT_DEFINE(16*1024*8, 1); // Only 16KB for bootloader&lt;/P&gt;&lt;P&gt;2.What is the exact CPU behavior difference between boot flavors 0 and 1 when bootloader MAC verification fails? Specifically:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Flavor 0(strict):&lt;/STRONG&gt;&lt;SPAN&gt; Does the CPU halt/block execution or where does control remain?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Flavor 1(serial):&lt;/STRONG&gt;&lt;SPAN&gt; Does the CPU continue to user code or where does control remain?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;3.If bootloader verification passes (BOK = 1), can we directly calculate MAC for application using MAC functions without requiring another BOOT_DEFINE?&amp;nbsp;&lt;/SPAN&gt;CSEc hardware verifies bootloader autonomously using BOOT_DEFINE for bootloader only. Then bootloader calculates MAC for application directly using CMAC functions with no BOOT_DEFINE needed for application region.&amp;nbsp;&lt;SPAN&gt;Is this approach fine?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&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>Tue, 30 Dec 2025 12:48:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270078#M55787</guid>
      <dc:creator>Kishore_14</dc:creator>
      <dc:date>2025-12-30T12:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Secure Boot</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270186#M55796</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/257154"&gt;@Kishore_14&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Yes, it is common practice to protect only a bootloader. The bootloader then can check MAC of application(s) to create a chain of trust. &lt;BR /&gt;Just for reference, we have this application note for first device with CSE module (quite old device MPC5646C, CSE module is different but the functionality is still the same):&lt;BR /&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4235.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN4235.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.nxp.com/docs/en/application-note-software/AN4235video.zip" target="_blank"&gt;https://www.nxp.com/docs/en/application-note-software/AN4235video.zip&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2. &lt;BR /&gt;Sequential or parallel boot mode: if secure boot fails, the only consequence is that boot protected keys (i.e. keys with BOOT_PROT attribute set) cannot be used. The application is still executed as usual.&lt;/P&gt;
&lt;P&gt;Strict sequential boot mode: if secure boot mode fails, the device will never leave reset state. There’s no way to recover, the only solution is to replace the chip.&lt;/P&gt;
&lt;P&gt;3. As mentioned above, yes. Bootloader is supposed to check MAC of the application. Autonomous secure boot can cover only one area which always starts at 0x0. This is hardwired and it cannot be changed. User can only define length of that area.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Tue, 30 Dec 2025 18:37:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270186#M55796</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-12-30T18:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Secure Boot</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270349#M55799</link>
      <description>&lt;P&gt;Hi Lukas&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I configured CSEc with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;BOOT_DEFINE(128*1024*8, 1)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;which should be sequential mode (flavor 1), but when secure boot verification failed, my board went into continuous reset and I was unable to recover - similar to what you described for strict sequential mode.&lt;/P&gt;&lt;P&gt;My setup details:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Used sequential boot mode (flavor 1)&lt;/LI&gt;&lt;LI&gt;Flashed secure boot function to debug RAM&lt;/LI&gt;&lt;LI&gt;Application flashed to debug flash area starting at address 0x0&lt;/LI&gt;&lt;LI&gt;Expected: Application to execute normally despite verification failure&lt;/LI&gt;&lt;LI&gt;Actual: Board stuck in continuous reset loop, no recovery possible&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Is there something in my setup that could cause sequential mode to behave like strict mode?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2025 05:44:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270349#M55799</guid>
      <dc:creator>Kishore_14</dc:creator>
      <dc:date>2025-12-31T05:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Secure Boot</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270409#M55802</link>
      <description>&lt;P&gt;This should not happen, I can't see a reason for that. The command&amp;nbsp;BOOT_DEFINE(128*1024*8, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt;) selects sequential mode, not strict mode. Even if it fails, everything should be working, just boot protected keys cannot be used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the reset line asserted all the time or is it toggling?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2025 09:54:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270409#M55802</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-12-31T09:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Secure Boot</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270413#M55803</link>
      <description>&lt;P&gt;Reset line was toggling when observed.&lt;BR /&gt;&lt;BR /&gt;Also was not able to load the application again and Resetting to Factory state was also not possible.&lt;BR /&gt;As my understanding, unable to Reset to factory state might be due to Master_ECU_Key being Boot_protected.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2025 10:22:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270413#M55803</guid>
      <dc:creator>Kishore_14</dc:creator>
      <dc:date>2025-12-31T10:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Secure Boot</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270694#M55814</link>
      <description>&lt;P&gt;Is it possible to load any RAM application?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 09:14:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270694#M55814</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2026-01-02T09:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Secure Boot</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270719#M55815</link>
      <description>&lt;P&gt;We are not able to load any RAM Applications too.&lt;BR /&gt;We have tried load reset to factory was in RAM. But can't able to load.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 09:24:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2270719#M55815</guid>
      <dc:creator>Kishore_14</dc:creator>
      <dc:date>2026-01-02T09:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Secure Boot</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2271955#M55847</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It looks like we are getting back to this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot-Device-Stuck-in-Secure-State-Cannot/m-p/2250277/highlight/true#M54870" target="_blank"&gt;https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot-Device-Stuck-in-Secure-State-Cannot/m-p/2250277/highlight/true#M54870&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot-Device-Stuck-in-Secure-State-Cannot/m-p/2252172/highlight/true#M54953" target="_blank"&gt;https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot-Device-Stuck-in-Secure-State-Cannot/m-p/2252172/highlight/true#M54953&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But it’s not clear to me why this happens. I can see no problem in your procedure. I was used to test this in different order – I usually loaded some application to the flash as a first step and then I run 4_secure_boot_add_BOOT_MAC_manual from AN5401 to enable secure boot. But it should be possible to do that also in opposite way, I can see no problem here. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When do you import BOOT_MAC key? Maybe that’s the problem. If you do that at the same time when BOOT_DEFINE is executed, BOOT_MAC will be calculated and stored to secure flash automatically after next reset. If you are going to load an application right after that, there could be a collision between this automatic calculation and your debugger loading new application. This is the only scenario I can think of.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 07:09:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Secure-Boot/m-p/2271955#M55847</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2026-01-05T07:09:00Z</dc:date>
    </item>
  </channel>
</rss>

