Hello,
I'm currently working on a project with the TI CC2541 keyfob which is my central device. I have the problem that the GATT_WriteLongCharValue causes a memory allocation error (0x13).
I have to send 211 bytes of data to a peripheral. The "gattPrepareWriteReq_t" states that memory has to be allocated for "pReq->pValue" but that doesn't work and I don't know why.
Here is my configuration:
gattPrepareWriteReq_t pPrepWriteReq;
pPrepWriteReq.handle = server_data_handle;
pPrepWriteReq.len = len;
pPrepWriteReq.offset = 0;
pPrepWriteReq.pValue = osal_mem_alloc(len);
osal_memcpy(pPrepWriteReq.pValue, hlpData, len);
status = GATT_WriteLongCharValue( connHandle, &pPrepWriteReq, keyfobapp_TaskID);
Thanks in advance for your help!!
Best regards,
Hannes