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

ble_evt_handler function called from where?

where will function ble_evt_handler be called from?

How does event handling work exactly?

Parents Reply
  • Hi,

    Due to the real time requirements of the BLE softdevice stack, it is not possible to debug by breakpoints in code. Instead you will have to setup a central device (e.g. phone) to for instance receive or connect to the peripheral device you are developing. You can also use the UART to for instance output debug information in real time from the peripheral device.

    Best regards,
    Kenneth

Children
  • Hi,

    To give more insight on my problem, I am afraid I can do it.

    At present, I am unable to come out of below while loop loop becuase of some reason,

    while (nrf_fstorage_is_busy(&my_instance)) {

    printf("in while loop");

    sd_app_evt_wait();
    }

    I understand sd_app_ent_wait is the function which needs to give the signal from somewhere? 

    Am I correct? May I please know how to debug it.

Related