This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

Can we have multiply services in the program for BLE applicaiton?

Hi everyone, I have one question shown in the title. I try to add a second service in "ble_app_uart" project (the project is in the SDK for nRF51, SD130 v2), I did not change any code in the original project but only add a new service I learnt in this blog: devzone.nordicsemi.com/.../ . Then the program seems just stop and fail to add even one service. It works very well before I add the second service. For a little bit more detail, I put the second service init code in the original services_init() function. And it works with my own service when I bypass the original service. My board is PCA10028 Any idea?

Parents
  • If you use one or more vendor specific UUIDs you have to inform the Softdevice about it in ble_stack_init(). Have you added:

    ble_enable_params.common_enable_params.vs_uuid_count = 'number_of_vs_uuids'
    

    When you add UUIDs like this you will most likely have to change the RAM base and start address as well, like shown in the comment section here. Use RTT Viewer or a UART serial terminal to see the debug messages from the Softdevice. If none of this helps, please try to debug like this to pinpoint where and why things go wrong.

  • Thank you very much. It was the problem of memory. RTT NRF log can print the new memory and address. It works after I update the new address.

Reply Children
No Data
Related