Use se_illegal Instruction to Request an illegal Instruction Exception

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

Use se_illegal Instruction to Request an illegal Instruction Exception

272 次查看
hongpingxu-b364
NXP Employee
NXP Employee

Hi,


According to NXP instruction manual, we see that this is a valid instruction and any attempt to execute this instruction should result in an exception.

Picture1.png

However, we do not see any exception when code is executed from an address containing 0’s or illegal instruction and control automatically stops in the debugger when it tries to execute this instruction.
We tried changing IP to a RAM address which contains 0’s and this can be seen in below pic (This Picture2.pngbehavior is same for Flash also):

Can you please provide guidance in resolving this issue?
Any suggestions/Insights would be really appreciated.

 

Project device : MPC5748G
Autosar version : R20-11

 

Please let me know if you need any project/module related specific information.

Best regards,

Hornby

0 项奖励
回复
1 回复

257 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Lauterbach see 0x0000_0000 as a SW breakpoint.

That could explain the behavior you see.

Try to execute the code without debugger.

Best regards,
Peter

0 项奖励
回复