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.

CC3220S-LAUNCHXL: Why define a so big size which is 32KB in network_terminal project's .icf file:define symbol HEAPSIZE = 0x8000;?

Part Number: CC3220S-LAUNCHXL
Other Parts Discussed in Thread: CC3220S

in network_terminal_CC3220S_LAUNCHXL_TIRTOS.icf it defined Primary Heap as below.

Who or which thread or task will use the Primary Heap? Why define so big size 32KB? Can I shrink the size?

 

/* HeapMem Primary Heap configuration */
define symbol HEAPSIZE = 0x8000;
define block primary_heap with size = HEAPSIZE {};

/* place heap just before CSTACK */
place at end of SRAM { block primary_heap };

/* define buffer start and end symbols for HeapMem Primary Heap */
define exported symbol __primary_heap_end__ = end(SRAM) - STACKSIZE;
define exported symbol __primary_heap_start__ = __primary_heap_end__ - HEAPSIZE;