Hi, I received the NRF_ERROR_NO_MEM error when add multi-service using S110.The latest sd_ble_uuid_vs_add() function return this error.The softDevice is SD8.0.0,SDK is v8.1.0.How to resolve it? TKS!
Hi, I received the NRF_ERROR_NO_MEM error when add multi-service using S110.The latest sd_ble_uuid_vs_add() function return this error.The softDevice is SD8.0.0,SDK is v8.1.0.How to resolve it? TKS!
Put your characteristic values in user memory using BLE_GATTS_VLOC_USER instead of BLE_GATTS_VLOC_STACK
Increase the size of the GATT table with the attr_tab_size property of the ble_gatts_enable_params_t you initialise the softdevice with.
Put your characteristic values in user memory using BLE_GATTS_VLOC_USER instead of BLE_GATTS_VLOC_STACK
Increase the size of the GATT table with the attr_tab_size property of the ble_gatts_enable_params_t you initialise the softdevice with.
Hi,RK,thank you for your answer.I have implemented the first solution as your answer,but how to implement the second item?
Look for sd_ble_enable(&ble_enable_params);
in main.c. Before that function call set ble_enable_params.gatts_enable_params.attr_tab_size = THE_SIZE_YOU_NEED;
.
Then you will need to increase the IRAM1 start address and decrease the IRAM1 size settings correspondingly. Make sure that the Attribute Table size is a multiple of 4 and to read Chapter 11 of the S110 Specification V2.0.
Hello,I have set ble_enable_params.gatts_enable_params.attr_tab_size = 0x0900,the IRAM1 start address is 0x20002200 and the IRAM1 size is 0x2000(My chip is 32K ram),but I just add successfully the following code in service_init():
err_code = sd_ble_uuid_vs_add(&ble_ancs_base_uuid128, &m_ancs_uuid_type);
APP_ERROR_CHECK(err_code);
err_code = sd_ble_uuid_vs_add(&ble_ancs_cp_base_uuid128, &service_uuid.type);
APP_ERROR_CHECK(err_code);
I want to add more characteristics.
So you are not able to add more services than those two? Is it not possible to increase the IRAM1 size even more? Remember that you should increase the IRAM1 start address and decrease the size equally.
Updated link for S110 Specification V2.0. infocenter.nordicsemi.com/.../S110_SDS_v2.0.pdf