segger embedded studio data breakpoints expressions nRF52833

Hello,

I am trying to set a data breakpoint expression on a global array or global variable  but I don't seem to be able to.

Each time I set a data breakpoint I get a '?' next to the breakpoint. See attached picture.

uint8_t ble_ad[HB_BLE_AD_BUFF_SIZE_MAX].

I am using segger Embedded Studio v5.60 and nRF52833 SoC.

Thank you.

Kind regards

Mohamed

Parents
  • Hello Mohamed,

    I created a global array named 'ble_ad' to try and reproduce this here, but it seemed to work for me. In your case, when you start typing your expression, does the variable get displayed up in the suggestion list as shown here:

    ?

    Kind regards,

    Vidar

  • Hi Vidar,

    Thank you for the quick response.

    What you did worked for me too. I ran into problems when I tried to use a data breakpoint expression applied to that variable. I suggest you edit your data breakpoint and try to use the expression I am using ble_ad[4] != 0 or any other C-like expression.

    After restarting SES IDE I can now set the data breakpoint expression without getting the '?' next to it. Very odd!

    However, the program is not breaking as expected. I checked this by setting a breakpoint at the line where ble_ad[6] is assigned the value 0x19 and it does execute this line an breaks.

    ble_ad[6] = LINK_LINE_TYPE_HOMEBEACON;

    Note, is an enum, defined ia header file as

    typedef enum eLinkLineType
    {
        LINK_LINE_TYPE_AGENCY = 0x00, /**< ? */
        LINK_LINE_TYPE_BUILDING_OWN = 0x01, /**< ? */

        ...
        LINK_LINE_TYPE_HOMEBEACON               = 0x19U,

        ...

    } link_PacketType_t;

    Thank you.

    Kind regards

    Mohamed

  • Hi Mohamed,

    I see the same as you now when I try to configure the breakpoint to trigger on a specific value. I do not get the question mark next to it, but it does not break either. I wonder if this may be an issue with Segger embedded studio because it does break when I try to configure the same breakpoint in Segger Ozone.

    Kind regards,

    Vidar

     

  • Hi Vidar,

    Not good news. So, does this mean I will not be able to set data breakpoint expressions in SES NE?

    Which version of SES NE are you using? 

    I am using v5.60,

    SEGGER Embedded Studio for ARM
    Release 5.60  Build 2021081102.47262
    Nordic Edition
    Windows x64

    I have never used Segger Ozone, is it newer or older that SES?

    Will my SES NE project build and run on Segger Ozone?

    Kind regards

    Mohamed

  • Hi Mohamed,

    I was testing with SES version 5.68 (Not the nordic edition).

    Ozone is a standalone debugger application from Segger. All you need to do to debug with Ozone is to load the *.elf file from your SES build.

    I realize it is not as convenient to have to debug with a separate application. But maybe it is OK as a workaround to use the Ozone debugger when you need to use data breakpoints?

    Kind regards,

    Vidar 

  • Hi Vidar,

    Do I need to download the Segger Ozone debugger app or is it already included in nRF Connect tools?

    Where can I download it from and any getting started guide would be appreciated?

    It looks like Segger Ozone is built into SES NE. I have found in SES NE under

    Debug -> Debug With Ozone

    But when I selected it nothing happened.

    Kind regards

    Mohamed

  • Hi Mohamed,

    Ozone must be downloaded and installed separately. You should be able to open it via SES once installed.

    Download link: https://www.segger.com/downloads/jlink/#Ozone

    Kind regards,

    Vidar

Reply Children
Related