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.

SIMPLELINK-CC2640R2-SDK: Difference in memory consumption between stack build configurations : split image and library

Part Number: SIMPLELINK-CC2640R2-SDK
Other Parts Discussed in Thread: CC2640

Hi Team,

In order to have On-chip OAD, we are in the process of finding the memory footprints of various applications(Persistent App, Stack, User application) with stack built as library.

This is done to understand whether On-chip OAD can be done using stack library method(with BIM, Persistent App linked to stack library, User App linked to stack library)

The sdk being used is "simplelink_cc2640r2_sdk_2_20_00_49".

For Library method, the example project "simple_peripheral" is taken and map file indicated that the library "simple_peripheral_cc2640r2lp_stack_library.lib" consumed 16126 bytes of FLASH memory.

But in case of split image method, the example project "simple_peripheral_oad_onchip" indicated that the stack consumed 36864 bytes.

Can you please guide us how to find the memory consumed by stack in "Library" method and how could we relate memory consumption of stack in "split-image" and "Library" methods?

Does the above inference mean that 16126 bytes of stack will be added to "Persistent Application" and "User Application separately?

Thanks,

Arul Christopher

  • Hello. I would recommend comparing individual stack modulfes between the two .map files.  Is this in CCS or IAR?

  • Hi,

    I am using CCS based environment.
    Is there a document listing the files that are part of stack so that it will be easy to compare between "Stack-Library" and "Split-image" .map files.

    Thanks,
    Arul Christopher
  • No there is not and I'm not sure what you mean by "part of the stack." Since you are using CCS, I would recommend comparing the .map files between the two projects. If you look under "MODULE SUMMARY", you can see how much size each module takes:

    For example,
    C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\source\ti\blestack\blelib\ctrlll\cc2640_ctrlll_xcxx.a
    ll.o 2992 0 156
    ll_scheduler.o 2016 0 12
    ll_master_end_causes.o 2000 0 0
    ll_isr.o 1966 0 0
    ble.o 1352 0 0
    ll_common.o 1052 0 8
    ll_init_end_causes.o 976 0 0
    ll_scan_end_causes.o 604 0 40
    ll_access_address.o 382 0 0
    ll_enc.o 344 0 0
    ll_config.o 0 92 52
    ll_data.o 20 0 12
    ll_error_end_causes.o 6 0 0
    +--+----------------------------------------+-------+---------+---------+
    Total: 13710 92 280

    C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\source\ti\blestack\blelib\hci_tl\cc2640_hci_tl_none.a
    hci_tl.o 208 16 5
    +--+----------------------------------------+-------+---------+---------+
    Total: 208 16 5

    C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\source\ti\blestack\blelib\host\cc26xx_att_xcxx.a
    att_client.o 364 0 4
    +--+----------------------------------------+-------+---------+---------+
    Total: 364 0 4

    C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\source\ti\blestack\blelib\host\cc26xx_gap_xcxx.a
    gap_centdevmgr.o 1440 0 16
    gap_centlinkmgr.o 612 0 8
    gap_linkmgr.o 368 0 4
    gap_configmgr.o 124 0 84
    +--+----------------------------------------+-------+---------+---------+
    Total: 2544 0 112

    C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\source\ti\blestack\blelib\host\cc26xx_gatt_xcxx.a
    gatt_client.o 2726 0 5
    gatt_server.o 274 0 0
    gatt_task.o 44 0 0
    gatt_uuid.o 0 22 0
    +--+----------------------------------------+-------+---------+---------+
    Total: 3044 22 5

    C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\source\ti\blestack\blelib\host\cc26xx_l2cap_xcxx.a
    l2cap_util.o 56 0 0
    +--+----------------------------------------+-------+---------+---------+
    Total: 56 0 0

    C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\source\ti\blestack\blelib\host\cc26xx_profiles_xcxx.a
    gattservapp.o 1434 8 16
    gapgattserver.o 732 20 147
    +--+----------------------------------------+-------+---------+---------+
    Total: 2166 28 163

    C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\source\ti\blestack\blelib\host\cc26xx_sm_xcxx.a
    sm_intpairing.o 2188 0 16
    sm_pairing.o 1296 0 0
    +--+----------------------------------------+-------+---------+---------+
    Total: 3484 0 16

    Stack: 0 0 1024
    Linker Generated: 480 979 0
    +--+----------------------------------------+-------+---------+---------+
    Grand Total: 64150 10109 8361