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.

CC2650MODA: Program will not fit into the available memory.

Part Number: CC2650MODA

Hello,

I am working on custom project for that purpose I customized the TI multirole project.
Hardware is : CC2650MODA.
My Program now will not fit into the available memory.

I have only 6 Byte of free space left. Have someone an idea to get more free memory size?
For example is there a way to reduce to memory size of the stack? (Comment out unused parts or something).
I am only using the central part of the multirole project. The peripheral part of the multirole project is not needed.
At the beginning of the development we thought we need the multiple roles (Central and peripheral) but now the use case has changed and we only need the central part of the multirole project.

Application Memory file:

MEMORY CONFIGURATION

         name            origin    length      used     unused   attr    fill
----------------------  --------  ---------  --------  --------  ----  --------
  FLASH                 00000000   0000a000  00009ffa  00000006  R  X
  FLASH_LAST_PAGE       0001f000   00001000  000008f7  00000709  R  X
  SRAM                  20000000   000042e0  00002c7e  00001662  RW X

Stack Memory file:

MEMORY CONFIGURATION

         name            origin    length      used     unused   attr    fill
----------------------  --------  ---------  --------  --------  ----  --------
  FLASH                 00000000   0001f000  00014a18  0000a5e8  R  X
  SRAM                  20000000   000048e7  000005fc  000042eb  RW X

  • Why don't you use simple_central example as a base of your application instead of multi-role?
  • At the beginning of our development we thought we need central and peripheral at the same time. Now the project is almost finished but the use case has changed (We only need the CC2650MODA as a central). I have looked at the simple_central project but for my understanding if I now switch to simple central project I must change a lot in my application. (The simple_central use different functions than the multirole project). I would like to avoid that change if it is possible to save memory on an easier way.
  • Hello Amann,

    You can reduce the memory on the stack side by making OSAL_SNV=0.
    You'll get some memory freed from stack end.

    Regards,
    Abhishek Yakkundi

    Please press Verify Answer below if this answered your question.
  • Thank you for your answer. After I have looked at simple central the effort was less than expected.
    I have changed to simple central and now I have free memory.