This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SES Debugger: Breakpoints not being hit

Optimization level is set to "Debug". Tried to change it to one of the Levels, however then firmware does not run at all. Debugging Level is set to Level 3.

Can it be other reasons besides optimization why breakpoints are not hit?

If I set breakpoint somewhere in main and run, it works, however in specific callback functions in other file it does not. Also breakpoint in main is not hit if I add it while debugger is running.

I am running code which contains SoftDevice on Segger Embedded Studio. Breakpoints are marked as normal reachable. Also LOG messages are not printed in functions where I want to set a breakpoint, however functions are executed as functionality is observed on Bluetooth Mesh client side. Occasionally breakpoints were working as well as the specific logging and then stopped again without changing any settings. Other log messages are printed always.

Debug adapter we use is J-Link.

Related