ERM for FLASH rewritten

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

ERM for FLASH rewritten

Jump to solution
1,209 Views
20Sidar04
Contributor III

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.

Tags (1)
0 Kudos
Reply
1 Solution
1,158 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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).

View solution in original post

0 Kudos
Reply
7 Replies
1,199 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Could you specify used device?

0 Kudos
Reply
1,191 Views
20Sidar04
Contributor III

Dear David,

Sorry, the controller which I work on is MPC5777C.

regards

0 Kudos
Reply
1,177 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

MSR_ME has only little impact, core goes to IVOR1 exception in any attempt to read/execute ECC affected data.

davidtosenovjan_0-1643896882415.png

 

0 Kudos
Reply
1,173 Views
20Sidar04
Contributor III

Dear David,

the problem about not entered to ERM handler during overprogramming on same adress could related with MSR? I wonder that.

Regards.

0 Kudos
Reply
1,159 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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).

0 Kudos
Reply
1,152 Views
20Sidar04
Contributor III

Thanks David,

Best Regards.

Tags (1)
0 Kudos
Reply
1,178 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

If you mean following example

https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5777C-1b-2b-FLASH-ECC-error-injection...

if goes to IVOR1 exception which is calling ERM handler.

davidtosenovjan_0-1643896375311.png

But ECC error may be also detected by different master than core (eDMA for instance), it this case ERM interrupt should be invoked.

 

0 Kudos
Reply