Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF
Tool/software: Code Composer Studio
Hi
I am not familiar with linker command in CCS ( I am useing v7.3.000019).
The default commands described in CC3220SF_LAUNCHXL_TIRTOS.cmd of my project is shown as below:
#define SRAM_BASE 0x20000000
#define FLASH_BASE 0x01000800
--stack_size=4096 /* C stack is also used for ISR stack */
HEAPSIZE = 0x30000; /* Size of heap buffer used by HeapMem */
MEMORY
{
/* Bootloader uses FLASH_HDR during initialization */
FLASH_HDR (RX) : origin = 0x01000000, length = 0x7FF /* 2 KB */
FLASH (RX) : origin = 0x01000800, length = 0x0FF800 /* 1022KB */
SRAM (RWX) : origin = 0x20000000, length = 0x00040000 /* 256KB */
}
/* Section allocation in memory */
SECTIONS
{
.dbghdr : > FLASH_HDR
.text : > FLASH
.TI.ramfunc : {} load=FLASH, run=SRAM, table(BINIT)
.const : > FLASH
.cinit : > FLASH
.pinit : > FLASH
.init_array : > FLASH
.data : > SRAM
.bss : > SRAM
.sysmem : > SRAM
/* Heap buffer used by HeapMem */
.priheap : {
__primary_heap_start__ = .;
. += HEAPSIZE;
__primary_heap_end__ = .;
} > SRAM align 8
.stack : > SRAM(HIGH)
}
When I build the project with HEAPSIZE=300000, the linker gets no issues. The link task finished without error.
But when I have to extend HEAPSIZE=400000 in my project, but the linker has given me error log after building the project.
"../CC3220SF_LAUNCHXL_TIRTOS.cmd", line 74: error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".priheap" size 0x40000 . Available memory ranges:
SRAM size: 0x40000 unused: 0x332cd max hole: 0x3300d
error #10010: errors encountered during linking; "siotp_sampleapp_issbase.out" not built
>> Compilation failure
makefile:192: recipe for target 'siotp_sampleapp_issbase.out' failed
I think the messages is trying to talk to me to change the memory range.
1) How do I do in this situation?
2) Could someone can advise me where can I find reference for the linker command and example to set memory map?
Any comment is appreciated so much!
