Skip to main content
info45
Associate
Nov 8, 2005 6:06 PM UTC
Question

Cosmic feature: automatic code checksum

Posted on November 08, 2005 at 19:06

Cosmic feature: automatic code checksum

This topic has been closed for replies.

4 replies

info45
info45Author
Associate
Oct 13, 2005 2:49 PM UTC
Posted on October 13, 2005 at 16:49

Hello to everybody,

Has somebody use the Cosmic feature ''automatic code checksum

calculation''?

Is this featurer flexible and reability?

Thanks for Your comments

sjo
Associate III
Oct 14, 2005 4:37 AM UTC
Posted on October 14, 2005 at 06:37

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.

sjo

luca239955_st
Associate II
Oct 17, 2005 9:17 AM UTC
Posted on October 17, 2005 at 11:17

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)

info45
info45Author
Associate
Nov 8, 2005 6:06 PM UTC
Posted on November 08, 2005 at 19:06

Thanks for Your suggestion