Hi,
I need to checksum (crc) the area of read_only memory. I am trying to use the embedded checksum algorithms. My prm file looks like:
NAMES END
SEGMENTS
RAM_BOOT = READ_WRITE 0x2000 TO 0x3FFF;
ROM_BOOT = READ_ONLY 0xF802 TO 0xFCFF FILL 0xFF;
END
PLACEMENT
DEFAULT_ROM INTO ROM_BOOT;
DEFAULT_RAM INTO RAM_BOOT;
END
CHECKSUM
CHECKSUM_ENTRY
METHOD_CRC16 POLY 0x1021 OF READ_ONLY 0xF802 TO 0xFFFF INTO READ_ONLY 0xF800 SIZE 2
UNDEFINED 0xFF
END
END
It looks like everything works OK as soon as I am using the defined in prm file section. The problem here is that I am also using some absolute code positioning and this memory area is not specified in prm file....It looks like the checksum routine does not know what is located at my absolute addresses?!