How to detect illegal opcode in S32K1XX

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to detect illegal opcode in S32K1XX

ソリューションへジャンプ
1,979件の閲覧回数
Pratheek
Contributor I

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?

0 件の賞賛
返信
1 解決策
1,966件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Pratheek,

Yes, this is a usage fault exception.

In the fault handler, read the CFSR[UNDEFINSTR] register.

danielmartynek_0-1666254694141.png

 

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

 

元の投稿で解決策を見る

2 返答(返信)
1,967件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Pratheek,

Yes, this is a usage fault exception.

In the fault handler, read the CFSR[UNDEFINSTR] register.

danielmartynek_0-1666254694141.png

 

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

 

1,939件の閲覧回数
Pratheek
Contributor I

Hello Daniel,

 

Thank you veru much for your support, issue solved.

 

Thanks & Regards,

Pratheek 

 

 

0 件の賞賛
返信