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

Segger EMBEDDED STUDIO debugger breaks at random lines

Hello

I am running this version of SES

SEGGER Embedded Studio for ARM

Release 5.34a  Build 2021011401.44914

Nordic Edition

Windows x64

When I run my program in Segger it keeps stopping at these two particular lines. I do not understand why it is breaking because there are no breakpoints set. I deleted all of them.

It seems as if there are two 'hidden' breakpoints at these two lines. The Breakpoints window shows none.

Can someone please help?

Kind regards

Mohamed

  • Hello again,

    Learner said:
    I am not sure about which MAC address to use.

    You should use your physical address of your Ethernet adapter for the MAC address field.

    Learner said:
    Does this mean that if I update to a more recent SES version the data breakpoints might work?

    You could try that, sure.

    Learner said:
    I have tried to get help from Segger with a problem I had few months ago with SES Nordic Edition but they refused to help. They said Segger do not support SES Nordic Edition.

    Aha, I understand. Could you show me the two lines which the program stops as - the ones you are referring to in your ticket description?

    Best regards,
    Karl

  • Hi Karl,

    The line in blue is where the program was breaking without a breakpoint being set. Note, I did try to set a data breakpoint for the condition gs_radio_handler.rx_device_id == 649140 but I am not sure if it worked or not. 

    gs_radio_handler.rx_device_id = util_GetUInt32(&crypto_buf_enc[1]);
    if ( gs_radio_handler.rx_device_id == 946074 )  

    Kind regards

    Mohamed

  • Hello again Mohamed,

    Learner said:
    but I am not sure if it worked or not. 

    Could you share with me how the debug breakpoint screen looks after you've added the data breakpoint, and what you click on in order to delete it?

    Could you perform a small test, in which you open a mint condition example from the SDK, run it, and see that there is no breakpoints being triggered, and then redo the test after having added and removed a data breakpoint on any of the variables? Are you then still seeing any lingering behavior of the data breakpoint?
    If so, could you then send me the SES project file, so I may take a closer look and see what might be going wrong?

    Best regards,
    Karl

  • Hi Karl,

    Thank you for trying to investigate this problem further.

    I will provide you with the requested information later on today.

    What is the correct way of setting a data breakpoint in Segger Embedded Studio?

    Note, I am using the version below.

    SEGGER Embedded Studio for ARM

    Release 5.34a  Build 2021011401.44914

    Nordic Edition

    Windows x64

    Kind regards

    Mohamed

  • Hello again Mohamed,

    Learner said:
    I will provide you with the requested information later on today.

    Did you get a chance to look at this further? Or is this perhaps not an issue anymore?

    Learner said:
    What is the correct way of setting a data breakpoint in Segger Embedded Studio?

    Click on the debug tab and select Breakpoints -> New Data Breakpoint option to setup a data breakpoint in Segger Embedded Studios. The new breakpoint will appear in the Breakpoints window. You can see the breakpoints windows if you click on Debug and select Breakpoints -> Breakpoints in the dropdown menu.
    It might also be helpful to have a look through Segger's own page regarding Data Breakpoints and how to use them.

    Best regards,
    Karl

Related