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

Increase memory for S132 on SDK13?

We recently moved from SDK11 to SDK13. We run out of memory when adding custom services & chars to the S132 v4.0 softdevice. Increasing the app start address in the linker file just causes the app to crash.

How do we increase the RAM available to the softdevice?

We're using GCC and nrF52832.

Parents
  • Are you getting NRF_ERROR_NO_MEM when you add services/charactersistics using sd_ble_gatts_service_add()/ sd_ble_gatts_characteristic_add()? If yes, then you need to increase the Attribute table size by calling sd_ble_cfg_set() with the BLE_GATTS_CFG_ATTR_TAB_SIZE Conf ID.

    If NRF_ERROR_NO_MEM returned by sd_ble_enable() in softdevice_enable() called by ble_stack init(), then you it should just be the matter of adjusting the RAM start address according to the app_ram_base value returned by sd_ble_enable().

Reply
  • Are you getting NRF_ERROR_NO_MEM when you add services/charactersistics using sd_ble_gatts_service_add()/ sd_ble_gatts_characteristic_add()? If yes, then you need to increase the Attribute table size by calling sd_ble_cfg_set() with the BLE_GATTS_CFG_ATTR_TAB_SIZE Conf ID.

    If NRF_ERROR_NO_MEM returned by sd_ble_enable() in softdevice_enable() called by ble_stack init(), then you it should just be the matter of adjusting the RAM start address according to the app_ram_base value returned by sd_ble_enable().

Children
Related