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.
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.
已解决! 转到解答。
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.
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.