<?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のトピックAuthentication of another bootloader while S32K312 MCU SecureBoot is enabled</title>
    <link>https://community.nxp.com/t5/S32K/Authentication-of-another-bootloader-while-S32K312-MCU/m-p/2396950#M59954</link>
    <description>&lt;P&gt;Hello, I would like to inquire if there is a way to re-authenticate when changing the FBL after activating Secureboot.&lt;/P&gt;&lt;P&gt;When changing to a different FBL while Secureboot is enabled, the META Data values ​​generated via the HMAC Key change. As the FBL is changed, the HSE needs to recalculate the META Data using the HMAC Key; however, because the HMAC Key is deleted due to the new FBL, recalculating the META Data becomes impossible. Consequently, a reset occurs due to a verification failure at the FBL, making it impossible to launch the application. Is there a way to re-authenticate the changed FBL using the HMAC Key, thereby allowing both the FBL and the application to run normally?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FBL_FAIL_scenario.png" style="width: 529px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/392699iBC2F7D469D0B5E66/image-dimensions/529x279?v=v2" width="529" height="279" role="button" title="FBL_FAIL_scenario.png" alt="FBL_FAIL_scenario.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2026 00:48:52 GMT</pubDate>
    <dc:creator>jeongwoo</dc:creator>
    <dc:date>2026-07-21T00:48:52Z</dc:date>
    <item>
      <title>Authentication of another bootloader while S32K312 MCU SecureBoot is enabled</title>
      <link>https://community.nxp.com/t5/S32K/Authentication-of-another-bootloader-while-S32K312-MCU/m-p/2396950#M59954</link>
      <description>&lt;P&gt;Hello, I would like to inquire if there is a way to re-authenticate when changing the FBL after activating Secureboot.&lt;/P&gt;&lt;P&gt;When changing to a different FBL while Secureboot is enabled, the META Data values ​​generated via the HMAC Key change. As the FBL is changed, the HSE needs to recalculate the META Data using the HMAC Key; however, because the HMAC Key is deleted due to the new FBL, recalculating the META Data becomes impossible. Consequently, a reset occurs due to a verification failure at the FBL, making it impossible to launch the application. Is there a way to re-authenticate the changed FBL using the HMAC Key, thereby allowing both the FBL and the application to run normally?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FBL_FAIL_scenario.png" style="width: 529px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/392699iBC2F7D469D0B5E66/image-dimensions/529x279?v=v2" width="529" height="279" role="button" title="FBL_FAIL_scenario.png" alt="FBL_FAIL_scenario.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2026 00:48:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Authentication-of-another-bootloader-while-S32K312-MCU/m-p/2396950#M59954</guid>
      <dc:creator>jeongwoo</dc:creator>
      <dc:date>2026-07-21T00:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication of another bootloader while S32K312 MCU SecureBoot is enabled</title>
      <link>https://community.nxp.com/t5/S32K/Authentication-of-another-bootloader-while-S32K312-MCU/m-p/2397051#M59957</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231811"&gt;@jeongwoo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is essentially the purpose of Secure Boot: to prevent execution of software that fails authentication.&lt;/P&gt;
&lt;P&gt;The key question is whether you still have access to the debug interface, or whether the issue must be recovered in the field without debugger access.&lt;/P&gt;
&lt;P&gt;In the field, if there is no alternate/recovery image that was designed with such functionality in advance (for example, importing an HMAC key, generating a new authentication tag, accepting a new externally generated authentication tag, or reinstalling/reconfiguring the SMR), then recovery is generally not possible.&lt;/P&gt;
&lt;P&gt;If you have access to the debug interface, the simplest solution is typically to calculate a new authentication tag externally and program the updated tag into flash using a debugger. This approach requires that the HSE_SMR_CFG_FLAG_INSTALL_AUTH flag was set when the SMR was installed.&lt;/P&gt;
&lt;P&gt;If HSE_SMR_CFG_FLAG_INSTALL_AUTH was not set, HSE uses the internally stored hash for verification. In that case, updating the authentication tag alone is not sufficient and the SMR must be reinstalled with the new image parameters.&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>Tue, 21 Jul 2026 06:50:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Authentication-of-another-bootloader-while-S32K312-MCU/m-p/2397051#M59957</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2026-07-21T06:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication of another bootloader while S32K312 MCU SecureBoot is enabled</title>
      <link>https://community.nxp.com/t5/S32K/Authentication-of-another-bootloader-while-S32K312-MCU/m-p/2397646#M59993</link>
      <description>&lt;P&gt;Hello Lukas,&lt;/P&gt;&lt;P&gt;In the previous state, our controller does not have HSE_SMR_CFG_FLAG_INSTALL_AUTH set. I'm trying to apply the method you mentioned — reinstalling the SMR with new image parameters. Is the relevant part of Fota_S32k3_SecureBootProcess shown below correct?&lt;/P&gt;&lt;P&gt;pSmrEntryInstall-&amp;gt;accessMode = HSE_ACCESS_MODE_ONE_PASS;&lt;BR /&gt;pSmrEntryInstall-&amp;gt;entryIndex = 0u;&lt;BR /&gt;pSmrEntryInstall-&amp;gt;pSmrEntry = (HOST_ADDR)&amp;amp;smrEntry;&lt;/P&gt;&lt;P&gt;pSmrEntryInstall-&amp;gt;pSmrData = (HOST_ADDR)IVT.pAppImg_addr_0; /* pointing to active partition */&lt;BR /&gt;pSmrEntryInstall-&amp;gt;smrDataLength = smrEntry.smrSize;&lt;BR /&gt;pSmrEntryInstall-&amp;gt;pAuthTag[0] = (HOST_ADDR)smrEntry.pInstAuthTag[0]; /* pointing to passive partition */&lt;BR /&gt;pSmrEntryInstall-&amp;gt;pAuthTag[1] = (HOST_ADDR)smrEntry.pInstAuthTag[1]; /* pointing to passive partition */&lt;BR /&gt;pSmrEntryInstall-&amp;gt;authTagLength[0] = HmacTagLength;&lt;BR /&gt;pSmrEntryInstall-&amp;gt;authTagLength[1] = HmacTagLength;&lt;BR /&gt;If this is correct, when I run the HSE_SRV_ID_SMR_ENTRY_INSTALL service, the HseResponse is returned as 0xA5AA5317, which corresponds to:&lt;/P&gt;&lt;P&gt;#define HSE_SRV_RSP_KEY_EMPTY ((hseSrvResponse_t)0xA5AA5317UL)&lt;BR /&gt;indicating that the key is empty. (As I asked previously, I suspect this is displayed because that part has been erased.)&lt;/P&gt;&lt;P&gt;I would greatly appreciate it if you could guide me on how to inject the key or otherwise resolve this issue.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2026 09:17:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Authentication-of-another-bootloader-while-S32K312-MCU/m-p/2397646#M59993</guid>
      <dc:creator>jeongwoo</dc:creator>
      <dc:date>2026-07-22T09:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication of another bootloader while S32K312 MCU SecureBoot is enabled</title>
      <link>https://community.nxp.com/t5/S32K/Authentication-of-another-bootloader-while-S32K312-MCU/m-p/2398727#M60038</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231811"&gt;@jeongwoo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can see no problem in those parameters. But you shared only hseSmrEntryInstallSrv_t but not hseSmrEntry_t (pSmrEntryInstall-&amp;gt;pSmrEntry = (HOST_ADDR)&amp;amp;smrEntry;).&lt;/P&gt;
&lt;P&gt;Structure hseSmrEntry_t contains other important parameters needed for installation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To confirm if the key is erased or not, you can use service HSE_SRV_ID_GET_KEY_INFO, structure struct hseGetKeyInfoSrv_t. Using this service, you will get information in hseKeyInfo_t, so you can check the state of key.&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>Fri, 24 Jul 2026 10:29:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Authentication-of-another-bootloader-while-S32K312-MCU/m-p/2398727#M60038</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2026-07-24T10:29:15Z</dc:date>
    </item>
  </channel>
</rss>

