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.

CCS/CC2640: Error: 10099-D: program will not fit into available memory when compiling application

Part Number: CC2640

Tool/software: Code Composer Studio

Hello,

    I am receiving an error when building a modified project of simple_peripheral_cc2650lp_app (Sources of new profiles(BLE services) and new sensor drivers are added to the project, project base sources were not modified heavily, only invocations to these new sources are appended to these base sources etc main.c,simple_peripheral.c  ). Error message is:

l"C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/bin/ccs/driverlib.lib" -l"C:/ti/simplelink/ble_sdk_2_02_01_18/src/rom/common_rom_releases/03282014/common_rom.symbols" 

<Linking>
"C:/ti/simplelink/ble_sdk_2_02_01_18/src/common/cc26xx/ccs/cc26xx_app.cmd", line 130: error #10099-D: program will not fit into available memory. run placement with alignment fails for section "GROUP_1" size 0x3e7f . Available memory ranges:
SRAM size: 0x4348 unused: 0x413c max hole: 0x3e28
"C:/ti/simplelink/ble_sdk_2_02_01_18/src/common/cc26xx/ccs/cc26xx_app.cmd", line 124: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".cinit" size 0x74f . Available memory ranges:
FLASH size: 0xe000 unused: 0x6 max hole: 0x3
FLASH_LAST_PAGE size: 0x1000 unused: 0x2ef max hole: 0x2ed
error #10010: errors encountered during linking; "simple_peripheral_cc2650lp_app.out" not built

gmake[1]: *** [simple_peripheral_cc2650lp_app.out] Error 1
>> Compilation failure
makefile:229: recipe for target 'simple_peripheral_cc2650lp_app.out' failed
gmake: *** [all] Error 2
makefile:225: recipe for target 'all' failed

**** Build Finished ****

Problem caused when I added the function call: "ExtFlash_open()", along with other new function calls (as I mentioned). Actually problem  occurs when both this function and a function which initiates Microphone and PDM drivers are called. Otherwise(only one of them is called in an application) I don't see this problem. Also below you could find the optimization options:

Optimization level is: 4-Whole Program Optimizations

Speed vs. size trade-offs: 0 

I compiled the stack and application project in the IAR IDE, however I received same error. What could I do?

Regards.

Oytun