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

Insufficient RAM allocated for the SoftDevice with Relay Application

Hi, 

I've built a application based off of the ble_app_hrs_rscs_relay_pca10040_s132 example in SES using a Laird BL652 module (nRF52832 underlying device). Presently the program works with the following configuration to have the relay device connected to one central as a peripheral (relay to phone connection) and connected to two peripheral devices as a central device (relay to sensor devices). I'm trying to add more than two peripheral devices to be able to be connected to the relay device, but have been getting the following RAM errors whenever I define the sdk_config.h to support more link connections. When modifying the memory location and size under project->options->linker(common)->section placement macros I still get the RAM errors unless I only have a have a maximum of 3 total links. 

SDK_CONFIG.h Settings that work (any value higher than this gives an error in this dual mode (central/peripheral) configuration):

RAM Errors:

Is there any other settings that need to be changed in order to enable more devices to be connected while in this configuration? Or does this central/peripheral connection type occupy more RAM space that other types and thus will not allow more than 3 total connections? Or does the nRF52832 not support as many devices connected for some other reason with the SoftDevice 132 in this multi-role configuration.

Thanks!

Parents
  • This line indicates that your changes to the RAM start location wasn't sufficient;
    <warning> nrf_sdh_ble: Change the RAM start location from 0x200049D8 to 0x20005418.

     Did you try using the suggested 0x20005418?

    Regards,
    Joakim

Reply
  • This line indicates that your changes to the RAM start location wasn't sufficient;
    <warning> nrf_sdh_ble: Change the RAM start location from 0x200049D8 to 0x20005418.

     Did you try using the suggested 0x20005418?

    Regards,
    Joakim

Children
  • Yes, this is what I was referring to when I say "When modifying the memory location and size under project->options->linker(common)->section placement macros I still get the RAM errors unless I only have a have a maximum of 3 total links." Basically whenever I add more than 3 links (3 central, 1 peripheral) and I modify the RAM size and location according to the message, it never works. 3 and below with the present RAM allocation works though. 

  • Hi.

    I tried modifying the ble_app_hrs_rscs_relay example to support more than a total of 3 links, but I'm not seeing an error like you do.

    In short, what other changes have you made to the example that could affect the memory usage?
    And which version of the nRF5 SDK are you working with?

    Best regards,
    Joakim