Hi team,
overview: working on eMCEM module for error handling. so as per the design of SAF (eMCEM module) when the NCF fault is triggered through eMcem_InjectFault(). alarm handlers are called.
i see two alarm handlers can be called.
1. eMcemUserAlarmHandler - can return EMCEM_ERR_RECOVERED/EMCEM_ERR_NOT_RECOVERED based on convenient. i also see emcem_clearfault API is called eventually

if i return EMCEM_ERR_RECOVERED but what if the Error is not actually cleared. and also, only emcem_clearfault just clears the status of fault. how is it expected to handle?
if EMCEM_ERR_RECOVERED is returned then in that case even the NMI is not triggered. so, what is need for NMI in that case. how NMI is utilised?
2. eMcemDefaultAlarmHandler - using this API would always return error not recovered status because it returns the same. and triggers ISR again. how can it be handled?
if i want to set DTC at what condition would i set the DTC for fault that are unrecoverable.
If someone can drop some info. it would be helpful.
BR,
Harish R