cancel
Showing results for 
Search instead for 
Did you mean: 

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

BitBanger46
Associate III

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.

2 REPLIES 2

What STM32 part?

What tool chain?

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

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