SPRU513Z August 2001 – October 2023 SM320F28335-EP
You can run a CRC on both memory ranges and output sections together. In the following example, a CRC is computed over the memory range FLASH2, which is used only by the .text section. A CRC table is also generated for only the .text output section, which does not include the rest of the memory range.
MEMORY
{
FLASH1 : origin = 0x0000, length = 0x1000
GROUP
{
FLASH2 : origin = 0x1000, length=0x1000
} crc(_memrange_flash_crc, algorithm=CRC8_PRIME)
}
SECTION
{
.TI.memcrc > CRC_PRELUDE
.text > FLASH2, crc_table(_crc_table, algorithm=CRC8_PRIME)
}