Yahoo Groups archive

Lpc2000

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

Thread

Checksum calculation for programming flash

Checksum calculation for programming flash

2003-12-29 by gene_klein2000

Hi,

I'm writing a programmer for the LPC210x series. When I look in the
User Manual for the chip in chapter 17 there is a description how to
write data to ram (Table 147 page 187).
How must I calculate the checksum to send after I've send the data to
the device ?

Re: Checksum calculation for programming flash

2003-12-29 by Richard

If you are interested in ISP programming of flash and RAM (including 
calculation and programming of the checksum) see:

http://www.semiconductors.philips.com/files/products/standard/microco
ntrollers/download/80c51/utilities/LPC210x_ISP.zip


Rich

--- In lpc2100@yahoogroups.com, "gene_klein2000" <gene_klein@h...> 
wrote:
> Hi,
> 
> I'm writing a programmer for the LPC210x series. When I look in the
> User Manual for the chip in chapter 17 there is a description how 
to
> write data to ram (Table 147 page 187).
> How must I calculate the checksum to send after I've send the data 
to
> the device ?

Re: [lpc2100] Re: Checksum calculation for programming flash

2003-12-29 by capiman@t-online.de

Hello Richard,

this is only the executible, right ?
So how can you see the calculation of the checksum ?

BTW: Is there already an ISP programmer with source for Linux ?

Greetings,

           Martin

----- Original Message ----- 
Show quoted textHide quoted text
From: "Richard" <richas@...>
To: <lpc2100@yahoogroups.com>
Sent: Monday, December 29, 2003 7:03 PM
Subject: [lpc2100] Re: Checksum calculation for programming flash


> If you are interested in ISP programming of flash and RAM (including 
> calculation and programming of the checksum) see:
> 
> http://www.semiconductors.philips.com/files/products/standard/microco
> ntrollers/download/80c51/utilities/LPC210x_ISP.zip
> 
> 
> Rich
> 
> --- In lpc2100@yahoogroups.com, "gene_klein2000" <gene_klein@h...> 
> wrote:
> > Hi,
> > 
> > I'm writing a programmer for the LPC210x series. When I look in the
> > User Manual for the chip in chapter 17 there is a description how 
> to
> > write data to ram (Table 147 page 187).
> > How must I calculate the checksum to send after I've send the data 
> to
> > the device ?
> 
> 
>  
> 
> 
> Yahoo! Groups Links
> 
> To visit your group on the web, go to:
>  http://groups.yahoo.com/group/lpc2100/
> 
> To unsubscribe from this group, send an email to:
>  lpc2100-unsubscribe@yahoogroups.com
> 
> Your use of Yahoo! Groups is subject to:
>  http://docs.yahoo.com/info/terms/ 
> 
>

ARM7 ABI for GNU

2003-12-29 by James Dabbs

I'm looking for info on the ABI GCC uses with ARM7, like how parameters
are passed, how the stack is set up, which registers are saved, etc.,
for GNU C and C++.  I've got to adapt context switches and interrupt
service routines within some existing code, and I'm having trouble
finding a big picture on how this all works.

Thanks.

Re: [lpc2100] ARM7 ABI for GNU

2003-12-29 by Bogdan Marinescu

Go to www.arm.com and download the ARM ATPCS
document. ATPCS (ARM-Thumb Procedure Call Standard) is
the ARM's version of ABI and all compilers are
supposed to adhere to it. GCC is no exception.

--- James Dabbs <jdabbs@...> wrote:
> I'm looking for info on the ABI GCC uses with ARM7,
> like how parameters
> are passed, how the stack is set up, which registers
> are saved, etc.,
> for GNU C and C++.  I've got to adapt context
> switches and interrupt
> service routines within some existing code, and I'm
> having trouble
> finding a big picture on how this all works.
> 
> Thanks.
> 
> 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

Re: Checksum calculation for programming flash

2003-12-29 by Richard

Try it out, you can see the value of the checksum in the flash 
buffer screen.  I know of no version in linux.

Richard


--- In lpc2100@yahoogroups.com, capiman@t... wrote:
> Hello Richard,
> 
> this is only the executible, right ?
> So how can you see the calculation of the checksum ?
> 
> BTW: Is there already an ISP programmer with source for Linux ?
> 
> Greetings,
> 
>            Martin
> 
> ----- Original Message ----- 
> From: "Richard" <richas@y...>
> To: <lpc2100@yahoogroups.com>
> Sent: Monday, December 29, 2003 7:03 PM
> Subject: [lpc2100] Re: Checksum calculation for programming flash
> 
> 
> > If you are interested in ISP programming of flash and RAM 
(including 
> > calculation and programming of the checksum) see:
> > 
> > 
http://www.semiconductors.philips.com/files/products/standard/microco
> > ntrollers/download/80c51/utilities/LPC210x_ISP.zip
> > 
> > 
> > Rich
> > 
> > --- In lpc2100@yahoogroups.com, "gene_klein2000" 
<gene_klein@h...> 
> > wrote:
> > > Hi,
> > > 
> > > I'm writing a programmer for the LPC210x series. When I look 
in the
> > > User Manual for the chip in chapter 17 there is a description 
how 
> > to
> > > write data to ram (Table 147 page 187).
> > > How must I calculate the checksum to send after I've send the 
data 
Show quoted textHide quoted text
> > to
> > > the device ?
> > 
> > 
> >  
> > 
> > 
> > Yahoo! Groups Links
> > 
> > To visit your group on the web, go to:
> >  http://groups.yahoo.com/group/lpc2100/
> > 
> > To unsubscribe from this group, send an email to:
> >  lpc2100-unsubscribe@yahoogroups.com
> > 
> > Your use of Yahoo! Groups is subject to:
> >  http://docs.yahoo.com/info/terms/ 
> > 
> >

RE: [lpc2100] ARM7 ABI for GNU

2003-12-29 by James Dabbs

Thanks.  This is exactly what I need.

Also, is there a compiler-set #define that tells you that the processor
is an ARM or ARM-THUMB?
Show quoted textHide quoted text
-----Original Message-----
From: Bogdan Marinescu [mailto:a_bogdan_marinescu@...] 
Sent: Monday, December 29, 2003 1:51 PM
To: lpc2100@yahoogroups.com
Subject: Re: [lpc2100] ARM7 ABI for GNU


    Go to www.arm.com and download the ARM ATPCS
document. ATPCS (ARM-Thumb Procedure Call Standard) is
the ARM's version of ABI and all compilers are
supposed to adhere to it. GCC is no exception.

--- James Dabbs <jdabbs@...> wrote:
> I'm looking for info on the ABI GCC uses with ARM7,
> like how parameters
> are passed, how the stack is set up, which registers
> are saved, etc.,
> for GNU C and C++.  I've got to adapt context
> switches and interrupt
> service routines within some existing code, and I'm
> having trouble
> finding a big picture on how this all works.
> 
> Thanks.
> 
> 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

 

Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/lpc2100/

To unsubscribe from this group, send an email to:
lpc2100-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Re: Checksum calculation for programming flash

2003-12-30 by gene_klein2000

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 lpc2100@yahoogroups.com, "Richard" <richas@y...> wrote:
> Try it out, you can see the value of the checksum in the flash 
> buffer screen.  I know of no version in linux.
> 
> Richard
> 
> 
> --- In lpc2100@yahoogroups.com, capiman@t... wrote:
> > Hello Richard,
> > 
> > this is only the executible, right ?
> > So how can you see the calculation of the checksum ?
> > 
> > BTW: Is there already an ISP programmer with source for Linux ?
> > 
> > Greetings,
> > 
> >            Martin
> > 
> > ----- Original Message ----- 
> > From: "Richard" <richas@y...>
> > To: <lpc2100@yahoogroups.com>
> > Sent: Monday, December 29, 2003 7:03 PM
> > Subject: [lpc2100] Re: Checksum calculation for programming flash
> > 
> > 
> > > If you are interested in ISP programming of flash and RAM 
> (including 
> > > calculation and programming of the checksum) see:
> > > 
> > > 
> http://www.semiconductors.philips.com/files/prod
ucts/standard/microco
Show quoted textHide quoted text
> > > ntrollers/download/80c51/utilities/LPC210x_ISP.zip
> > > 
> > > 
> > > Rich
> > > 
> > > --- In lpc2100@yahoogroups.com, "gene_klein2000" 
> <gene_klein@h...> 
> > > wrote:
> > > > Hi,
> > > > 
> > > > I'm writing a programmer for the LPC210x series. When I look 
> in the
> > > > User Manual for the chip in chapter 17 there is a description 
> how 
> > > to
> > > > write data to ram (Table 147 page 187).
> > > > How must I calculate the checksum to send after I've send the 
> data 
> > > to
> > > > the device ?
> > > 
> > > 
> > >  
> > > 
> > > 
> > > Yahoo! Groups Links
> > > 
> > > To visit your group on the web, go to:
> > >  http://groups.yahoo.com/group/lpc2100/
> > > 
> > > To unsubscribe from this group, send an email to:
> > >  lpc2100-unsubscribe@yahoogroups.com
> > > 
> > > Your use of Yahoo! Groups is subject to:
> > >  http://docs.yahoo.com/info/terms/ 
> > > 
> > >

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

RE: [lpc2100] ARM7 ABI for GNU

2004-01-05 by niall@feabhas.com

Sorry for the late response, but have you checked out:
 
http://www.arm.com/products/DevTools/ABI.html
<http://www.arm.com/products/DevTools/ABI.html> 
 
Niall.
 
Niall Cooling BSc CEng MBCS MIEEE
Director
Feabhas Ltd.
5 Lowesden Works
Lambourn Woodlands
Hungerford
Berks. RG17 7RY
tel: +44 (0)1488 73050
fax: +44 (0)1488 73051
www.feabhas.com
Show quoted textHide quoted text
-----Original Message-----
From: James Dabbs [mailto:jdabbs@...] 
Sent: 29 December 2003 18:40
To: lpc2100@yahoogroups.com
Subject: [lpc2100] ARM7 ABI for GNU


I'm looking for info on the ABI GCC uses with ARM7, like how parameters
are passed, how the stack is set up, which registers are saved, etc.,
for GNU C and C++.  I've got to adapt context switches and interrupt
service routines within some existing code, and I'm having trouble
finding a big picture on how this all works.

Thanks.



  _____  

Yahoo! Groups Links


*	To visit your group on the web, go to:
http://groups.yahoo.com/group/lpc2100/
<http://groups.yahoo.com/group/lpc2100/> 
  

*	To unsubscribe from this group, send an email to:
lpc2100-unsubscribe@yahoogroups.com
<mailto:lpc2100-unsubscribe@yahoogroups.com?subject=Unsubscribe> 
  

*	Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .

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.