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.

CC2340R5: unit advertising but not connectable

Part Number: CC2340R5

Tool/software:

Good morning,

SDK version 8.20.00.119

When the  GATTEventHandler is called by ble task, depending on the method the a free of the data need to be called to avoid memory consumption (GATT_bm_free(&gattMsg->msg, gattMsg->method);)

We spotted it has to be called with ATT_HANDLE_VALUE_NOTI and  ATT_HANDLE_VALUE_IND methods.

Are there other methods that need to free the memory?

Is it documented somewhere?

Thank you

  • Hi,

    Thank you for reaching out. I highly recommend using the latest version of the F3 SDK as many fixes and new features have been added since the 8.20 SDK release. Regarding the memory consumption topic, those are the main events that require memory being freed after the payload is received. Are you still seeing higher than expected memory consumption or any leaks on your side?

    Best Regards,

    Jan

  • Thank you for reccomandation.
    I saw a memory leak when ATT_HANDLE_VALUE_IND and I fixed it.

    I would like to know if there are other scenarios where I need to call function GATT_bm_free, just in case I implement them in the future and avoid spending time looking for memory leak.

    Thank you

  • Hi,

    I believe those should be the only ones you need to free upon being received. The rest should be auto-freed by the stack.

    Best Regards,

    Jan