Ideally you write a PC based program to CRC your mot file (only the program/data contents not the overhead bytes). And append this to the mot file where the address used is at a known fixed address. An alternative would be to load the program on a processor verify it is correct and then get your code to generate the CRC from the loaded code. Next you write code for the processor which check sums it in the same order as that used for the Mot file, you either excluding the appended CRC from this in which case it should match the stored value or put the stored value through last in which case the CRC should be 0. Regards Paul.
↧