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: OAD - Program will not fit into available memory.

Part Number: SIMPLELINK-CC2640R2-SDK


Hi.

I imported the OAD feature to existing project. When i try to compile, i got error message;

Description	Resource	Path	Location	Type
<a href="processors.wiki.ti.com/.../10099">  program will not fit into available memory.  placement with alignment fails for section ".text" size 0x1450d .  Available memory ranges:	.ccsproject	/minfant_tirtos	line 256, external location: C:\ti\simplelink_cc2640r2_sdk_1_35_00_33\source\ti\blestack\common\cc26xx\ccs\cc26xx_app_oad_onchip.cmd	C/C++ Problem
<a href="processors.wiki.ti.com/.../10099">  program will not fit into available memory.  placement with alignment fails for section ".rodata" size 0x9a .  Available memory ranges:	.ccsproject	/minfant_tirtos	line 259, external location: C:\ti\simplelink_cc2640r2_sdk_1_35_00_33\source\ti\blestack\common\cc26xx\ccs\cc26xx_app_oad_onchip.cmd	C/C++ Problem
<a href="processors.wiki.ti.com/.../10099">  program will not fit into available memory.  placement with alignment fails for section ".const" size 0x187c .  Available memory ranges:	.ccsproject	/minfant_tirtos	line 257, external location: C:\ti\simplelink_cc2640r2_sdk_1_35_00_33\source\ti\blestack\common\cc26xx\ccs\cc26xx_app_oad_onchip.cmd	C/C++ Problem
<a href="processors.wiki.ti.com/.../10099">  program will not fit into available memory.  placement with alignment fails for section ".cinit" size 0x359 .  Available memory ranges:	.ccsproject	/minfant_tirtos	line 260, external location: C:\ti\simplelink_cc2640r2_sdk_1_35_00_33\source\ti\blestack\common\cc26xx\ccs\cc26xx_app_oad_onchip.cmd	C/C++ Problem

"C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/blestack/common/cc26xx/ccs/cc26xx_app_oad_onchip.cmd", line 256: error #10099-D: program will not fit into available memory.  placement with alignment fails for section ".text" size 0x1450d .  Available memory ranges:
   FLASH        size: 0xfff0       unused: 0x0          max hole: 0x0       
"C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/blestack/common/cc26xx/ccs/cc26xx_app_oad_onchip.cmd", line 257: error #10099-D: program will not fit into available memory.  placement with alignment fails for section ".const" size 0x187c .  Available memory ranges:
   FLASH        size: 0xfff0       unused: 0x0          max hole: 0x0       
"C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/blestack/common/cc26xx/ccs/cc26xx_app_oad_onchip.cmd", line 259: error #10099-D: program will not fit into available memory.  placement with alignment fails for section ".rodata" size 0x9a .  Available memory ranges:
   FLASH        size: 0xfff0       unused: 0x0          max hole: 0x0       
"C:/ti/simplelink_cc2640r2_sdk_1_35_00_33/source/ti/blestack/common/cc26xx/ccs/cc26xx_app_oad_onchip.cmd", line 260: error #10099-D: program will not fit into available memory.  placement with alignment fails for section ".cinit" size 0x359 .  Available memory ranges:
   FLASH        size: 0xfff0       unused: 0x0          max hole: 0x0    

  • Hello Erdem,

    It looks like you have the GAP_BOND_MGR disabled in your stack build_config.opt. Perhaps you can also disable LESC: V42_FEATURES=SECURE_CONNS_CFG to free up more space.

    Beyond that, you'd need to look at what you added to simple_peripheral.c and your as393x.c, these seem to be big contributors to your flash usage.

    Best wishes