cancel
Showing results for 
Search instead for 
Did you mean: 

BlueNRG-LP Insufficient Resources

JLee.46
Associate II

Hi,

Whenever i call aci_gatt_clt_disc_all_primary_services() or aci_gatt_clt_exchange_config(),

the stack returns BLE_STATUS_INSUFFICIENT_RESOURCES (0x88).

What exactly is insufficient? Is it the heap size of the stack is just busy?

What adjustment do i need to make to solve this problem?

Some backgrounds of my firmware:

Heap is set to 0x800

Using data length extension

Using coded PHY (S=8)

Using extended advertising and scanning

/* This file contains all the information needed to init the BLE stack v3.x.

 * These constants and variables are used from the BLE stack v3.x

 * to reserve RAM and FLASH according the application requests.

 */

/* Default number of link */

#define MIN_NUM_LINK_CONF (1)

/* Set supported max value for ATT_MTU enabled by the application */

#if (CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED == 1) && defined(CONFIG_SW_OTA_DATA_LENGTH_EXT) 

 #define MAX_ATT_MTU_CONF (OTA_ATT_MTU_SIZE_CONF) /* OTA Client & Server supported ATT_MTU */

#else /* No data length extension support */

#define MAX_ATT_MTU_CONF (247)

#endif

/* Number of services requests from the hub_demo_config demo */

 #define NUM_APP_GATT_SERVICES_CONF (1) /* 1 attributes x hub_demo_config demo services*/

/* Number of characteristics attributes requests from the hub_demo_config demo */

 #define NUM_APP_GATT_CHAR_ATTRIBUTES_CONF (6) /* 6 attributes x hub_demo_config demo services characteristics*/

/* Number of attribute requests from the OTA */

#if defined (CONFIG_OTA_LOWER) || defined (CONFIG_OTA_HIGHER)

 #define OTA_GATT_ATTRIBUTES_CONF (1+9) /* 10 for OTA service & characteristics */

#else /* NO OTA Service is required */

 #define OTA_GATT_ATTRIBUTES_CONF (0) /* OTA service & characteristics */

#endif

/* Number of links needed for the hub_demo_config demo: 7

 * Only 1 the default

 */

#define NUM_LINKS (7)

#define NUM_ADV_SETS_CONF (2)

#define NUM_AUX_SCAN_SLOTS_CONF (2)

#define WHITE_LIST_SIZE_LOG2_CONF (3)

#define L2CAP_MPS_CONF (247)

#define NUM_L2CAP_COCS_CONF (0)

#define NUM_SYNC_SLOTS_CONF (0)

#define MAX_NUM_CTE_ANTENNA_IDS (0)

#define MAX_NUM_CTE_IQ_SAMPLES (0)

#define ISR0_FIFO_SIZE (256)

#define ISR1_FIFO_SIZE (768)

#define USER_FIFO_SIZE (1024)

/* Number of GATT attributes needed for the hub_demo_config demo */

#define NUM_GATT_ATTRIBUTES   (NUM_APP_GATT_SERVICES_CONF + NUM_APP_GATT_CHAR_ATTRIBUTES_CONF + OTA_GATT_ATTRIBUTES_CONF)

/* Additional number of memory blocks to be added to the minimum */

#define OPT_MBLOCKS_CONF (38)

/* Set the number of memory block for packet allocation */

#define MBLOCKS_COUNT (BLE_STACK_MBLOCKS_CALC(MAX_ATT_MTU_CONF, NUM_LINKS) + OPT_MBLOCKS_CONF)

#define NUM_OF_CONCURRENT_GATT_CLIENT_PROC_CONF (0)

1 ACCEPTED SOLUTION

Accepted Solutions
JLee.46
Associate II

Solved. i didnt set NUM_OF_CONCURRENT_GATT_CLIENT_PROC_CONF  to al least 1.

View solution in original post

1 REPLY 1
JLee.46
Associate II

Solved. i didnt set NUM_OF_CONCURRENT_GATT_CLIENT_PROC_CONF  to al least 1.