Could'nt enter IVOR6 Exception Handler

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

Could'nt enter IVOR6 Exception Handler

跳至解决方案
1,343 次查看
20Sidar04
Contributor III

Dear Mr. / Mrs.

I try to cause illegal instruction exception by following source code on MPC5777C;

typedef void (*myfunc)();
myfunc foo = 0;
foo();

This shows that I am on right way.

20Sidar04_0-1645458429921.png

As I see, when I tried debug my controller. My program is not stop on IVOR6_Exception_Handler. 

How to handle this problem. I tried to cause IVOR6 exception for MPC5777C.

Best regards.

 

标记 (3)
0 项奖励
回复
1 解答
1,333 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

se_illegal instruction (opcode 0x0000) then it depends if the device is running in debug mode or in standalone mode:

- in debug mode, se_illegal works like software breakpoint. IVOR6 is not triggered. If you just step the code, it works like nop instruction. If you run the code and the program reaches se_illegal instruction, the device will stop execution and it will enter debug mode.

- if the device is running in standalone without debugger, se_illegal will trigger IVOR6 exception.

在原帖中查看解决方案

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

se_illegal instruction (opcode 0x0000) then it depends if the device is running in debug mode or in standalone mode:

- in debug mode, se_illegal works like software breakpoint. IVOR6 is not triggered. If you just step the code, it works like nop instruction. If you run the code and the program reaches se_illegal instruction, the device will stop execution and it will enter debug mode.

- if the device is running in standalone without debugger, se_illegal will trigger IVOR6 exception.

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

Thanks David for advices. It works. 

0 项奖励
回复