This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ram resource requirements

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.

Parents
  • 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: 

Reply
  • 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: 

Children
No Data
Related