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

  • I'm sorry for the confusion. So if I understand you correctly:

    • You want to debug the code in the ble_app_hrs example, but you want to do it without running the bluetooth stuff?
    • Are there any functions in particular that you want to understand?
    • You can set breakpoints in your code, but the debugger runs past them? Or is the problem that the debugger never reach them?
Reply
  • I'm sorry for the confusion. So if I understand you correctly:

    • You want to debug the code in the ble_app_hrs example, but you want to do it without running the bluetooth stuff?
    • Are there any functions in particular that you want to understand?
    • You can set breakpoints in your code, but the debugger runs past them? Or is the problem that the debugger never reach them?
Children
No Data
Related