Forum: System Workbench for STM32

Breakpoint Limit

Hi

I’m working with SW4STM32 for more than a year now, and I really appreciate this tool. At the moment, I’m struggling with a easy problem: If I want to use more than 3 Breakpoints, Eclipse is complaining, that the 5th breakpoint can’t be inserted. (I use 4, and eclipse want to create one more at the programm start point.)

Error Message:
‘’Launching ProjectXY has encountered a problem. Error in final launch sequence”

‘’Error in final launch sequence”
Failed to execute MI command:
continue

Error message from debugger back end:
Warning:\nCannot insert hardware breakpoint 3.\nCould not insert hardware breakpoints:\nYou may have requested too many hardware breakpoints/watchpoints.\n’’

I know, i could disable the breakpoint which is created by the debugger, and in the most cases, i can work with 3 breakpoints. But I’m just interested to know the reason for this limit:
Is this a hardware limit given by the controller (STM32F072RBT), by the STLink, or by Eclipse? Is there a way to get more than 3 breakpoints, or is this given?

Thank you for your replies.

best regards
Matthias

France

Hi Matthias,

The limit is due to the microcontroller and can’t be overcome efficiently for flashed code.

Bernard (Ac6)