551x Exception recording

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

551x Exception recording

跳至解决方案
2,171 次查看
markelson
Contributor III

Hi,

 

My application has the ability to record data to non-volatile memory. I am trying to determine which registers etc are best to record to diagnose what happened in the event of a processor exception (e.g. as caused by a divide-by-zero). The ESR, MCSR and DEAR look like obvious ones. What else would be recommended? Is there any existing guidance on this, e.g. an AN?

 

TIA, Mark

标签 (1)
0 项奖励
回复
1 解答
2,075 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

It is explicitly stated in chapter 5.7 Interrupt Definitions in core reference manual and it is different for every particular exception:

http://cache.freescale.com/files/32bit/doc/ref_manual/e200z1RM.pdf

http://cache.freescale.com/files/32bit/doc/ref_manual/e200z0RM.pdf

It says which register are being written during exception and which are untouched.

For instance:

IVOR0 writes CSRR0, CSRR1 and MSR

IVOR1 writes CSRR0, CSRR1, MSR and MCSR

and so on…

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,076 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

It is explicitly stated in chapter 5.7 Interrupt Definitions in core reference manual and it is different for every particular exception:

http://cache.freescale.com/files/32bit/doc/ref_manual/e200z1RM.pdf

http://cache.freescale.com/files/32bit/doc/ref_manual/e200z0RM.pdf

It says which register are being written during exception and which are untouched.

For instance:

IVOR0 writes CSRR0, CSRR1 and MSR

IVOR1 writes CSRR0, CSRR1, MSR and MCSR

and so on…

0 项奖励
回复
2,075 次查看
markelson
Contributor III

David,

That's the extra info I needed - I'd been looking in the 5510RM only.

Thank you,

Mark

0 项奖励
回复