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

ble_ots_init returns NRF_ERROR_NO_MEM

Details: SoftDevice 132, nRF5_SDK_15.2.0_9412b96, nRF52832

ble_ots_init started to return NRF_ERROR_NO_MEM after adding more services and characteristics to ongoing project with the following log output

<error> app: error 4 in ble_ots_object_representation_init @ 283
<error> app: 4 error 4 in ble_ots_init @ 197
<error> app: 3 error 4 in ble_ots_init @ 189

Line 382 corresponds to obj_name_char_add.

Changing configuration to support more UUIDs (from 32 to 128)

#define NRF_SDH_BLE_VS_UUID_COUNT 128

and adjusting ld script to reserve sufficient memory

RAM (rwx) :  ORIGIN = 0x20002C90, LENGTH = 0xD370

did not help.

Reducing ble_ots_object_t.alloc_len from 1024 to 128 had no effect.

What other configuration options should I change to get it working again?

P.S. Insert code feature is re-e-e-eally slow.

Parents Reply Children
Related