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.
This segment represents the read only area:
-DROMSTART=00000000
-DROMEND=0000FFFF
This segment represents the read/write area:
-DRAMSTART=00200000
-DRAMEND=00203FFF
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.