<?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 S32K324 HSE secure boot in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K324-HSE-secure-boot/m-p/1770388#M29394</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello NXP team:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am developing secure boot using HSE on S32K324.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have installed the HSE firmware(A/B swap) on the chip and HSE module is working.(ex: can read the HSE version by service)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I wanted to familiarize how to use the HSE module, so I downloaded the sample code (S32K3XX_demo_app) from the official website and&amp;nbsp;execute it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But now I have a problem, and I describe my test steps:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Run the sample code(S32K3XX_demo_app), and the program stays at line 155.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="james131618_0-1701921034864.png" style="width: 537px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253309i9CE58FE6DDAF2875/image-dimensions/537x137?v=v2" width="537" height="137" role="button" title="james131618_0-1701921034864.png" alt="james131618_0-1701921034864.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; &amp;nbsp;I set the variable gRunExampleTest to APP_SECURE_BOOT_CONFIGURED in the Expressions&amp;nbsp; &amp;nbsp; &amp;nbsp; window, and the program will enter line 241.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="james131618_1-1701921082779.png" style="width: 459px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253311i5350C2BDF7C42710/image-dimensions/459x76?v=v2" width="459" height="76" role="button" title="james131618_1-1701921082779.png" alt="james131618_1-1701921082779.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; &lt;SPAN&gt;Enter the function SecureBootService(), &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;3-1&lt;/SPAN&gt;：&lt;SPAN&gt;execute HSE_EraseKeys() return HSE_SRV_RSP_OK &lt;/SPAN&gt;→&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FormatKeyCatalog() return HSE_SRV_RSP_OK &lt;/SPAN&gt;→ &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ImportSymmetricKeys() return HSE_SRV_RSP_OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;3-2：execute SecureBootConfiguration() → ConfigureBasicSecureBoot() →&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Check_DebugKey_status() return HSE_SRV_RSP_NOT_ALLOWED&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="james131618_2-1701921196026.png" style="width: 531px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253312iC366EF8A4E9FE820/image-dimensions/531x170?v=v2" width="531" height="170" role="button" title="james131618_2-1701921196026.png" alt="james131618_2-1701921196026.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My qusetion:&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;How can I make Check_DebugKey_status() return HSE_SRV_RSP_OK&lt;/STRONG&gt;?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The question has troubled me for a long time.&lt;/P&gt;&lt;P&gt;I hope to get a reply as soon as possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2023 03:56:58 GMT</pubDate>
    <dc:creator>james131618</dc:creator>
    <dc:date>2023-12-07T03:56:58Z</dc:date>
    <item>
      <title>S32K324 HSE secure boot</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-HSE-secure-boot/m-p/1770388#M29394</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello NXP team:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am developing secure boot using HSE on S32K324.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have installed the HSE firmware(A/B swap) on the chip and HSE module is working.(ex: can read the HSE version by service)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I wanted to familiarize how to use the HSE module, so I downloaded the sample code (S32K3XX_demo_app) from the official website and&amp;nbsp;execute it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But now I have a problem, and I describe my test steps:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Run the sample code(S32K3XX_demo_app), and the program stays at line 155.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="james131618_0-1701921034864.png" style="width: 537px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253309i9CE58FE6DDAF2875/image-dimensions/537x137?v=v2" width="537" height="137" role="button" title="james131618_0-1701921034864.png" alt="james131618_0-1701921034864.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; &amp;nbsp;I set the variable gRunExampleTest to APP_SECURE_BOOT_CONFIGURED in the Expressions&amp;nbsp; &amp;nbsp; &amp;nbsp; window, and the program will enter line 241.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="james131618_1-1701921082779.png" style="width: 459px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253311i5350C2BDF7C42710/image-dimensions/459x76?v=v2" width="459" height="76" role="button" title="james131618_1-1701921082779.png" alt="james131618_1-1701921082779.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; &lt;SPAN&gt;Enter the function SecureBootService(), &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;3-1&lt;/SPAN&gt;：&lt;SPAN&gt;execute HSE_EraseKeys() return HSE_SRV_RSP_OK &lt;/SPAN&gt;→&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FormatKeyCatalog() return HSE_SRV_RSP_OK &lt;/SPAN&gt;→ &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ImportSymmetricKeys() return HSE_SRV_RSP_OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;3-2：execute SecureBootConfiguration() → ConfigureBasicSecureBoot() →&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Check_DebugKey_status() return HSE_SRV_RSP_NOT_ALLOWED&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="james131618_2-1701921196026.png" style="width: 531px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253312iC366EF8A4E9FE820/image-dimensions/531x170?v=v2" width="531" height="170" role="button" title="james131618_2-1701921196026.png" alt="james131618_2-1701921196026.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My qusetion:&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;How can I make Check_DebugKey_status() return HSE_SRV_RSP_OK&lt;/STRONG&gt;?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The question has troubled me for a long time.&lt;/P&gt;&lt;P&gt;I hope to get a reply as soon as possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 03:56:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-HSE-secure-boot/m-p/1770388#M29394</guid>
      <dc:creator>james131618</dc:creator>
      <dc:date>2023-12-07T03:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: S32K324 HSE secure boot</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-HSE-secure-boot/m-p/1771546#M29458</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226429"&gt;@james131618&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please take a look at the readme file:&lt;/P&gt;
&lt;P&gt;c:\NXP\HSE_DEMOAPP_S32K3XX_0_2_6_0\HSE_DEMOAPP_S32K3XX_0_2_6_0_ReadMe.pdf&lt;/P&gt;
&lt;P&gt;Section 4.2 says that Trace32 Lauterbach debugger is necessary to run the demo.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1702040176975.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253589i20CC6A82E05E2262/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1702040176975.png" alt="lukaszadrapa_0-1702040176975.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_1-1702040184198.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253590iBB9CA7E9F007B8B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_1-1702040184198.png" alt="lukaszadrapa_1-1702040184198.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can use user menu in the Trace32:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_2-1702040273251.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253591i8AD2E2144F85EC3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_2-1702040273251.png" alt="lukaszadrapa_2-1702040273251.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This demo app is not supposed to be used without Trace32. If you have Trace32, follow all the steps described in the readme file.&lt;/P&gt;
&lt;P&gt;If you don't have trace32, take a look at this set of examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=S32K3_HSE_DemoExamples" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=S32K3_HSE_DemoExamples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also if you are interested in Secure Boot, &lt;SPAN&gt;w&lt;/SPAN&gt;e provide Secure Boot application note including demo projects which explains all the steps in detail. It can be downloaded from:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/products/processors-and-microcontrollers/s32-automotive-platform/s32k-auto-general-purpose-mcus/s32k3-microcontrollers-for-automotive-general-purpose:S32K3?SAMLart=ST-AAF0E3YJDJej%2BJVBprc7Vu5rkUdezyXV53MMPGkpoghMIvu%2FgsHCmHCe" target="_blank"&gt;https://www.nxp.com/products/processors-and-microcontrollers/s32-automotive-platform/s32k-auto-general-purpose-mcus/s32k3-microcontrollers-for-automotive-general-purpose:S32K3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Application note can be found here:&lt;/P&gt;
&lt;P&gt;Documentation -&amp;gt; Secure Files -&amp;gt; Secure Boot Application note v0.1.1.0 (AN744511)&lt;/P&gt;
&lt;P&gt;Associated demo project can be downloaded here:&lt;/P&gt;
&lt;P&gt;Design Resources -&amp;gt; Software -&amp;gt; Secure Files -&amp;gt; SecureBootAppNoteDemo (SW745310)&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 13:01:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-HSE-secure-boot/m-p/1771546#M29458</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2023-12-08T13:01:15Z</dc:date>
    </item>
  </channel>
</rss>

