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

Conditional / expression breakpoints not working on NRF52840DK or working poorly

Using SES, nrf52840DK, the onboard debugger.

I am able to set a breakpoint and use condition like x == 5.

I am unable to use anything but the == operator. In SES I get the red breakpoint with a white question mark over it.

Tried read/write/default, hardware vs software break, all manner of syntax, local and global variables. Nothing seems to work except ==.

Thoughts?

EDIT: I followed the advice for SES here studio.segger.com/index.htm and here studio.segger.com/index.htm

  • Karl,

    That workaround is not a solution, no change, no effect. In the first post I wrote that this happened regardless of options set in the breakpoint settings. I've done every possible combination of trial and error here.

    I don't know this is a problem with SES. How can I know it is not a problem with the nrf52's debugger, or the nrf52 itself? I'll try opening a ticket with Segger.

  • SRA said:
    That workaround is not a solution, no change, no effect.

    Thank you for confirming this.

    SRA said:
    I don't know this is a problem with SES. How can I know it is not a problem with the nrf52's debugger, or the nrf52 itself? I'll try opening a ticket with Segger.

    Yes, I would think this is the best course of action. I am sorry that I could not be of more help in this case. I do not see any way how this could be the fault of the nRF52 SoC, since it is completely at the mercy of the JLink debugger when the debugger is attached. The debugger has full access. 

    Please do not hesitate to resume this ticket and let me know if your inquiry with Segger does not pan out.

    Best regards,
    Karl

Related