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

Merging NUS with LBS returns NRF_ERROR_NO_MEM

Hi, I use PCA10040 v1.1 with SDK12.1 via S132 v3.

I use Keil 5.21.

After testing the LBS example, I was merging the NUS (NORDIC UART Service) to the standalone LBS example.

However, the sd_ble_gatts_service_add (which is in ble_nus_init) returns NRF_ERROR_NO_MEM.

Keil

So I thought increasing the IRAM1 might solve this.

I heard that this is due to the insufficient memory from the SoftDevice.

However, even though I increase it, it still returns the same error.

In this case, what do I have to do to merge both services?

-Best Regards, Mango

Parents
  • If you have increased the number of UUIDs you are using, you have to increase .vs_uuid_count to the number of UUIDs you are using, e.g.

    ble_enable_params_t ble_enable_params;
    err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT, PERIPHERAL_LINK_COUNT,
                                                                            &ble_enable_params);
    APP_ERROR_CHECK(err_code);
    ble_enable_params.common_enable_params.vs_uuid_count =#of_UUIDs;
    

    If you still get NRF_ERROR_NO_MEM, you will need to increase the size of the GATT table.

Reply
  • If you have increased the number of UUIDs you are using, you have to increase .vs_uuid_count to the number of UUIDs you are using, e.g.

    ble_enable_params_t ble_enable_params;
    err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT, PERIPHERAL_LINK_COUNT,
                                                                            &ble_enable_params);
    APP_ERROR_CHECK(err_code);
    ble_enable_params.common_enable_params.vs_uuid_count =#of_UUIDs;
    

    If you still get NRF_ERROR_NO_MEM, you will need to increase the size of the GATT table.

Children
Related