AnsweredAssumed Answered

Calculating a CRC32 for program code over multiple pages via prm instructions

Question asked by Steve Lewis on Jul 31, 2007
Latest reply on Aug 14, 2007 by Steve Lewis
I have an application whose program code spans several 16k pages of Banked ROM.
I am trying to use the prm CHECKSUM instruction to calculate a CRC32 value for the program code, however I cannot find the right syntax for the CHECKSUM block to do this.
I have tried the following:
 
CHECKSUM
    CHECKSUM_ENTRY
        METHOD_CRC32
        OF      READ_ONLY   0x4004 TO 0x7FFF, 0xC000 TO 0xFFFF
        INTO    READ_ONLY   0x4000 SIZE 4
        UNDEFINED 0xFF
    END
END
and
CHECKSUM
    CHECKSUM_ENTRY
        METHOD_CRC32
        OF      READ_ONLY   0x4004 TO 0x7FFF
        OF      READ_ONLY   0xC000 TO 0xFFFF
        INTO    READ_ONLY   0x4000 SIZE 4
        UNDEFINED 0xFF
    END
END
Both generate error message from the linker
I am currently Code Warrior running version 4.5
Any suggestion please?
Steve

Outcomes