Debugger: Running just after watchpoint stop

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

Debugger: Running just after watchpoint stop

420 Views
chrzesm
Contributor I

Hello Everyone,

I am new here and new to the Code Warrior. I have been trying to debug S12XDT384 setting watchpoint at a certain RAM address. The debugger halts the code at watchpoint for half of second and immediately runs again the code. I also noticed that after manual HALT (F6) the debugger behave exactly the same way, ie stops for a while and runs automatically. I was trying to find any thread explaining this, however could not find any tips.

Any suggestions much appreciated.

Thank you,

Maciej

0 Kudos
2 Replies

345 Views
kef2
Senior Contributor IV

Hi,

sounds like you have COP reset enabled and COP fires each 0.5s past watchpoint or halt. For debugging purposes either disable COP at all or make COPCTL RSBCK bit set.

Edward

345 Views
chrzesm
Contributor I

Edward,

Thank you so much. You are prefectly right. Now all is working like a charm. How stupid of me I missed that.

0 Kudos