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 ? |
|
Checksum calculation for programming flash
Started by ●December 29, 2003
Reply by ●December 29, 20032003-12-29
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 , "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 ? |
Reply by ●December 29, 20032003-12-29
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" <> To: <> 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 , "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 ? > |
|
Reply by ●December 29, 20032003-12-29
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 , 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: <> > 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 , "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 ? > > > > > > > > > > > > > > > > |
|
Reply by ●December 30, 20032003-12-30
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 , "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 , 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: <> > > 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 > > > ntrollers/download/80c51/utilities/LPC210x_ISP.zip > > > > > > > > > Rich > > > > > > --- In , "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 ? > > > > > > > > > > > > > > > > > > > > > > > > |
|
Reply by ●December 30, 20032003-12-30
--- In , "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 |