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

NRF_ERROR_NO_MEM error when add service

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!

Parents
    1. Put your characteristic values in user memory using BLE_GATTS_VLOC_USER instead of BLE_GATTS_VLOC_STACK

    2. 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.

  • 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.

Reply
  • 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.

Children
No Data
Related