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.

CC2640R2F: BLE5 Stack (SDK 2.20, BLE5 1.01.02) size is way too big

Part Number: CC2640R2F
Other Parts Discussed in Thread: BLE-STACK

I am trying to use the CC2640R2F BLE5 stack of the latest SDK 2.20 (BLE5 1.01.02). The stack size is super huge. The basic Simple BLE Peripheral takes total 112.7K even with GAP_BOND_MGR disabled.

96 226 bytes of readonly code memory

11 112 bytes of readonly data memory

8 143 bytes of readwrite data memory

(SDK 2.20)

Minus CCFG, and 4K NV, there is almost no space left for any further development. Compared to the previous version, SDK 1.40 (BLE5 1.00.01.45), the size is way smaller. If I only need the Long-Range of BLE5, is there any way to reduce the size? 

84 699 bytes of readonly code memory

10 661 bytes of readonly data memory

9 034 bytes of readwrite data memory

(SDK 1.40)

Samson

  • Hello Samson,

    The latest BLE5 stack is bigger than the previous BLE5 stack due to more features being supported. Also we have further suggestions on how to Optimize the BLE stack memory usage in our BLE-Stack user's guide, found here: dev.ti.com/.../creating-a-custom-bluetooth-low-energy-application.html

    Hopefully this helps.

    David
  • Hello David,

    Thank you for the reply. The optimization seems not doing too much on BLE5 stack.

    Even I put GATT_NO_CLIENT, the size has no change at all.

    There is no option I can use to disable for Bluetooth 5. On build_config.opt:

    BLE_V50_FEATURES Configure the stack to use features from the BLE 5.0 Specification
    The following BLE 5.0 features are enabled by default and cannot
    be disabled.

    Samson