This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Break on value change

Using Code Composer 4.2.4 ... how does one set a break that occurs when a global variable changes?

  • Hi Clyde,

    what target are you using?  Some targets support different features.  Have you tried opening the breakpoint view ... View->Breakpoints.  Then the first icon from the left in the window that comes up (Breakpoints Window) is where you have an option to add a breakpoint or watchpoint as well.  If this is supported for your target, you will actually want a watchpoint.

    Please keep us informed and also look at these wikis of interest

    In case of c28x interest:

    http://processors.wiki.ti.com/index.php/Watchpoints_for_C28x_in_CCS_4

    http://processors.wiki.ti.com/index.php/Data_Breakpoint/Watchpoint

    For almost every target, what you can do is set a breakpoint/watchpoint that flips when a variable has a certain value.  For this see the below screenshot.

    Best Regards,
    Lisa