Sorry, for the mismatch it is NOT XOR operation but the SUM

Correct implementation :

CS=0;
for (i=0;i<sizeof(Data);i++)
CS += Data[i];

Sorry

Paolo Latella a écrit :
Hi all,
what is it the algorithm for CRC calculation in ihex line ?

For example:

/:10B9C00036413541344130410E430A93072412C3B6/

CRC = B6 -> how can i calculate it ?

Thanks

Paolo
------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------------------

_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users



Reply via email to