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

CUSTOM UUID and MEMORY SETTING

Hello. 
I want to build two services with custom UUIDs. I have successfuly built first one using this guide. Then I try to build second one, using the same guide, but I meet unknown problem in services_init() function. The problem occure in this place: services_init(); -> ble_sps_init ->

    err_code =  sd_ble_uuid_vs_add(&base_uuid, &p_sds->uuid_type);
    VERIFY_SUCCESS(err_code);

I don't know what this problem  come from. I suggested that problem with memory settings. I change those values in project options from this:
RAM_START=0x20002220
RAM_SIZE=0xdde0

to this:

RAM_START=0x20002228
RAM_SIZE=0xddd8

But this is not help. I also try to use the same UUID as for first, successfully working service, but then I meet another trouble, when I try to handle it, i get wrong values of pointer to handle attribute "p_evt_write->handle" in ble_sps_on_ble_evt(). So I think it happend because I use the same UUID. 

So what how can I solve problem with using different UUIDs? And why I can get wrong pointer to handle attribute in event handler?

My application is based on ble_app_template. I use nrf52-DK, s132 6.1.0, SDK 15.1

Related