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

Can't start/debug program from Eclipse

Hardware: nRF52 DK Example: ble_app_hrs I have a problem with starting program using debugger. I starts debugging session and starts program using resume button, breakpoints disabled. Application stops on address 0x8c8 and won't go ahead. Application works well without debugger. Stepping program showed that problem occurs while calling sd_softdevice_enable function (sofdevice_handler.c line 357). This function was called by ble_stack_init form main.c

Parents
  • Hi,

    Do you get any error code returned when sd_softdevice_enable() is called?

    Keep in mind that you cannot step through a sd_-call or after you have enabled the Softedevice as this vil halt the CPU and cause the SoftDevice to assert since this breaks its real-time requirements.

    You could try to uncheck "Load executable" in the debug configurations, and see if that solves the issue. See this post.

Reply
  • Hi,

    Do you get any error code returned when sd_softdevice_enable() is called?

    Keep in mind that you cannot step through a sd_-call or after you have enabled the Softedevice as this vil halt the CPU and cause the SoftDevice to assert since this breaks its real-time requirements.

    You could try to uncheck "Load executable" in the debug configurations, and see if that solves the issue. See this post.

Children
Related