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

How can i increase the GATTS attribute Table Size?

During the initialisation adding gatt attributes with the function "sd_ble_gatts_characteristic_add" i get the error NRF_ERROR_NO_MEM. So it seems the default table size is to small. How can i increase it? I tried changing BLE_GATTS_ATTR_TAB_SIZE_DEFAULT to 0x0700 but then i get a error during ble_stack_init.

Parents
  • I was able to solve the problem by

    1. changing the BLE_GATTS_ATTR_TAB_SIZE_DEFAULT to 0x0700
    2. Changing the IRAM1 start to 0x20003000 and size to 0xD000 in the Keil Target Options This probably result to extra available Ram for the Softdevice which was needed for the larger Gatts attribute Table
Reply
  • I was able to solve the problem by

    1. changing the BLE_GATTS_ATTR_TAB_SIZE_DEFAULT to 0x0700
    2. Changing the IRAM1 start to 0x20003000 and size to 0xD000 in the Keil Target Options This probably result to extra available Ram for the Softdevice which was needed for the larger Gatts attribute Table
Children