2020-12-17 11:25 AM
I have a requirement for 10 services and each service contains 4 charecteristics.
-currently, I have defined 10 services and characteristics. in code.
-firmware starts, but when I try to connect from the app it gets stuck in
void hci_cmd_resp_wait(uint32_t timeout)
{
UTIL_SEQ_WaitEvt(1 << CFG_IDLEEVT_HCI_CMD_EVT_RSP_ID);
return;
}
this code.
-I have also modified required definitions according
#define CFG_BLE_NUM_GATT_ATTRIBUTES (129+9)
#define BLE_CFG_SVC_MAX_NBR_CB 10
2020-12-18 02:46 AM
The size of the SRAM area dedicated to the memory allocation for services and characteristics is limited.
it is never sure that the services you define will fit in that area.
The process to check if it is OK is:
Then check the return value of the SHCI_C2_BLE_Init() function. If it is not zero, the configuration is too big for the available memory space.