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

debug session doesn't stop at main

Hi

I am trying to debug the "ble_app_hrs" example from SDK 6.1.0 (using keil IDE), on 51822 chip. The IROM1 is defined to start at 0x16000 (meant to be used with softdevice). when I start the debug session, the debugger doesn't stop at "main" (even with a breakpoint). The only solution I have found is to set IROM1 to 0x0, and than debugger stops at main and I am able to single step.

Is there a way to debug without changing IROM1 definitions?

Parents
  • Hi Martin.

    First, thanks for the quick response. I am aware that I cannot change the IROM1 settings in order to run a ble example , but that is not the issue. I want to be able to single step inside the debugger in order to better understand certain functions. I do not need the actual ble service (and that's why I don't need to load the softdevice).

    I just wondered if there is a way to do this without changing IROM1 settings. Thanks again Yaron

  • Hi If you don't want to change the IROM settings you will need to have the SoftDevice installed. But you can comment out all ble related stuff in main() and then you should be able to step through the code in debug mode. You can also, as you have already tried, remove the SoftDevice and set the IROM address to 0x0.

Reply Children
No Data
Related