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

  • Hi Mohamed,

    It is good to hear that you were able to find out what triggered the fault in the end. 

    Learner said:
    I would have thought the tools would have reported a BUFFER OVERFLOW error instead.

    I am not sure how a fault handler could be made to detect buffer overruns. There are not any mechanisms to catch buffer overruns before memory corruption occurs either. The first step which I normally take in these situations is to have a look at the stack trace to see if I can determine where the exception was raised. The "Faulting instruction address" indicated that you may have had a corrupt function pointer. 

    Learner said:
    I would appreciate it if you could answer it or point me to a document that describes this.

    I am not aware of any documentation that covers this, but I showed you where you could find the stack areas in the .map file.

    Kind regards,

    Vidar

Related