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 again,

    sagarnayakm said:
    No, i added but from that only problem created right..?? so removed

    I am not sure what you mean by this, but in general you should not just remove different lines here and there if they are causing you trouble. Instead, you should investigate what they do, why they are there in the first place, and why they are causing you trouble. If you just remove it you might be omitting important parts of your program which will be hard to debug later.

    sagarnayakm said:
    but still same result and in service _init() if i comment memset of cus_init() then  advertising happened and i wrote two lines to receive the data which i have sent is it correct because whatever  the data if i sent same number was received.

    You should not just comment out different lines in the hopes of the application being able to proceed past the step.
    Every step of the tutorial, and every line of code in it, is added for a reason, and needs to be present for the tutorial to function as expected.
    At this point I think the best way forward would be for your to go through the tutorial from the beginning, and make sure to follow all the steps as described, without commenting out or removing certain parts of the code unless you are completely certain of what that part of the code is doing.

    sagarnayakm said:
    so i have correct this that is my bad i added extra return this issue is resolved

    I am glad to hear that the issue is resolved for now but this will keep on happening as long as you comment out or remove lines without considering why they are there in the first place.
    I also see that you have some warnings in your code, please clean these up as well.

    Best regards,
    Karl

Related