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.

TM4C123GH6PM: API documentation for DSS script

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: MSP430F5529

Hi Experts,
Good day! I am posting this on behalf of the customer. 
I'm currently working on a DSS script using js. I opened the ti API documentation for DSS and I learned how to add a breakpoint within my script as an example "var bp = debugSession.breakpoint.add("file_name", line);". The issue is I can't find any API to make me check if the breakpoint I added is hit or not. So, Is there any kind of way to check whether any of my created breakpoints are hit or not? thanks in advance
 
try {
var erase_bp1 = debugSession.breakpoint.add("Fls.c",231);
scriptEnv.traceWrite("erase_bp1 succeeded...!!!");

debugSession.target.run();
scriptEnv.traceWrite("Target halted at DevError = FLS_E_UNINIT");

} catch (ex) {
scriptEnv.traceWrite("erase_bp1 failed: " + ex);
}
 
this is a part of my code snippet
 
\to add a break point
 
however, I need to check whether this bp is hit or not
but I can't find any API to help me through
Best regards,
Jonathan
 
  • Hello Jonathan,

    The issue is I can't find any API to make me check if the breakpoint I added is hit or not. So, Is there any kind of way to check whether any of my created breakpoints are hit or not?

    There is no specific DSS API to check if a set breakpoint was triggered. How people workaround this is to simply check the value of the PC (Program Counter) when the target is halted and see if it matches with the address of the set breakpoint. An example of this can be found with the "msp430f5529_breakpoints.js" DSS example that comes with CCS (inside <CCS INSTALL DIR>/ccs/ccs_base/scripting/examples/DebugServerExamples)

    Thanks

    ki