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

ble_stack_init() error code 4: Insufficient RAM allocated for the SoftDevice

I'm using SDK version 15.0.0_a53641a on nRF52840 with softdevice s140_nrf52_6.1.0_softdevice.hex.

When I execute the code below in ble_stack_init(void) , I get an error code of 4 which I believe means "Insufficient RAM allocated for the SoftDevice"

If I continue to debug inside nrf_sdh_ble_enable(&ram_start) , I get an NRF_LOG_WARNING saying I need to change the RAM start location from 0x200022e0 to 0x2003ffdc.

So I update my .ld file to reflect this...

  

However, when I clean the project, rebuild and try to debug (via eclipse) the code crashes from the very beginning. As if it cannot execute the code now that I changed the RAM ORIGIN field in the .ld file.

Does anyone have any suggestions on how to fix this issue?

Parents Reply Children
No Data
Related