nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to add custom service to the Ble_app_template example

Hello i am using nrf52810 with SDK version 17.0.2 , i want to add custom service to the ble_app_template example and i followed this tutorial link https://github.com/edvinand/custom_ble_service_example so at first debug i got this error as expected 

next i have change the RAM_START AND RAM_SIZE as per the memory size mentioned in the error then i DEBUG it again so the i got 

so i don't know what's happening please help me to resolve this . 

thank you.

  • Hello,

    Please make sure to 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.
    Please do this, and let me know what the error message reads, along with which function that returned the error code pointed to in the error message.

    Best regards,
    Karl

  • Hello,

    mr Karl i am very happy to communicate with you and thank you so much for your reply, i tried as you said  and i got this error,

    thank you,

  • sagarnayakm said:
    mr Karl i am very happy to communicate with you and thank you so much for your reply

    No problem at all, I am happy to help!

    sagarnayakm said:
    i tried as you said  and i got this error,

    Which function returns this error code? Please check the end of the error message to see where the APP_ERROR_CHECK was triggered.

    Best regards,
    Karl

  • Hello,

    yes, i got where exactly its the function service_init()  in that ble_cus_init() it returns err_code 7 please

    have a look at this ,

    thank you,

  • So it seems your ble_cus_init function is returning the NRF_ERROR_INVALID_PARAM error.
    How does this function look? Under what conditions will it return this error code?
    Likely it is just forwarding the error code generated by a SDK function it itself is calling.

    Best regards,
    Karl

Related