SPRU513Y August 2001 – June 2022 SM320F28335-EP
Here is a full linker command file that uses the crc() operator to generate a memory range CRC:
-c /* Use C linking conventions: 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
}