<?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: Generate NVM key returns HSE_SRV_RSP_INVALID_PARAM in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Generate-NVM-key-returns-HSE-SRV-RSP-INVALID-PARAM/m-p/2097340#M48776</link>
    <description>&lt;P&gt;All keys in RAM and in NVM are empty after catalog formatting. Easiest option to check if a key is empty or not: try to use such key. In your case, you can try to calculate CMAC over a few bytes. If the key is empty, you will get response HSE_ SRV_ RSP_ KEY_ EMPTY. &lt;/P&gt;
&lt;P&gt;A key can be erased by HSE_SRV_ID_ERASE_KEY service:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1747225361701.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/337780iB79A74534FA80D35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1747225361701.png" alt="lukaszadrapa_0-1747225361701.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Take a look at hseEraseKeySrv_t in HSE Service API reference manual for details. &lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 May 2025 12:24:11 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2025-05-14T12:24:11Z</dc:date>
    <item>
      <title>Generate NVM key returns HSE_SRV_RSP_INVALID_PARAM</title>
      <link>https://community.nxp.com/t5/S32K/Generate-NVM-key-returns-HSE-SRV-RSP-INVALID-PARAM/m-p/2096486#M48721</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I previously implemented CMAC generation and verification using a RAM key (hardcoded in the application), and it worked successfully. Now, I'm trying to switch to using a key generated by the HSE and stored in the NVM key catalog. However, when I attempt to generate the key, I receive the response HSE_SRV_RSP_INVALID_PARAM.&lt;/P&gt;&lt;P class=""&gt;What could be the possible reasons for this error? Do I need to explicitly store the key in NVM after generation, or does the HSE handle that internally?&lt;/P&gt;&lt;P class=""&gt;I've attached relevant code and images. Any guidance would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeerthiT_0-1747138410211.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/337571iC3D8849FD23CD791/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeerthiT_0-1747138410211.png" alt="KeerthiT_0-1747138410211.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeerthiT_1-1747138445179.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/337572iD0F0484D1CCFB0D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeerthiT_1-1747138445179.png" alt="KeerthiT_1-1747138445179.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 12:14:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Generate-NVM-key-returns-HSE-SRV-RSP-INVALID-PARAM/m-p/2096486#M48721</guid>
      <dc:creator>kerti1</dc:creator>
      <dc:date>2025-05-13T12:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Generate NVM key returns HSE_SRV_RSP_INVALID_PARAM</title>
      <link>https://community.nxp.com/t5/S32K/Generate-NVM-key-returns-HSE-SRV-RSP-INVALID-PARAM/m-p/2097213#M48763</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/249628"&gt;@kerti1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't see problem in the parameters. &lt;/P&gt;
&lt;P&gt;1. Could you try to disable data cache to confirm it is not cache issue?&lt;/P&gt;
&lt;P&gt;2. How does your NVM key catalog look like? Is the KeyHandle correct? &lt;/P&gt;
&lt;P&gt;HSE_SRV_ID_KEY_GENERATE service stores the key to NVM catalog, it's not done by user. The NVM key must be empty when calling the service (it must be erased if it is not empty) and SuperUser rights are needed. &lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 09:43:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Generate-NVM-key-returns-HSE-SRV-RSP-INVALID-PARAM/m-p/2097213#M48763</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-05-14T09:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Generate NVM key returns HSE_SRV_RSP_INVALID_PARAM</title>
      <link>https://community.nxp.com/t5/S32K/Generate-NVM-key-returns-HSE-SRV-RSP-INVALID-PARAM/m-p/2097242#M48768</link>
      <description>&lt;P&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;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. Just now I was able to generate the NVM keys. Yes, I always disable the Data cache.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. How does your NVM key catalog look like? Is the KeyHandle correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;As you suggested, It is the issue of the NVM key catalog. I changed to the attached below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeerthiT_0-1747216941800.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/337758i26E3203EEB598980/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeerthiT_0-1747216941800.png" alt="KeerthiT_0-1747216941800.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The NVM key must be empty when calling the service (it must be erased if it is not empty) and SuperUser rights are needed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I have superuser rights. How would i know that the NVM key is empty or not? If not how to erase it ?. I would be helpful if i get to know these.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 10:04:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Generate-NVM-key-returns-HSE-SRV-RSP-INVALID-PARAM/m-p/2097242#M48768</guid>
      <dc:creator>kerti1</dc:creator>
      <dc:date>2025-05-14T10:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Generate NVM key returns HSE_SRV_RSP_INVALID_PARAM</title>
      <link>https://community.nxp.com/t5/S32K/Generate-NVM-key-returns-HSE-SRV-RSP-INVALID-PARAM/m-p/2097340#M48776</link>
      <description>&lt;P&gt;All keys in RAM and in NVM are empty after catalog formatting. Easiest option to check if a key is empty or not: try to use such key. In your case, you can try to calculate CMAC over a few bytes. If the key is empty, you will get response HSE_ SRV_ RSP_ KEY_ EMPTY. &lt;/P&gt;
&lt;P&gt;A key can be erased by HSE_SRV_ID_ERASE_KEY service:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1747225361701.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/337780iB79A74534FA80D35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1747225361701.png" alt="lukaszadrapa_0-1747225361701.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Take a look at hseEraseKeySrv_t in HSE Service API reference manual for details. &lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 12:24:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Generate-NVM-key-returns-HSE-SRV-RSP-INVALID-PARAM/m-p/2097340#M48776</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-05-14T12:24:11Z</dc:date>
    </item>
  </channel>
</rss>

