checksum in code for CORTEX-M3

cancel
Showing results for 
Search instead for 
Did you mean: 

checksum in code for CORTEX-M3

114 Views
Contributor IV

Does the user code contains checksum in internal flash without intervention of user?

I read the below statement in LPC-1769 user manual:

When there is no valid user code (determined by the checksum word) in the user flash or
the ISP enable pin (P2.10) is pulled low on startup, the ISP mode will be entered and the
boot code will setup the PLL with the IRC.

Best Regards,

Avinash.

0 Kudos
3 Replies

6 Views
NXP TechSupport
NXP TechSupport

Hi,Avinsh,

After the chip enters ISP mode, it will check the checksum in the image. But based on image protocol, the checksum value is computed  with only first seven 32 bits words rather than all the data in binary file. So MCUXpresso tools computes it in the *.ld file automatically and insert the checksum in vector table.

If you want to compute the checksum of all data in a binary file, pls refer to the link as Mr Con Verse points out.

Hope it can help you

BR

XiangJun Rong

pastedImage_1.png

0 Kudos

6 Views
Contributor IV

Thank you very much for your reply.

0 Kudos

6 Views
Senior Contributor III
0 Kudos