Linking and Debugging Considerations

This part refers to the different possible linking & debugging configurations and the different files implied in this processus.
In particular, linking in the different embedded memories will be reached. Debug in SRAM, Flash and remap considerations will be described.

The Stack segment (CSTACK) and the Heap segment (HEAP) are also defined here...
-Z(DATA)CSTACK+_CSTACK_SIZE=RAMSTART-RAMEND
-Z(DATA)HEAP+_HEAP_SIZE=RAMSTART-RAMEND

__ramfunc directive makes a function executed in RAM.
Functions declared __ramfunc are by default stored in the segment named CODE_I:

// __ramfunc code copied to and executed from RAM.
-Z(DATA)CODE_I=RAMSTART-RAMEND

Refer to the Memory Segment Section of the IAR ARM® IAR C/C++ Compiler Reference Guide for more details.