Yahoo Groups archive

Lpc2000

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

Message

Re: Checksum calculation for programming flash

2003-12-31 by robertadsett

--- In lpc2100@yahoogroups.com, "gene_klein2000" <gene_klein@h...>
wrote:
> Hi,
> 
> This is not the checksum I mean. This is the checksum for validating
> for valid user code and startup with the application and not with
the
> boot block. The calculation of this checksum is described in the
user
> manual. 
> The checksum I mean is the one to be sent after sending uuencoded
> lines to the device.
In my first quick reading of the user manual I had thought that
referred to the standard uuencode checksum but on re-reading it
doesn't appear to.  My suggestion would be to use the read memory
command to reverse engineer it.  I suspect it's just a simple byte
checksum (or possibly it's compliment), i.e. checksum = byte1 + byte2
+ byte3 + ....

One other thing I noticed in  my testing.  The version command is
appears to be documented as returning <major>.<minor>  It actually
returns the two numbers on separate lines.

I think it's just a matter of clarity not an actual documentation bug.

The Philips utility is nice but I'd sure like a command line utility
to replace it (I just have other things to do first).

Robert

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.