Hello Team,
We need to hits the ECC interrupts for single fault and double fault bits.
Target MCU - S32K142
S32DS Version - 2.0
SDK version - 0.8.4
erm1_interrupt0 and erm1_Interrupt1 are configured as Single correction and Non-correctable error interrupt enabled in erm1_InitConfig0[0].
Below are the code for reference.
/*ECC check enable - Error reporting manager to detect data range failures */
ERM_DRV_Init(INST_ERM1, ERM_CHANNEL_COUNT0, &erm1_InitConfig0[0]);
INT_SYS_InstallHandler(ERM_single_fault_IRQn, &ErmErrorIntCh_0_1, (isr_t *)0);
INT_SYS_InstallHandler(ERM_double_fault_IRQn, &ErmErrorIntCh_0_1, (isr_t *)0);
INT_SYS_EnableIRQ(ERM_single_fault_IRQn);
INT_SYS_EnableIRQ(ERM_double_fault_IRQn);
For testing, How do we generate the interrupts?
Thank you.
Regards,
Sandip