Skip to main content
info45
Associate
November 8, 2005
Question

Cosmic feature: automatic code checksum

  • November 8, 2005
  • 4 replies
  • 982 views
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
October 13, 2005
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
October 14, 2005
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
October 17, 2005
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
November 8, 2005
Posted on November 08, 2005 at 19:06

Thanks for Your suggestion