Use se_illegal Instruction to Request an illegal Instruction Exception

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Use se_illegal Instruction to Request an illegal Instruction Exception

197 Views
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 Kudos
Reply
1 Reply

182 Views
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 Kudos
Reply