Skip to main content
Visitor II
October 24, 2019
Solved

STM32F030C6 breakpoint setting does NOT work on STM32CubeIDE using ST-link V2. Is it a BUG or setup issue? and how?

  • October 24, 2019
  • 4 replies
  • 12077 views

When I hit Debug. System stops at first line of main() as intended. However no matter how I setup any breakpoints on the rest code, and hit Resume(F8) button. The code never stops on those breakpoint. even though I am 100% sure those breakpointed line code got run already. and if I hit suspend. the code stops normally. Also step into or over works normally. ( I am sure that the number of breakpoints I setup is less than 4) I checked log file of st link GDB server. I did not see any breakpoint setting command sent to the debugger via the SWD. Is this a software bug of CubeIDE? I saw some youtube video. it shows the breakpoint works fine. Could anyone give me some hint. I stuck on this issue for two days. :(

    This topic has been closed for replies.
    Best answer by Mavoodoo

    Hi BLu.397,

    Have you made sure breakpoints aren't globally disabled? There is an option under Run -> Skip All Breakpoints Ctrl+Alt+B

    I'm using Cube IDE 1.3.0

    Cheers...

    4 replies

    ST Employee
    October 24, 2019

    Have you tried setting no optimizations (-O0) ?

    MavoodooAnswer
    Visitor II
    March 26, 2020

    Hi BLu.397,

    Have you made sure breakpoints aren't globally disabled? There is an option under Run -> Skip All Breakpoints Ctrl+Alt+B

    I'm using Cube IDE 1.3.0

    Cheers...

    Visitor II
    March 16, 2021

    Solved my problem, thanks!

    Technical Moderator
    March 17, 2021

    Hi @DFres.1​ ,

    Did the solution proposed by @David SIORPAES​  or @Mavoodoo​ solve your problem?

    Please mark the post that helped you by clicking on the "Select as Best" button.

    Otherwise, share your solution and mark it as a Best Answer.

    Imen

    Visitor II
    July 20, 2021

    Hi all, I'm same issue. Please, could you help me?

    Graduate
    April 26, 2024

    Confirm - the answer of @Mavoodoo solved this problem on my IDE 1.14.1. A huge thanks.