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

RAM start address determination

 For RAM locations, I've looked at the getting started guide that discusses using debugging to find the RAM address. https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory
But, I see in the examples that the address is set to something other than the minimum RAM address and I would like to know if there's an programmatic way to determine the correct RAM start address for the application. Is there a way to plan this address other than just debugging to get it?
Parents
  • Hello,

    The nrf_sdh_ble_default_cfg_set() which is used in all of our BLE examples will give you the RAM requirements, and print in the log if you need to adjust them.

    I don't know the formula by heart, but these requirements depend on many parameters, mainly: Are you a central or a peripheral? How many central connections do you support, how many peripherals connections do you support, and most importantly, how many Services and characteristics do you have? How big are the sizes of your characteristic values, and so on.

    I believe that the easiest approach is to monitor the nrf_sdh_ble_default_cfg_set() call, and see if you need to apply any changes to your RAM settings.

    Best regards,

    Edvin

Reply
  • Hello,

    The nrf_sdh_ble_default_cfg_set() which is used in all of our BLE examples will give you the RAM requirements, and print in the log if you need to adjust them.

    I don't know the formula by heart, but these requirements depend on many parameters, mainly: Are you a central or a peripheral? How many central connections do you support, how many peripherals connections do you support, and most importantly, how many Services and characteristics do you have? How big are the sizes of your characteristic values, and so on.

    I believe that the easiest approach is to monitor the nrf_sdh_ble_default_cfg_set() call, and see if you need to apply any changes to your RAM settings.

    Best regards,

    Edvin

Children
Related