Can you tell me how you made it work using checksum.c?
I need to test flash too. But I have no idea how to use checksum comparison? it is easy to calculate new checksum, but how to know teh checksum in teh file?
My email address: szheng@amerigon.com
Thanks a lot!
Simon
Using CodeWarrior, those commands above starting with CHECKSUM are tacked onto the end of your PRM file and tell the linker to create said checksum by that means and put in that place in the s19 hex file, in this case at the end of 'code space' to simply make the total result come out to zero. This example is all for a 4K part, using the whole ROM space in one application. I actually use this process as part of a bootloader/application split of ROM space so I have two checksums and two CRC processes, one to check the bootloader and one to check the application space for valid code to run. This works well with the CodeWarrior IDE abilities to 'preserve memory' sections during code-programming at debugger entry so that the application section can update while preserving the entirely independent bootloader operation.