Dear Mr./Mrs,
I have worked for ERM.I over-programming Flash to generate a non-correctable. I used sample programme on Forum. I wonder that what is purpose of SetMSR_ME func on this example? When I try to debug my source during overprogramming, controller doens't enter ISR function called ERM_IRQHandler. I initiliaze ERM for controller. * ERM_init();
I enable interrupts by using this function *INT_SYS_EnableIRQ(ERM_IRQn);
Best Regards.
Solved! Go to Solution.
No, it will go to IVOR1 in both cases. The only way how CPU can process fault read is bus error.
The only exception is data flash where flash controller can return ECC-clean illegal opcode value 0x1555_1555 (according PFCR3[DERR_SUP] setting).
Could you specify used device?
Dear David,
Sorry, the controller which I work on is MPC5777C.
regards
MSR_ME has only little impact, core goes to IVOR1 exception in any attempt to read/execute ECC affected data.
Dear David,
the problem about not entered to ERM handler during overprogramming on same adress could related with MSR? I wonder that.
Regards.
No, it will go to IVOR1 in both cases. The only way how CPU can process fault read is bus error.
The only exception is data flash where flash controller can return ECC-clean illegal opcode value 0x1555_1555 (according PFCR3[DERR_SUP] setting).
If you mean following example
if goes to IVOR1 exception which is calling ERM handler.
But ECC error may be also detected by different master than core (eDMA for instance), it this case ERM interrupt should be invoked.