[Icc-avr] CheckSum

Johannes Assenbaum jassenbaum at htp-tel.de
Tue May 27 15:20:23 PDT 2008


For such array size I'd still use my good old intel hex based protocol with ACK/NACK for each line.

As intel hex format uses a one-byte checksum, adding all bytes in line, i.e. byte count, start address and record type, too, chunk size theoretically is critical from the first byte, but in practice, 16..20 bytes per chunk seem appropriate even for a low-quality connection.

And I have both PC and AVR software running :-)

Best regards,
Johannes

> Hi,



> I am sure I have asked this before but (if i have sorry for the repeat question),
> does anybody have a simple checksum routine for an array of bytes, they would not
> mind posting?



> I need one for a maximum of 250 bytes I am sending through the serial port to a PC
> (I could break this up into smaller chunks if needed ) at the moment i am not using
> one, but I think it would be best to add one.



> I have found a few on AVR freaks, just wondered what everyone here uses.



> Best Regards,



> Andy





More information about the Icc-avr mailing list