Hi,
SMR and CR is installed normally for the SMR-based Verification-Periodic,
But there is an error for SMR-based Verification -On Demand.
Below is the code for SMR-based Verification -On Demand.
Could you please let me know what should I do to resolve this issue?
===============================================================
g_smrEntry[smrIndex].configFlags = HSE_SMR_CFG_FLAG_INSTALL_AUTH;
g_smrEntry[smrIndex].pSmrDest = 0u;
g_smrEntry[smrIndex].checkPeriod = 0U;
g_smrEntry[smrIndex].pSmrsrc=startAddress;
g_smrEntry[smrIndex].smrSize = u32CodeLength;
g_smrEntry[smrIndex].authKeyHandle = CRYPTO_KEY_ID_NVM_PDP_PUBLICKEY_HANDLE;
g_smrEntry[smrIndex].authScheme.sigScheme.signSch = HSE_SIGN_RSASSA_PKCS1_V15;
g_smrEntry[smrIndex].authScheme.sigScheme.sch.rsaPkcs1v15.hashAlgo = HSE_HASH_ALGO_SHA2_256;
g_smrEntry[smrIndex].pInstAuthTag[0] = RSA_TAG_PDP_SIGNATURE_FLASH_ADDRESS;
g_smrEntry[smrIndex].pInstAuthTag[1] = (uint32_t)NULL;
gstartAddress = startAddress;
gendAddress = endAddress;
g_crEntry[smrIndex].coreId = (hseAppCore_t)0;
g_crEntry[smrIndex].preBootSmrMap = 1 << 0;
g_crEntry[smrIndex].pPassReset = pAppHeader[coreID]->pAppStartEntry;//pAppHeader[coreID]->pAppStartEntry;
g_crEntry[smrIndex].altPreBootSmrMap = 0; /* Not used here - configuration in case boot fails */
g_crEntry[smrIndex].pAltReset = pAppHeader[coreID]->pAppStartEntry; /* Alternate Reset should not be NULL or 0xFFFFFFFF */
g_crEntry[smrIndex].postBootSmrMap = 1 <<2;
g_crEntry[smrIndex].startOption = HSE_CR_ON_DEMAND;
g_crEntry[smrIndex].crSanction = HSE_CR_SANCTION_DIS_INDIV_KEYS;
CoreSrvId = HSE_SRV_ID_ON_DEMAND_CORE_RESET;
SMRSrvId = HSE_SRV_ID_SMR_ENTRY_INSTALL;
eRetVal = Crypto_SMR_Install(smrIndex,
SMRSrvId,
(const hseSmrEntry_t *)&g_smrEntry[smrIndex],
(const uint8_t *)g_smrEntry[smrIndex].pSmrSrc,
g_smrEntry[smrIndex].smrSize,
(const uint8 *)tag_addr[0][smrIndex],
(const uint8 *)tag_addr[1][smrIndex],
256U,
256U);
eRetVal = Crypto_CoreReset_Install(0, CoreSrvId, (const hseCrEntry_t* )&(g_crEntry[smrIndex]));
CDDAssert((Std_ReturnType)E_OK == eRetVal );