Hi @xuqian
The Lifecycle should be advanced using HSE_SECURE_LIFECYCLE_ATTR_ID (see hseAttrSecureLifecycle_t). The Life Cycle attribute can be set only once (UTEST attribute) and only if the ADK/P is already set in UTEST.
The following code is an example of how to advance the LC.
void HSE_AdvanceLifecycle(hseAttrSecureLifecycle_t targetLifeCycle)
{
hseSrvResponse_t srvResponse;
hseAttrSecureLifecycle_t lifeCycleToSet;
/* WARNING: This operation is irreversible */
/* Advance the Life Cycle to target value */
lifeCycleToSet = targetLifeCycle;
srvResponse = SetAttr(HSE_SECURE_LIFECYCLE_ATTR_ID,
sizeof(hseAttrSecureLifecycle_t), (void *)&lifeCycleToSet);
ASSERT(HSE_SRV_RSP_OK == srvResponse);
}
For more information, as most of the HSE's information is under NDA (Non-Disclosure Agreement), the information is not public, and I am not able to share it due to the security levels when working with an automotive part such as this. So, please create a support ticket or contact your NXP representative for further support in this part.
B.R.
VaneB