<?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のトピックADKP Programming with HSE returning HSE_SRV_RSP_INVALID_PARAM</title>
    <link>https://community.nxp.com/t5/S32K/ADKP-Programming-with-HSE-returning-HSE-SRV-RSP-INVALID-PARAM/m-p/2270415#M55804</link>
    <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I am trying to program ADKP using HSE FW installed on MCU, but getting&amp;nbsp;HSE_SRV_RSP_INVALID_PARAM error.&lt;/P&gt;&lt;P&gt;Same sequence works well (&lt;SPAN&gt;HSE_SRV_RSP_OK&lt;/SPAN&gt;&lt;SPAN&gt;) if i do Step-In using debugger inside HSE_ProgramAdkp() function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can read HSE FW Version, Auth mode without any issue.&lt;/P&gt;&lt;P&gt;Only for ADKP programming i am getting&amp;nbsp;HSE_SRV_RSP_INVALID_PARAM error.&lt;/P&gt;&lt;P&gt;Attached is my Linker file. I have mapped all HSE variables to int_sram_no_cacheable region. Also, stack is mapped to&amp;nbsp;int_sram_no_cacheable.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know where its going wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Dec 2025 10:52:51 GMT</pubDate>
    <dc:creator>Bhushan1312</dc:creator>
    <dc:date>2025-12-31T10:52:51Z</dc:date>
    <item>
      <title>ADKP Programming with HSE returning HSE_SRV_RSP_INVALID_PARAM</title>
      <link>https://community.nxp.com/t5/S32K/ADKP-Programming-with-HSE-returning-HSE-SRV-RSP-INVALID-PARAM/m-p/2270415#M55804</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I am trying to program ADKP using HSE FW installed on MCU, but getting&amp;nbsp;HSE_SRV_RSP_INVALID_PARAM error.&lt;/P&gt;&lt;P&gt;Same sequence works well (&lt;SPAN&gt;HSE_SRV_RSP_OK&lt;/SPAN&gt;&lt;SPAN&gt;) if i do Step-In using debugger inside HSE_ProgramAdkp() function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can read HSE FW Version, Auth mode without any issue.&lt;/P&gt;&lt;P&gt;Only for ADKP programming i am getting&amp;nbsp;HSE_SRV_RSP_INVALID_PARAM error.&lt;/P&gt;&lt;P&gt;Attached is my Linker file. I have mapped all HSE variables to int_sram_no_cacheable region. Also, stack is mapped to&amp;nbsp;int_sram_no_cacheable.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know where its going wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2025 10:52:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADKP-Programming-with-HSE-returning-HSE-SRV-RSP-INVALID-PARAM/m-p/2270415#M55804</guid>
      <dc:creator>Bhushan1312</dc:creator>
      <dc:date>2025-12-31T10:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: ADKP Programming with HSE returning HSE_SRV_RSP_INVALID_PARAM</title>
      <link>https://community.nxp.com/t5/S32K/ADKP-Programming-with-HSE-returning-HSE-SRV-RSP-INVALID-PARAM/m-p/2270791#M55825</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/258016"&gt;@Bhushan1312&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you forcing HSE descriptors to DTCM?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1767359890040.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/371618iF1030A047FC1D793/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1767359890040.png" alt="lukaszadrapa_0-1767359890040.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;DTCM memory at address 0x2000_0000 is visible only for core. Other bus masters can access DTCM only via backdoor addresses at 0x2100_0000. So, I do not recommend to use DTCM for HSE variables, use normal non-cacheable SRAM instead.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And next point - when programming ADKP, be aware that this service programs UTEST memory. And that UTEST memory is in the same partition as flash block 0. That means the code should be executed from another flash block or from RAM. Otherwise it could lead to read-while-write errors.&amp;nbsp;&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>Fri, 02 Jan 2026 13:22:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADKP-Programming-with-HSE-returning-HSE-SRV-RSP-INVALID-PARAM/m-p/2270791#M55825</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2026-01-02T13:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: ADKP Programming with HSE returning HSE_SRV_RSP_INVALID_PARAM</title>
      <link>https://community.nxp.com/t5/S32K/ADKP-Programming-with-HSE-returning-HSE-SRV-RSP-INVALID-PARAM/m-p/2271069#M55842</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;Yes, HSE descriptors are forced to DTCM and accessed same with offset as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bhushan1312_0-1767586452894.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/371685iE0EF834F1F036C8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bhushan1312_0-1767586452894.png" alt="Bhushan1312_0-1767586452894.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me know if this is fine to work with.&lt;/P&gt;&lt;P&gt;For 2nd point: Do i need to move all the functions (given below) responsible for ADKP programming to other Flash Sector or RAM?&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;HSE_ProgramAdkp -&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;SetAttr -&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;HSE_Send -&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Hse_Ip_ServiceRequest.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 04:23:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADKP-Programming-with-HSE-returning-HSE-SRV-RSP-INVALID-PARAM/m-p/2271069#M55842</guid>
      <dc:creator>Bhushan1312</dc:creator>
      <dc:date>2026-01-05T04:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: ADKP Programming with HSE returning HSE_SRV_RSP_INVALID_PARAM</title>
      <link>https://community.nxp.com/t5/S32K/ADKP-Programming-with-HSE-returning-HSE-SRV-RSP-INVALID-PARAM/m-p/2272509#M55849</link>
      <description>&lt;P&gt;Yes, this approach is correct. The question is why you are getting&amp;nbsp;HSE_SRV_RSP_INVALID_PARAM. I would step this down to the&amp;nbsp;HSE_IP_ServiceRequest to check the HSE descriptor and address which is sent to MU. And I would try to disable the cache completely to see if it makes a difference.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What to force to RAM:&lt;/P&gt;
&lt;P&gt;HSE_IP_ServiceRequest – be aware that this function calls some other functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the critical part of code inside the function when using synchronous mode:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if (HSE_IP_REQTYPE_SYNC == pRequest-&amp;gt;eReqType)&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; {&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; /* Convert from microseconds to ticks */&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; u32TimeoutTicks = OsIf_MicrosToTicks(pRequest-&amp;gt;u32Timeout, (OsIf_CounterType)HSE_IP_TIMEOUT_OSIF_COUNTER_TYPE);&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; /* Send the service request to HSE */&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; Mu_Ip_SetTxRegister(Hse_Ip_apMuBase[u8MuInstance], u8MuChannel, (uint32)pHseSrvDesc);&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; /* Read the current value of the counter */&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; u32CurrentTicks = OsIf_GetCounter((OsIf_CounterType)HSE_IP_TIMEOUT_OSIF_COUNTER_TYPE);&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; /* Wait for the HSE response */&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; while ((FALSE == Mu_Ip_IsResponseReady(Hse_Ip_apMuBase[u8MuInstance], u8MuChannel)) &amp;amp;&amp;amp; (u32ElapsedTicks &amp;lt; u32TimeoutTicks))&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; {&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;&amp;nbsp; /* Update the elapsed ticks, current ticks will be updated too by the OsIf function */&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;&amp;nbsp; u32ElapsedTicks += OsIf_GetElapsed(&amp;amp;u32CurrentTicks, (OsIf_CounterType)HSE_IP_TIMEOUT_OSIF_COUNTER_TYPE);&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; }&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;The Mu_Ip… functions are inlined, so there’s no problem. But OsIf functions from BaseNXP module are not inlined, so you need to move them to RAM too. I recommend to step the function to see that all the code executed in this area is running from RAM. Or you can check the map file as well. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Lukas&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 07:53:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADKP-Programming-with-HSE-returning-HSE-SRV-RSP-INVALID-PARAM/m-p/2272509#M55849</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2026-01-05T07:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: ADKP Programming with HSE returning HSE_SRV_RSP_INVALID_PARAM</title>
      <link>https://community.nxp.com/t5/S32K/ADKP-Programming-with-HSE-returning-HSE-SRV-RSP-INVALID-PARAM/m-p/2290121#M55984</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;ADKP programming seems to be working with Linker changes (linker attached). As in previous linker i made too much of changes by mapping all data variables to SRAM section, also the stack was mapped to non-cacheable region.&lt;/P&gt;&lt;P&gt;I have not moved any of the functions to RAM or other flash section.&lt;/P&gt;&lt;P&gt;I am yet to confirm LC stage advancement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You for your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 09:52:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADKP-Programming-with-HSE-returning-HSE-SRV-RSP-INVALID-PARAM/m-p/2290121#M55984</guid>
      <dc:creator>Bhushan1312</dc:creator>
      <dc:date>2026-01-08T09:52:58Z</dc:date>
    </item>
  </channel>
</rss>

