
Hello,
Please make sure that you have DEBUG defined in your preprocessor defines, like shown in the included image:
This will make your logger output a detailed error message whenever a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK. You could then check this returned error code against the returning function's API Reference to determine why the function failed, and what you could do to resolve it.
It also looks to me like you are using breakpoints with the SoftDevice present. Please keep in mind that the SoftDevice will assert immediately after a breakpoint is hit and the program resumes, since it will have missed all its timing critical deadlines. Using breakpoints while the SoftDevice is enabled is therefore not recommended, since the program will reset whenever a breakpoint is hit.
Best regards,
Karl
Hello,
Please make sure that you have DEBUG defined in your preprocessor defines, like shown in the included image:
This will make your logger output a detailed error message whenever a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK. You could then check this returned error code against the returning function's API Reference to determine why the function failed, and what you could do to resolve it.
It also looks to me like you are using breakpoints with the SoftDevice present. Please keep in mind that the SoftDevice will assert immediately after a breakpoint is hit and the program resumes, since it will have missed all its timing critical deadlines. Using breakpoints while the SoftDevice is enabled is therefore not recommended, since the program will reset whenever a breakpoint is hit.
Best regards,
Karl