2005-11-08 10:06 AM
Cosmic feature: automatic code checksum
2005-10-13 07:49 AM
Hello to everybody,
Has somebody use the Cosmic feature ''automatic code checksum calculation''? Is this featurer flexible and reability? Thanks for Your comments2005-10-13 09:37 PM
This feature works fine.
Declare checksum section in linker script, eg. +seg .text -b 0xf000 -m 0x1000 -n .text +seg .const -a .text -n .const +seg .cksum -ik -a .const -n .cksum mark the section to be checked with the -ck in the script. Then call one of the checksum functions, eg. _checksum() this will return zero for program checksum ok. Further details are given in the cosmic manual. Hope this helps. sjo2005-10-17 02:17 AM
just be careful for those applications that need to start up ''fast''; calculating the checksum on a big chunk of code can be a bit slow.
Regards, Luca (Cosmic)2005-11-08 10:06 AM
Thanks for Your suggestion