Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF_ERROR_NO_MEM adding service UUID

I am starting a new project using SDK 17.0.2, DK52 dev board and Segger embedded Studio.

To create the new project I started from ble_app_buttonless_dfu and commented out ble_dfu_buttonless_async_svci_init call for now (I will use dfu later on). Then I started adding a new custom service using this guide:

https://github.com/NordicPlayground/nRF52-Bluetooth-Course

Problem is that I cannot start the application because the following error:

ERROR 4 [NRF_ERROR_NO_MEM]

when I try to add the custom service UUID:

sd_ble_uuid_vs_add(...)

Changing:

RAM_START=0x20002260
RAM_SIZE=0xDDA0

to the values suggested in the tutorial:

RAM_START=0x20002220
RAM_SIZE=0xDDE0

I get the following error:

<warning> nrf_sdh_ble: Insufficient RAM allocated for the SoftDevice.
<warning> nrf_sdh_ble: Change the RAM start location from 0x20002220 to 0x20002260.
<warning> nrf_sdh_ble: Maximum RAM size for application is 0xDDA0.
<error> nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.

at this call:

nrf_sdh_ble_enable(...)

Can anyone help me with this?

Related