dear all,
I want to know how to estimate ram of softdevice use.
For example, as a central, how much ram will be required when adding a custom ble service,
and how much ram will be required when adding support for one more connection.
Hi delay_7,
You can find out the RAM required for the softdevice by looking at the p_app_ram_base that's output from the sd_ble_enable() function.
You can see this in the description of sd_ble_enable() function:
* @param[in, out] p_app_ram_base Pointer to a variable containing the start address of the application RAM region (APP_RAM_BASE). On return, this will contain the minimum start address of the application RAM region required by the SoftDevice for this configuration.
What you can do is to printout p_app_ram_start after sd_ble_enable() call in nrf_sdh_ble_enable() in nrf_sdh_ble.c. Similar to what we do here when the ram on configured for the softdevice is not sufficient:

Hi delay_7,
You can find out the RAM required for the softdevice by looking at the p_app_ram_base that's output from the sd_ble_enable() function.
You can see this in the description of sd_ble_enable() function:
* @param[in, out] p_app_ram_base Pointer to a variable containing the start address of the application RAM region (APP_RAM_BASE). On return, this will contain the minimum start address of the application RAM region required by the SoftDevice for this configuration.
What you can do is to printout p_app_ram_start after sd_ble_enable() call in nrf_sdh_ble_enable() in nrf_sdh_ble.c. Similar to what we do here when the ram on configured for the softdevice is not sufficient:
