I am using SHE based secure boot. For this purpose, I have loaded BOOT_MAC_KEY to secure NVM and then trying to install the SMR#0 but getting negative response (HSE_SRV_RSP_INVALID_PARA) from HSE.
Following configurations has been done for SMR#0:
| hseSmrEntry_t sheSmrEntry | Configuration |
| configFlags | HSE_SMR_CFG_FLAG_INSTALL_AUTH |
| pSmrDest | 0u |
| checkPeriod | 0u |
| pSmrSrc | address of application (i.e., 0x40_1000) |
| smrSize | Size of application (i.e., 0x3000) |
| authKeyHandle | GET_KEY_HANDLE(HSE_KEY_CATALOG_ID_NVM, 0, 1) |
| pInstAuthTag | NULL_PTR |
authScheme.macScheme.macAlgo | HSE_MAC_ALGO_CMAC |
| authScheme.macScheme.sch.cmac.cipherAlgo | HSE_CIPHER_ALGO_AES |
| smrDecrypt.decryptKeyHandle | HSE_SMR_DECRYPT_KEY_HANDLE_NOT_USED |
| versionOffset | HSE_SMR_VERSION_NOT_USED |
| hseSmrEntryInstallSrv_t | Configuration |
| accessMode | HSE_ACCESS_MODE_ONE_PASS |
| entryIndex | 0u |
| pSmrEntry | address of sheSmrEntry |
| pSmrData | sheSmrEntry.pSmrSrc |
| smrDataLength | sheSmrEntry.smrSize |
| pAuthTag | NULL_PTR |
| authTagLength | 0u |
controller in use S32K312
can anyone please help me out with this. Thanks in advance