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.

TMS320F28384D: Breakpoint does not work if setting it during code running

Part Number: TMS320F28384D


Tool/software:

Hi champs,

I am asking this for our customer.

The user uses CCS 12.6 + TI XDS110 standalone JTAG + user's board.

Like this kind of code,

int var1 = 0;

main()

{

...

while()

{

...

var1++;

...

}

The user finds if he sets a hardware breakpoint first on the line "var1++" and then runs the code, then it works as expected.

But if the user runs the code first and then set a hardware breakpoint on the line "var1++" while the code is running, it does not stop at the breakpoint. The user confirms the line "var1++" keeps accumulating from the watch window.

Therefore, the user is confused why the hardware breakpoint does not seem to work if the user set it during the code is running.

Note that the code is running on the flash rather than on RAM. 

All testing is done on the flash.

Do you have any comment?

  • Hi Wayne,

    What is on the callstack if they press pause? Can they press the hardware breakpoint at the beginning of the while loop? Does it halt?

    Best,

    Ryan Ma

  • Hi Ryan,

    The user can set a hardware breakpoint at the beginning of the while loop before running codes and then run to the breakpoint. Did you mean this? Or would you please make it clearer?

    But the user cannot run the codes first and then set a breakpoint at the beginning of the while loop or any inside the while loop while the code is running.

    CCS program into debug view stop in the beginning of the main() -> set a breakpoint inside the while loop -> run and stop at the breakpoint (the breakpoint works) -> resume running and stop at the same breakpoint again inside the while loop (the breakpoint works) -> disable the breakpoint ->  resume to run codes inside the while loop -> set a breakpoint (finish setting the breakpoint) -> Not stop at the breakpoint

    All above are with hardware breakpoints.

    Do you have any further comment?

  • Hi Wayne,

    I am unable to reproduce this issue on my end using CCS12.8.1. Can you ensure this button is not pressed in the breakpoints tab view? This will skip any breakpoint that is set. Are the breakpoints that are being missed highlights blue or a greyish color?

    You can go to View -> Breakpoints

    Best,

    Ryan Ma

  • Hi Ryan,

    OK, I see. I will close this first.

    It seems the user's colleagues cannot reproduce this on their side too.

    We will ask the user to upgrade CCS first and see if this can be resolved.

  • Hi Wayne,

    Okay, sounds good!

    Best,

    Ryan Ma