cancel
Showing results for 
Search instead for 
Did you mean: 

Cosmic feature: automatic code checksum

info45
Associate II
Posted on November 08, 2005 at 19:06

Cosmic feature: automatic code checksum

4 REPLIES 4
info45
Associate II
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 II
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 III
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
Associate II
Posted on November 08, 2005 at 19:06

Thanks for Your suggestion