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

calling pm_peers_delete cause fatal error

calling pm_peers_delete cause fatal error

why does it happened?

nRF5_SDK_17.0.2_d674dde/ble_app_multirole_lesc

Parents Reply
  • From your log, you can see that "Fatal error" is printed:

    This means that a function returned an error-code, and that error-code was passed to APP_ERROR_CHECK(), and app_error_fault_handler() is called.

    The default behavior when DEBUG is not defined, is to just reset the device using NVIC_SystemReset(). 

    But if you want to debug the issue, and get the error information, then you don't want the chip to reset. So then you need to change the behavior of app_error_fault_handler() by defining DEBUG. How a preprocessor define is added depends on what IDE/toolchain you are using.

Children
Related