Skip to main content
Visitor II
March 22, 2020
Question

Cannot get program to stop execution at breakpoint using ST-LINK V3 -or- Segger JLINK+.

  • March 22, 2020
  • 1 reply
  • 779 views

I insert a breakpoint in the source code by toggling it Ctrl+Shift+B. I view the breakpoint in the Breakpoints window. After startup, the program is halted at the first line of code. I then press F8 to start the program and execution blows through the line of code where the breakpoint has been set. I have used the ST-LINK V3 and the Segger JLINK+ to set breakpoints and have had the same results (i.e. program execution doesn't halt). (I have successfully used the "Run To Line" command and program execution does stop at the highlighted line.)

I am out of ideas at this point!! Any help would be appreciated.

    This topic has been closed for replies.

    1 reply

    Graduate II
    March 22, 2020

    What STM32 part?

    What tool chain?

    Try turning off optimization, better one-to-one relationships.

    Visitor II
    March 22, 2020

    I verified that the optimization level in the GNU compiler is set to "None-00".