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

Device reset when calling sd_ble_uuid_vs_add second time

I am using nRF5_SDK_11.0.0-2.alpha_bc3f6a0 with PCA10040 and GCC. I am working on the ble hrs with DFU example. I have modify the hrs to my custom service with a 128bit service UUID. I have call sd_ble_uuid_vs_add 2 times, first one is for my custom service init and the second one is in ble_dfu_init. On the second time, it will return NRF_ERROR_NO_MEM and cause the device reset. If I do not include the DFU service or do not include my custom service, it will working fine. Is there any solution for that?

image description

ble_hrs.c

ble_hrs.h

Parents Reply
  • I have created a new project of ble_app_hrs_with_dfu using the original nRF5_SDK_11.0.0-2.alpha_bc3f6a0 zip file package. I have only modified the hrs UUID to a 128bit UUID and attached the modified file in post above. I have added comment to the part which is modified. It works fine without the enable of the DFU service which can show in the attached picture in above post. When I enable the DFU service, I will cause error and return NRF_ERROR_NO_MEM when calling sd_ble_uuid_vs_add. I hope it can help for analysis the problem.

Children
No Data
Related