This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/CC2640R2F: Characteristics Value length can't be larger than MTU / MAX_PDU_SIZE?

Part Number: CC2640R2F


Tool/software: TI-RTOS

Hi,

Based on the multi_role example, SimpleLink v 1.30.00.25.

if SIMPLEPROFILE_CHAR5_LEN is bigger than MAX_PDU_SIZE (minus something) then reading characteristics using Android phones fails after a timeout, with

- Error 133 (0x85): GATT ERROR

- Error 22 (0x16): GATT CONN TERMINATE LOCAL HOST

The Heap, C-Stack, Task-Stacks look OK.

It is not possible to increase MAX_PDU_SIZE because there isn't enough RAM left...

I also tried updating the following without success:

simpleProfile_ReadAttrCB()

remove 

return ( ATT_ERR_ATTR_NOT_LONG );

change

VOID memcpy( pValue, pAttr->pValue, MIN(maxLen,SIMPLEPROFILE_CHAR5_LEN) );

Thx,

Jerome