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

Insufficient RAM for the soft device. How to edit RAM allocation in SES.

Windows 10, Segger V4.52c, S132, SDK 15.2.0, nRF52832

I've been through a few posts talking about needing more RAM allocated to the SoftDevice when other services are added.
I get this error when adding the NUS service to the ble_template app.

My problem is I do not know where to actually change the RAM values.

Thank you in advance!

Parents
  • Hi Connor, you will have to right-click on the project and go to option. Afterwards, go to common at the top right dropdown. (See the second picture below.) There should be a section placement macros to edit the RAM allocation. However, do be aware that the debug terminal should show you the RAM allocation required. To see the RAM allocation I think you will have to enable 

    NRF_LOG_ENABLED 1 

    as well as disable
    NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0 (this allows the debug terminal to show info messages)

    If it is still not working feel free to let me know, will try to help

  • Thank you for the clear instructions! I was able to find where to edit the RAM.  Problem now is my debug terminal doesn't output anything.

    NRF_LOG_ENABLE is 1 however my sdk_config.h doesn't have a define for NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED.
    Is it not located in the sdk_config?

    Edit: I used the local variable viewer to grab the values it wants to be set to and I get the errors in the below image.

    Also, What is the difference between RAM_PH_... and RAM_...?

  • Hi Connor, 

    NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED should be located at line 7502 for your sdk_config file. Search deeper, sometimes the search may not be able to pick up certain keywords. 

    I am not too sure what you mean by the local variable viewer, someone else has to advise you on that. As for your errors, you may want to first try to search the Devzone while waiting for a reply from a more experienced teacher.

    As for your last question, I think the link here provides an amazing explanation by Andreas. 

Reply
  • Hi Connor, 

    NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED should be located at line 7502 for your sdk_config file. Search deeper, sometimes the search may not be able to pick up certain keywords. 

    I am not too sure what you mean by the local variable viewer, someone else has to advise you on that. As for your errors, you may want to first try to search the Devzone while waiting for a reply from a more experienced teacher.

    As for your last question, I think the link here provides an amazing explanation by Andreas. 

Children
No Data
Related