How do we generate the ECC interrupts?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do we generate the ECC interrupts?

711 Views
sardalkar
Contributor I
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
0 Kudos
Reply
1 Reply

624 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Sandip,

Please refer to the erm_report_s32k142 SDK example.

Thank you,

BR, Daniel

0 Kudos
Reply