Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Checksum Problem Part B

2006-01-10 by carlosahsilva

The help says it is a sum, but I found an apllication note and a 
sample of CRC checksum in the IAR suport page, I am testing it now
 
--- In lpc2000@yahoogroups.com, Robert Adsett <subscriptions@a...> 
wrote:
>
> At 08:30 PM 1/10/06 +0000, carlosahsilva wrote:
> >I have made some tests on the Program CheckSum generated by IAR
> >compiler and there is realy something fish.
> <snip>
> 
> >    for (long byte = 0; byte < 0x00037FFF-0x00000000; byte++) {
> >      // Read a byte and sum it
> >      ValCheckSum += *pby;
> >      // Increment pointer
> >      pby++;
> >    }
> 
> Just a thought, are you sure they are using addition for the 
> checksum.  Not, say, xor?
> 
> Robert
> 
> " 'Freedom' has no meaning of itself.  There are always 
restrictions,   be 
> they legal, genetic, or physical.  If you don't believe me, try to 
chew a 
> radio signal. "  -- Kelvin Throop, III
> http://www.aeolusdevelopment.com/
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.