AnsweredAssumed Answered

Invalid Checksum of first 512 UU-encoded bytes

Question asked by Muhammad Bilal on Sep 13, 2019

Hi,

I have made a UU-encoding console application in c# and used flashMagic tool as reference to confirm if i am doing everything right. I need it to write on LPC1767 microcontroller. The only issue i am facing is that the checksum of first 512 bytes are not valid, what i am getting is 34964 whereas what flashmagic provides is 35644, according to 

http://www.nxp.com/docs/en/application-note/AN11229.pdf the raw hex is to be added with each other to make a valid checksum, but in my case only first checksum is not valid rather then this all the checksums are valid. As i am new to this field i need to know where i am wrong and how will i be able to fix it.

 

First 512 bytes are

:10000000502F082011020000190200001B020000FE
:100010001D0200001F02000021020000000000007D
:1000200000000000000000000000000023020000AB
:10003000250200000000000027020000A14F01007F
:100040002B020000ED53010001540100B9540100DE
:10005000CD550100C95901000D5A0100195A01007E
:10006000315A01002B020000A13E000001410000B6
:10007000194300002B0200002B0200002B0200009D
:100080002B020000492C01002B0200002B02000073
:100090002B0200002B0200002B0200002B020000AC
:1000A0002B0200002B0200002B0200002B0200009C
:1000B0002B0200002B0200002B0200002B0200008C
:1000C0002B0200002B0200002B02000000F002F8BF
:1000D00000F060F80AA090E8000C82448344AAF182
:1000E0000107DA4501D100F055F8AFF2090EBAE880
:1000F0000F0013F0010F18BFFB1A43F0010318475C
:1001000058200400982004000A444FF0000C10F816
:10011000013B13F0070408BF10F8014B1D1108BF85
:1001200010F8015B641E05D010F8016B641E01F825
:10013000016BF9D113F0080F1EBF10F8014BAD1C75
:100140000C1B09D16D1E58BF01F801CBFAD505E093
:1001500014F8016B01F8016B6D1EF9D59142D6D3ED
:10016000704700000023002400250026103A28BF15
:1001700078C1FBD8520728BF30C148BF0B60704719
:100180001FB59DE8030000F0A5FA00F0CEF81FBDF2
:1001900010B510BD00F046FB1146FFF7F1FF1DF052
:1001A0002DFF00F064FB03B4FFF7F2FF03BC00F087
:1001B00091FB000006480000D0F800D00548064A30
:1001C00012681047E07F0010F11FFF1F3900000088
:1001D000C4010000CC010000C80100000B49D1F8A7
:1001E00000C04A685CF8043B1068184442F8040BED
:1001F0008C4528BFA1F1DC0C8A4228BFA1F1DC02AA

 

Thank You,

Regards,

M.Bilal

Outcomes