Hi, I am presently trying to validate the contents of my code memory, so i can perform a CRC check on every startup of my unit. I know the size of code memory in bytes and was wondering if Keil can support passing as an argument, to my checksum algorithm function, a memory address which would be the starting address of my code memory, and then running the algorithm until it reaches the final address in my stored code memory? I would appreciate any thoughts one would have on the subject. Thanks again Dave
"Unlike you (I think), I do not know my code size and wanted to find a way to declare a label or location.." You can avoid the need for any of this by just running the check over the entire ROM Chip. Just make sure that you fill all unused locations with a known value (eg, 0xFF).