How to detect ECU reset due to Illegal op code/undefined instructions. I think Usage fault exception will trigger if illegal opcode is executed. But, how to confirm the Usage fault exception is due to illgale opcode?
已解决! 转到解答。
Hi @Pratheek,
Yes, this is a usage fault exception.
In the fault handler, read the CFSR[UNDEFINSTR] register.
Since the CM7 core is very similar to the CM4 on S32K14x in this regard, you can refer to this document/example:
https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447
Regards,
Daniel
在原帖中查看解决方案
Hello Daniel,
Thank you veru much for your support, issue solved.
Thanks & Regards,
Pratheek