S32DS break-points and SPRs?

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

S32DS break-points and SPRs?

2,475 Views
MPC8313ERDB_h
Contributor III

How to setup a hardware breakpoint? Is S32DS support breakpoint inside ISR?

Is there a way to check SPR registers values (such as IVOR4)?

I use S32DS to debug MPC5644A based board.

5 Replies

1,725 Views
MPC8313ERDB_h
Contributor III

Thank you Jiri!

Very helpful.

David

0 Kudos

1,725 Views
gearhead1107
Contributor IV

In the IDE, you can simply double-click on the area to the left of your code - you'll see a blue dot when the breakpoint is acknowledged. You can also right click -> add breakpoint. It should be hit in an ISR as well.

In your "debug" context, there's a window to the top right that will show all breakpoints.

Also in the debug context should be "EmbSys Registers" which gives you a view of all the hardware registers while the debug session is suspended

0 Kudos

1,725 Views
MPC8313ERDB_h
Contributor III

Dear gearhead1107,

Thank you for your comments.

1. I'm aware of setting breakpoints and view them. However, I was referring to hardware breakpoint rather than software breakpoint.

2. SPR (Special Purpose Registers) are architectural registers and not "systems embedded" (memory mapped) registers. In fact, checking INTC registers do not reveal the values, but their address and reset-values.

Thanks again,

David

0 Kudos

1,725 Views
jiri_kral
NXP Employee
NXP Employee

I figured out that breakpoint type can be set in breakpoints view and breakpoint's properties:
pastedImage_1.png

pastedImage_2.png

You can choose from couple breakpoint types - including the HW one: 

pastedImage_3.png

The question is how good is this feature implemented by PE Micro. I never used it with PE Micro. 

Jiri 

1,725 Views
jiri_kral
NXP Employee
NXP Employee

Hi David, 

I'm not sure if PE Micro can set HW breakpoints - I'll try to figure out. 

SPR view can be selected in active debug session by clicking on Window -> Show View -> Other

pastedImage_1.png

there is SPR view in debug folder: 

pastedImage_2.png

You can check current value by doubleclick on particular register: 

pastedImage_3.png

Hope it helps. 

Jiri

0 Kudos