machine check exception after generating multi bit error (MPC5777C) while testing SRAM

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

machine check exception after generating multi bit error (MPC5777C) while testing SRAM

964 Views
manaswini1317
Contributor II

Hi

I've been working on EIM_ERM module lately. I could see that a machine check exception occurs after generating a multi bit error. Although I've tried to handle the exception by writing a logic which instructs to move to next instrcution. Surprisingly,the next instruction also goes into handler and then the process repeats.I tried disabling the global enable and bit in EIMCR also. Below is the handler:

void machine_exception(VectorId vector,const void *stack_ptr)
{
MPC::ErrorInjectionModule eim(0xFFF64000UL);

Uint32 new_xsrr0 = 0UL;
eim.disable_injection();
new_xsrr0 = get_xsrr0((Uint32 *)stack_ptr, std_context_size) + 4UL;
set_xsrr0((Uint32 *)stack_ptr, std_context_size, new_xsrr0);
return;
}

PFA of the registers after exception has occured

Kindly let me know if I am going wrong somewhere.

0 Kudos
1 Reply

800 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

After injecting the multibit ECC fault to RAM:

pastedImage_1.png

So, once you inject ECC multibit error you have to care about IVOR1 or 0. Depends on your micro settings.

If you do not serve it the device will be reset.

For correct servicing please refer to chapter 5 ->   Non-correctable ECC error servicing

of application note:

https://community.nxp.com/docs/DOC-103300 

regards,

Peter

0 Kudos