ERM for FLASH rewritten

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

ERM for FLASH rewritten

跳至解决方案
1,447 次查看
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.

标记 (1)
0 项奖励
回复
1 解答
1,396 次查看
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 项奖励
回复
7 回复数
1,437 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Could you specify used device?

0 项奖励
回复
1,429 次查看
20Sidar04
Contributor III

Dear David,

Sorry, the controller which I work on is MPC5777C.

regards

0 项奖励
回复
1,415 次查看
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 项奖励
回复
1,411 次查看
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 项奖励
回复
1,397 次查看
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 项奖励
回复
1,390 次查看
20Sidar04
Contributor III

Thanks David,

Best Regards.

标记 (1)
0 项奖励
回复
1,416 次查看
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 项奖励
回复