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