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?
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.
Retrieving data ...