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.

NDK link error on tms320c6678

Newbie question about linker memory errors generated working section 1.6 of NDK Users Guide (2.21). Following the instructions, the application fails to link as seen below. The linker.cmd is obviously incorrect because other NDK examples link properly.

Where are the settings in CCS that allow me to control what code goes where?

Am I correct in thinking that I need to move code from L2SRAM  to MSMCSRAM ?

linker output ==============>

"./configPkg/linker.cmd", line 138: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".text" size 0x3ebb7 . Available memory ranges:

>> Compilation failure

L2SRAM size: 0x80000 unused: 0x24 max hole: 0x18

"./configPkg/linker.cmd", line 150: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".const" size 0x360f . Available memory ranges:

L2SRAM size: 0x80000 unused: 0x14 max hole: 0x8

"./configPkg/linker.cmd", line 152: error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".fardata" size 0x1323 . Available memory ranges:

L2SRAM size: 0x80000 unused: 0x14 max hole: 0x8

"./configPkg/linker.cmd", line 153: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".switch" size 0x29c . Available memory ranges:

L2SRAM size: 0x80000 unused: 0x14 max hole: 0x8

"./configPkg/linker.cmd", line 140: error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".stack" size 0x2000 . Available memory ranges:

L2SRAM size: 0x80000 unused: 0x14 max hole: 0x8

"./configPkg/linker.cmd", line 159: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".vecs" size 0x5ff . Available memory ranges:

L2SRAM size: 0x80000 unused: 0x14 max hole: 0x8

"./configPkg/linker.cmd", line 141: error #10099-D: program will not fit into available memory. run placement with alignment fails for section "GROUP_1" size 0x1ac . Available memory ranges:

L2SRAM size: 0x80000 unused: 0x14 max hole: 0x8

"./configPkg/linker.cmd", line 157: error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".cio" size 0x127 . Available memory ranges:

L2SRAM size: 0x80000 unused: 0x14 max hole: 0x8

"./configPkg/linker.cmd", line 147: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".cinit" size 0x8d4 . Available memory ranges:

L2SRAM size: 0x80000 unused: 0x8 max hole: 0x8

undefined first referenced

symbol in file

--------- ----------------

NIMUDeviceTable C:\TI\ndk_2_21_01_38\packages\ti\ndk\stack\lib\stk6.ae66<nimu.oe66>

error #10234-D: unresolved symbols remain

error #10010: errors encountered during linking; "network_1.out" not built