<?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: HashDataDefSrv returns Paramter Invalid</title>
    <link>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2254348#M55082</link>
    <description>&lt;P&gt;hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'll provide the service descriptor once I get back to the office&lt;BR /&gt;&lt;BR /&gt;Second issue returns&amp;nbsp;HSE_SRV_RSP_NOT_SUPPORTED. Can you elaborate more precisely about "disabling interrupts"?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Dec 2025 16:12:05 GMT</pubDate>
    <dc:creator>R_S002</dc:creator>
    <dc:date>2025-12-03T16:12:05Z</dc:date>
    <item>
      <title>HashDataDefSrv returns Paramter Invalid</title>
      <link>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2253053#M54998</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;BR /&gt;&lt;BR /&gt;I'm using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HseResponse = HashDataDefSrv(HSE_HASH_ALGO_SHA2_256,(uint32_t) sizeof(test),&lt;/SPAN&gt;&lt;SPAN&gt; test, &amp;amp;image_hash_length, image_hash, HSE_SGT_OPTION_NONE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;function for calculating the HASH of an image stored as const uint_8 [], and I'm getting returned with Parameter Invalid. So I decided to test the hash on a smaller array, but with a similar issue.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help in resolving this issue!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Additionally, I found a glitch when using HSE with RTD 3.0.0, which is:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I run my code without any breakpoint, my HSE API are always responding NOT_OK(not ok means anything besides the HSE_OK or HSE_SUCCESS), but when I manually jump over these API, I get HSE_SUCCESS&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 09:48:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2253053#M54998</guid>
      <dc:creator>R_S002</dc:creator>
      <dc:date>2025-12-02T09:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: HashDataDefSrv returns Paramter Invalid</title>
      <link>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2253227#M55015</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/253472"&gt;@R_S002&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As a first step, could&amp;nbsp; you try to disable data cache in your project? This is common reason for &lt;/SPAN&gt;HSE_SRV_RSP_INVALID_PARAM error. All data objects used for communication with HSE must be forced to non-cacheable memory. Disabling of the data cache will quickly confirm if this is the case.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 13:38:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2253227#M55015</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-12-02T13:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: HashDataDefSrv returns Paramter Invalid</title>
      <link>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2253749#M55042</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;BR /&gt;I tried your solution(Disabling D_CACHE_ENABLE), but it didn't work.&lt;/P&gt;&lt;P&gt;and you didnt mention anything about my additional issue.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 06:21:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2253749#M55042</guid>
      <dc:creator>R_S002</dc:creator>
      <dc:date>2025-12-03T06:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: HashDataDefSrv returns Paramter Invalid</title>
      <link>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2254326#M55080</link>
      <description>&lt;P&gt;If it is not caused by data cache, I would need more details for both issues.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the hash service, could you take a screenshot of the service descriptor right before sending it to HSE?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And regarding the second issue - could you check what error code was returned by HSE exactly? If it works when stepping the code, it could be some kind of timing issue or coherency issue. Did you try to disable interrupts when executing these HSE services?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 15:35:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2254326#M55080</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-12-03T15:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: HashDataDefSrv returns Paramter Invalid</title>
      <link>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2254348#M55082</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'll provide the service descriptor once I get back to the office&lt;BR /&gt;&lt;BR /&gt;Second issue returns&amp;nbsp;HSE_SRV_RSP_NOT_SUPPORTED. Can you elaborate more precisely about "disabling interrupts"?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 16:12:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2254348#M55082</guid>
      <dc:creator>R_S002</dc:creator>
      <dc:date>2025-12-03T16:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: HashDataDefSrv returns Paramter Invalid</title>
      <link>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2255254#M55121</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="R_S002_0-1764847866495.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/368621i397A27AA57C0C0A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="R_S002_0-1764847866495.png" alt="R_S002_0-1764847866495.png" /&gt;&lt;/span&gt;&lt;/P&gt;&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;Image of HASH Function before execution&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 11:32:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2255254#M55121</guid>
      <dc:creator>R_S002</dc:creator>
      <dc:date>2025-12-04T11:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: HashDataDefSrv returns Paramter Invalid</title>
      <link>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2256062#M55171</link>
      <description>&lt;P&gt;I did very quick test on my board and I can see the same problem. I have never had a problem with hashing, so let me check what's going on. I'm running out of time today, so I will check it next week.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 09:59:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2256062#M55171</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-12-05T09:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: HashDataDefSrv returns Paramter Invalid</title>
      <link>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2257177#M55216</link>
      <description>&lt;P&gt;Ok, it's caused by pHashLength, most likely. The variable where this pointer points must be initialized to size of your hash buffer. It must not be zero. HSE Service API reference manual says:&lt;/P&gt;
&lt;P&gt;"INPUT/OUTPUT: Pointer to a uint32_t location in which the hash length&lt;BR /&gt;in bytes is stored. &lt;STRONG&gt;On calling this service, this parameter shall contain the&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;size of the buffer provided by host.&lt;/STRONG&gt; When the request has fi nished, the&lt;BR /&gt;actual length of the returned value shall be stored. If the buffer is smaller&lt;BR /&gt;than the size of the hash, the hash will be truncated"&lt;/P&gt;
&lt;P&gt;So, please check the content of this parameter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 12:25:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2257177#M55216</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-12-08T12:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: HashDataDefSrv returns Paramter Invalid</title>
      <link>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2257913#M55236</link>
      <description>&lt;P&gt;Can you share an example of how you tried and verified the HASH Function?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 09:42:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2257913#M55236</guid>
      <dc:creator>R_S002</dc:creator>
      <dc:date>2025-12-09T09:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: HashDataDefSrv returns Paramter Invalid</title>
      <link>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2258193#M55240</link>
      <description>&lt;P&gt;Here is simple example I used in the past:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;int main(void) {&lt;/P&gt;
&lt;P&gt;hseSrvResponse_t HseResponse;&lt;BR /&gt;uint8_t hash_result[&lt;STRONG&gt;64&lt;/STRONG&gt;] = {0U};&lt;BR /&gt;uint32_t &lt;STRONG&gt;hash_length = 64U&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;/*Check Fw Install Status*/&lt;BR /&gt;WaitForHSEFWInitToFinish();&lt;/P&gt;
&lt;P&gt;/* used test vectors: &lt;A href="https://www.di-mgt.com.au/sha_testvectors.html" target="_blank"&gt;https://www.di-mgt.com.au/sha_testvectors.html&lt;/A&gt; */&lt;BR /&gt;/* Input message: one million (1,000,000) repetitions of the character "a" (0x61). */&lt;BR /&gt;/* SHA-512 */&lt;BR /&gt;/* Expected result: */&lt;BR /&gt;/* e718483d0ce76964 4e2e42c7bc15b463 8e1f98b13b204428 5632a803afa973eb de0ff244877ea60a 4cb0432ce577c31b eb009c5c2c49aa2e 4eadb217ad8cc09b */&lt;/P&gt;
&lt;P&gt;HseResponse = HSE_HashDataBlocking&lt;BR /&gt;(&lt;BR /&gt;MU0,&lt;BR /&gt;HSE_ACCESS_MODE_ONE_PASS,&lt;BR /&gt;0,&lt;BR /&gt;HSE_HASH_ALGO_SHA2_512,&lt;BR /&gt;0x408000U, /* use attached cmm script to program one million of 'a' characters to this address */&lt;BR /&gt;1000000, /* length of data one million */&lt;BR /&gt;hash_result,&lt;BR /&gt;&amp;amp;hash_length&lt;BR /&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for (;;) {&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data to hash were programmed by external script to the flash.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 12:35:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HashDataDefSrv-returns-Paramter-Invalid/m-p/2258193#M55240</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-12-09T12:35:12Z</dc:date>
    </item>
  </channel>
</rss>

