ZHCU875Z August 2001 – October 2023 SM320F28335-EP
以下是一个完整的链接器命令文件,它使用 crc() 运算符生成存储器范围 CRC:
-c /* 使用 C 链接惯例:auto-init vars at runtime */
-stack 0x8000 /* Stack size */
-heap 0x8000 /* Heap size */
--args 0x100
MEMORY
{
PAGE 0:
STACK (RW) : origin = 0x008000, length = 0x008000
SMALLROM (R) : origin = 0x000402, length = 0x0003FE
ROMCRC (R) : origin = 0x080000, length = 0x000100
GROUP(FLASH)
{
BIGROM (R) : origin = 0x080100, length = 0x01FF00, VFILL=0x0
} crc(_ext_memrange_crc, algorithm=CRC8_PRIME)
BIGRAM (RW) : origin = 0x100000, length = 0x200000
}
SECTIONS
{
.stack > STACK
.args > BIGRAM
.bss > BIGRAM
.ebss > BIGRAM
.cio > BIGRAM
.data > BIGRAM
.esysmem > BIGRAM
.sysmem > BIGRAM
.text > BIGROM
.const > BIGROM
.econst > BIGROM
.binit > BIGROM
.cinit > BIGROM
.pinit > BIGROM
.ovly > BIGROM
.TI.memcrc > ROMCRC
}