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

[NRF_ERROR_NO_MEM] When trying to add custom service

Hello everybody,

I´m trying to add a custom service to the ble_app_buttonless_dfu example in sdk 17.0.2.

Therfore i increment the NRF_SDH_BLE_VS_UUID_COUNT but this results in

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

I tried to adjust the RAM by following this guide https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory

to the following values.


But this seems to have no effect. I suspect those values are overwritten or not used at all and a different file is responsible for providing this data?
Could someone give me a hint to a possible solution?

Thanks and best regards!

  • Looks to me like this is a very similar case to this one.

    Most likely change you need is to increase NRF_SDH_BLE_VS_UUID_COUNT in your sdk_config.h file.

  • Sorry if i was not clear enough in my initial question.

    I already did increase NRF_SDH_BLE_VS_UUID_COUNT by one which leads to the insufficient RAM error.

    I was trying to resolve it by adjusting the ram starting address and size, in segger embedded studio, as the afore mentioned guide proposes.

    But no matter to what values i change it, the exact same error consists.

    Let me try ask a less broad question:
    Is it possible the changes to the ses linkers Section Placement Macros do not take effect? If so, why would this be the case and any suggestion how to resolve it?

    As per the case you linked i tried not initializing the qwr module real quick. I did not inspect it thoroughly but the build produced also the same error. I´m also a bit hesitant to do this, since i originally planned to use the qwr. If it is the source of this problem please let me know and i have to change my course of action.

    Thanks and best regards!

  • The proposed spolution works.
    I edited the "Solution" options instead of the "Project".

    See top left corner of the question and compare it to this image.

    Future me and anybody else running into this problem please double check you are doing what you are supposed to do and spare yourself the headache.

Related