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.

TMS570LC4357: Using watchpoints without debug hardware

Part Number: TMS570LC4357

Hi everyone, 

I'm trying to implement a stack overflow detection using hardware watchpoint, I'm having some issues getting it to work, 

While reading about it I've found in ARM's documentation " Currently you can only set a watchpoint on a hardware target using a debug hardware agent."  

I know that the TMS570 dose support watchpoint, but I was wondering if we can use them without a debug hardware agent. 

Thank you

  • Hello,

    The CCS supports watchpoint. After the JTAG debugger is connected to the Target (TMS570), you can set watchpoint.

    The Watchpoint feature is a special type of breakpoint.  So in CCS open the breakpoint window  (I think it is view->breakpoints)  you can add a breakpoint at the address of a global variable, and change it's type to a watchpoint. A watchpoint will halt the program when the variable is *written* (or read - this can be configured).

  • Thank you for your reply,

    I was actually I was asking if it's possible to use watchpoint without any debugger. Just using code, I know that when a watchpoint is hit it will trigger a data abort, 

    What I'm trying to do that only with code, without any debugging hardware. 

    Thank you 

  • I don't know how to use the watchpoint without the debugger.