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 on sd_ble_uuid_vs_add() after adding DFU

I had a custom BLE service working just fine, but once I tried to integrate buttonless DFU (based on the SDK example) I started getting the NRF_ERROR_NO_MEM error. I was able to trace it to the the sd_ble_uuid_vs_add() method. In fact, if I change the order of initialization (DFU before my custom service), DFU starts but my custom services fails to start.

I have read through dozens of similar problems but none of the proposed solutions seem to work for me. I already increase NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE to 5120 and NRF_SDH_BLE_VS_UUID_COUNT to 2 (tried even higher numbers). This is the error I get:

<error> app: ERROR 4 [NRF_ERROR_NO_MEM] at ../../../Characteristics.c:60

As you can see, the error message doesn't include any suggestion for RAM start/size changes (like mentioned in other posts).

I'm using SDK 17.0.1, NRF52832.

Thank you!

Related