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.

Breakpoints on TivaC Dev board examples

- Using CCS.v6.1

- Dev Board DK-TM4C129X

- Installed examples according to instructions in http://www.ti.com/lit/ml/spmu352/spmu352.pdf

- refactored projects to my installed compiler TI v.5.2.3

- built all

When I start debugging by hitting F11 everything works fine. Example runs. I can even execute 'Run to Line' (crtl-R). Dev Board responds accordingly.
(Using Stellaris in-circuit debug interface)

When I set breakpoints they simply seem to be ignored by the execution! Execution always passes through the BP.

- Right clicking to insert a breakpoint or a hardware breakpoint always seems to insert a H/W BP.

- Disabling or enabling a BP has no effect

- BP type: Breakpoint, Skip count = 0, Conditon: empty, Action: Remain Halted (all defaults)

- The icon in the blue area to the left (next to the line with the BP) shows a blue bug which is crossed over with a single black line. I can't get this icon to change.

  • Kim Sandström said:
    When I set breakpoints they simply seem to be ignored by the execution! Execution always passes through the BP.

    Does this happen no matter where the breakpoint is set? In some cases, the breakpoint will not get set if there is no instruction associated with that line of code, as in cases where the code may have been optimized. Could you try opening the disassembly view and setting a breakpoint in there to see if that helps?

    Do you get any pop-up messages when setting the breakpoint? A screenshot of your debug view could be helpful.

    I don't have that exact target board you are using but I have not had issues with setting or halting at breakpoints with several other Tiva boards that I have used with CCS 6.1.

  • I don't get it to stop anywhere.
    However if i give the restart command it stops at an implicit BP at start of main().
    I can also issue the run to line command by right clicking on a line. This works on the same lines that BP does not work on.

    Optimization is default -O2 (preset in the board example)
    no popup when BP is set

    I hope this screenshot paste works (previously it just didn't show up)

  • Your screenshot shows the "Skip all Breakpoints" icon enabled in the Breakpoints view, which is why the breakpoints are not being hit. 


    Click on that icon to disable that setting and let us know if it works.