<?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: S32K344 SMR Entry Install Service Fail with Invalid Param, Not Supported, and Not Allowed Error</title>
    <link>https://community.nxp.com/t5/S32K/S32K344-SMR-Entry-Install-Service-Fail-with-Invalid-Param-Not/m-p/2147067#M51616</link>
    <description>&lt;P&gt;Found the root cause being MPU is not properly disabled. Once the MPU is properly disabled, this works.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Aug 2025 20:38:28 GMT</pubDate>
    <dc:creator>Feifan</dc:creator>
    <dc:date>2025-08-05T20:38:28Z</dc:date>
    <item>
      <title>S32K344 SMR Entry Install Service Fail with Invalid Param, Not Supported, and Not Allowed Error Code</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-SMR-Entry-Install-Service-Fail-with-Invalid-Param-Not/m-p/2146471#M51595</link>
      <description>&lt;P&gt;I'm trying to set up advanced secure boot for S32K344. While setting up and running the HSE SMR entry install service, I keep getting a mix of following error codes: HSE_SRV_RSP_INVALID_PARAM, HSE_SRV_RSP_NOT_SUPPORTED, and HSE_SRV_RSP_NOT_ALLOWED. Could you guys help take a look at this? Thanks in advance!&lt;/P&gt;&lt;P&gt;The algo i'm using is ECDSA P-256 + SHA2-256.&lt;/P&gt;&lt;P&gt;I've double checked that:&lt;BR /&gt;Instruction cache is turned off&lt;BR /&gt;Data cache is turned off&lt;BR /&gt;MPU is turned off&lt;BR /&gt;SMR region is inside internal code flash, thus memory mapped&lt;BR /&gt;XRDC configuration is at default, so HSE should be able to access the code flash&lt;BR /&gt;Public key used is set to verify only&lt;BR /&gt;Has super user access and in CUST_DEL state&lt;BR /&gt;Erased SMR before install service&lt;/P&gt;&lt;P&gt;Below is a snippet of the code:&lt;BR /&gt;#define APP_BL_START_ADDR (0x00401000)&lt;BR /&gt;#define APP_BL_SIZE (0x1000)&lt;/P&gt;&lt;P&gt;#define APP_BL_SIGNATURE_R_START_ADDR (0x0041ff00)&lt;BR /&gt;#define APP_BL_SIGNATURE_R_SIZE (0x20)&lt;BR /&gt;#define APP_BL_SIGNATURE_S_START_ADDR (0x0041ff80)&lt;BR /&gt;#define APP_BL_SIGNATURE_S_SIZE (0x20)&lt;/P&gt;&lt;P&gt;// key handle for the ecc public key&lt;BR /&gt;hseKeyHandle_t verif_key_handle =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; (hseKeyHandle_t)GET_KEY_HANDLE(HSE_KEY_CATALOG_ID_NVM, 0, 0);&lt;/P&gt;&lt;P&gt;// function call to import the public key, HSE returned good status&lt;/P&gt;&lt;P&gt;// set up the signature scheme also the hash algo for signing&lt;BR /&gt;hseAuthScheme_t auth_scheme;&lt;BR /&gt;auth_scheme.sigScheme.signSch = HSE_SIGN_ECDSA;&lt;BR /&gt;auth_scheme.sigScheme.sch.ecdsa.hashAlgo = HSE_HASH_ALGO_SHA2_256;&lt;/P&gt;&lt;P&gt;// set up the decryption scheme, in this case we're not doing&lt;BR /&gt;// encryption/decryption&lt;BR /&gt;hseSmrDecrypt_t decryption_scheme;&lt;BR /&gt;decryption_scheme.decryptKeyHandle = HSE_SMR_DECRYPT_KEY_HANDLE_NOT_USED;&lt;/P&gt;&lt;P&gt;hseSmrConfig_t smr_config = HSE_SMR_CFG_FLAG_INSTALL_AUTH;&lt;/P&gt;&lt;P&gt;// gs_bl_smr_entry is located inside non-cached memory&lt;BR /&gt;gs_bl_smr_entry.pSmrsrc=(HOST_ADDR)APP_BL_START_ADDR;&lt;BR /&gt;gs_bl_smr_entry.smrSize = APP_BL_SIZE;&lt;BR /&gt;gs_bl_smr_entry.pSmrDest = 0;&lt;BR /&gt;gs_bl_smr_entry.configFlags = smr_config;&lt;BR /&gt;gs_bl_smr_entry.checkPeriod = 0;&lt;BR /&gt;gs_bl_smr_entry.authKeyHandle = verif_key_handle;&lt;BR /&gt;gs_bl_smr_entry.authScheme = auth_scheme;&lt;BR /&gt;gs_bl_smr_entry.pInstAuthTag[0] = (HOST_ADDR)(APP_BL_SIGNATURE_R_START_ADDR);&lt;BR /&gt;gs_bl_smr_entry.pInstAuthTag[1] = (HOST_ADDR)(APP_BL_SIGNATURE_S_START_ADDR);&lt;BR /&gt;gs_bl_smr_entry.smrDecrypt = decryption_scheme;&lt;BR /&gt;gs_bl_smr_entry.versionOffset = HSE_SMR_VERSION_NOT_USED;&lt;/P&gt;&lt;P&gt;// SMR install service, service descriptor is also inside non-cached memory&lt;BR /&gt;hse_srv_desc_ptr-&amp;gt;srvId = HSE_SRV_ID_SMR_ENTRY_INSTALL;&lt;BR /&gt;smr_entry_install_ptr-&amp;gt;accessMode = HSE_ACCESS_MODE_ONE_PASS;&lt;BR /&gt;smr_entry_install_ptr-&amp;gt;entryIndex = 0;&lt;BR /&gt;smr_entry_install_ptr-&amp;gt;pSmrEntry = (HOST_ADDR)&amp;amp;gs_bl_smr_entry;&lt;/P&gt;&lt;P&gt;smr_entry_install_ptr-&amp;gt;pSmrData = (HOST_ADDR)APP_BL_START_ADDR;&lt;BR /&gt;smr_entry_install_ptr-&amp;gt;smrDataLength = APP_BL_SIZE;&lt;BR /&gt;smr_entry_install_ptr-&amp;gt;pAuthTag[0] = (HOST_ADDR)APP_BL_SIGNATURE_R_START_ADDR;&lt;BR /&gt;smr_entry_install_ptr-&amp;gt;pAuthTag[1] = (HOST_ADDR)APP_BL_SIGNATURE_S_START_ADDR;&lt;BR /&gt;smr_entry_install_ptr-&amp;gt;authTagLength[0] = 256;&lt;BR /&gt;smr_entry_install_ptr-&amp;gt;authTagLength[1] = 256;&lt;/P&gt;&lt;P&gt;// send service descriptor to hse&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 02:01:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-SMR-Entry-Install-Service-Fail-with-Invalid-Param-Not/m-p/2146471#M51595</guid>
      <dc:creator>Feifan</dc:creator>
      <dc:date>2025-08-05T02:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 SMR Entry Install Service Fail with Invalid Param, Not Supported, and Not Allowed Error</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-SMR-Entry-Install-Service-Fail-with-Invalid-Param-Not/m-p/2147067#M51616</link>
      <description>&lt;P&gt;Found the root cause being MPU is not properly disabled. Once the MPU is properly disabled, this works.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 20:38:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-SMR-Entry-Install-Service-Fail-with-Invalid-Param-Not/m-p/2147067#M51616</guid>
      <dc:creator>Feifan</dc:creator>
      <dc:date>2025-08-05T20:38:28Z</dc:date>
    </item>
  </channel>
</rss>

