cancel
Showing results for 
Search instead for 
Did you mean: 

CAP_Init return BLE_STATUS_OUT_OF_MEMORY

Xiaojie
Associate III

Hello

    My Project is based on STM32WBA55G-DK1 to develop my ble headphone.But when i called CAP_Init API, it returned BLE_STATUS_OUT_OF_MEMORY. I don't know which parameter is causing this issue. Following Parameters are my ble config.

 

#define CFG_BLE_NUM_LINK            (1)
#define CFG_BLE_NUM_GATT_SERVICES   (2)
#define CFG_BLE_NUM_GATT_ATTRIBUTES (11)
#define CFG_BLE_ATT_MTU_MAX         (251)
 
Thanks
3 REPLIES 3
Xiaojie
Associate III

😂

STTwo-32
ST Employee

Hello @Xiaojie 

I suggest you take a look at this post. It should be helpful.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hi, 

 

     I change CFG_BLE_NUM_GATT_SERVICES、CFG_BLE_NUM_GATT_ATTRIBUTES、CFG_BLE_ATT_VALUE_ARRAY_SIZE, and the CAP_Init will not return BLE_STATUS_OUT_OF_MEMORY, but return 0x7. What does the error code  7 mean?

 

Thanks