CW 10.1 - How to break debugger when variable changes

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

CW 10.1 - How to break debugger when variable changes

409 Views
ignisuti
Contributor IV

I’m using the Multilink Universal debugger with a 6-wire BDM cable to debug a MCF51CN128 Coldfire MCU.

 

How can I get the debugger to 'break' on the line of code causing one of my variables to change values?

Labels (1)
0 Kudos
1 Reply

240 Views
CrasyCat
Specialist III

Hello

 

    I am not an expert on MCF51CN128, but for other MCUs I used watchpoints for this purpose.

    To set a watchpoint:

          - In the Variable Windows display the variable you want to track

          - Click right on the variable name and select watchpoint

          - Adjust settings of the watchpoint to whatever you want to track.

          - Click on OK.

 

  Note that watchpoint may not be supported on all MCUs as it requires some HW resources to function properly.

  But it might be worth a try.

      

CrasyCat

0 Kudos