-Z(XDATA)XSTACK+_XDATA_STACK_SIZE=_XDATA_START-_XDATA_END
-Z(XDATA)XDATA_Z,XDATA_I=_XDATA_START-_XDATA_END
-P(XDATA)XDATA_N=_XDATA_START-_XDATA_END
尤其是这几句。
Alvin Chen:
Z(XDATA)XSTACK+_XDATA_STACK_SIZE=_XDATA_START-_XDATA_END
这就话就是STACK的区域为XDATA起始地址到结束地址的长度
其实就是一些地址分配的问题,相当于CMD文件。
IAR的BANK分配文件。
one Man:
回复 Alvin Chen:
您好
Z(XDATA)XSTACK+_XDATA_STACK_SIZE=_XDATA_START-_XDATA_END
请问XSTACK的大小是_XDATA_STACK_SIZE吗?
Alvin Chen:
回复 one Man:
For example, if there are two data segments (Z1, Z2) that must be placed in the zero page
(0-FF) and three (A1, A2, A3) that can be placed anywhere in available RAM, they can
be placed like this:
-Z(DATA)Z1,Z2=0-FF
-Z(DATA)A1,A2,A3=0-1FFF
This will place Z1 and Z2 from 0 and up, giving an error if they do not fit into the range
given, and then place A1, A2, and A3 from the first address not used by Z1 and Z2
请以IAR的linker user guide 为准:
perso.citi.insa-lyon.fr/…/EW430_LinkerReference.pdf