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

Cant step through code in SES when running Debug versions of example code in nRF5_SDK_16.0.0 on nRF52 DK

I am trying to step through the code of an example of the nRF5_SDK_16.0.0 on the nRF52 DK board.

I downloaded the latest version of Segger Embedded Studio (v4.30c) and I can compile the project for both release and  debug.

If I place a break-point on the first line of main (bsp_board_init(BSP_INIT_LEDS); in this case) it looks all normal.

I hit Debug->Go, it programs, but it seems like my break-point is now unavailable. I can hit pause, and see the dissemble. Seems like I can even use the step into button to move somewhat around in the dissembled code. But it fails to link the code with the actual c file somehow.

  • Hi,

    Does SES actually let you place a breakpoint in that line? In debugging mode (Debug > Go) you should see a small blue arrow to the left of the line if you are allow to place a breakpoint there. If not, you may need to change the debug level, try for instance to compile in debug mode and not in release.

    If this doesn't solve the problem please take some screenshots so it is easier for us to know what is happening.

    This video tutorial about debugging with SES may also be helpful: https://www.youtube.com/watch?v=uP8RYgYGRvI&feature=emb_title

    Best regards,

    Marjeris