Tool/software: Code Composer Studio
ALL,
when i build my project with CCS, i met below problem:
<Linking>
"../CC3220S_LAUNCHXL_TIRTOS.cmd", line 72: error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".priheap" size 0x4000 . Available memory ranges:
SRAM size: 0x3c000 unused: 0x4632 max hole: 0x24a8
error #10010: errors encountered during linking; "cc3220s_app.out" not built
>> Compilation failure
makefile:261: recipe for target 'cc3220s_app.out' failed
gmake[1]: *** [cc3220s_app.out] Error 1
makefile:257: recipe for target 'all' failed
gmake: *** [all] Error 2
below is:
/*
* ======== CC3220S_LAUNCHXL.cmd ========
*/
/*
* The starting address of the application. Normally the interrupt vectors
* must be located at the beginning of the application.
*/
#define SRAM_BASE 0x20004000
#define SRAM0_BASE 0x20000000
--stack_size=1024 /* C stack is also used for ISR stack */
/* Size of heap buffer used by HeapMem */
/* HEAPSIZE = 0x8000; */
HEAPSIZE = 0x4000; /* 16K */
MEMORY
{
SRAM0 (RWX) : origin = 0x20000000, length = 0x2000
SRAM (RWX) : origin = 0x20002000, length = 0x00040000 - 0x4000
}
/* Section allocation in memory */
SECTIONS
{
.text : > SRAM
.bss : > SRAM
.TI.ramfunc : > SRAM
.data : > SRAM
.const : > SRAM
.sysmem : > SRAM
.cinit : > SRAM
.pinit : > SRAM
.init_array : > SRAM
/* Heap buffer used by HeapMem */
.priheap : {
__primary_heap_start__ = .;
. += HEAPSIZE;
__primary_heap_end__ = .;
} > SRAM align 8
.stack : > SRAM0(HIGH)
}
how to fix this build problem?