_checksum ??

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

_checksum ??

961 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jantenwolde on Thu Jan 12 07:06:12 MST 2012
Is there a way to let the LPCxpresso linker add some kind of checksum for the whole Flash image? I am not talking about the vector table checksum. I tried using --build-id option on the linker but it does not seem to do anything. I need some way to be able to check what flash image I am dealing with.
0 Kudos
Reply
4 Replies

947 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jantenwolde on Fri Jan 13 00:47:17 MST 2012
To GBM:
So why haven't they done it at Code Red if it is that easy? There are a thousand easy things I can do myself, but a thousand times 15 minutes is wasting a lot of my time, especially if someone else has already done it....
0 Kudos
Reply

947 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jantenwolde on Fri Jan 13 00:41:57 MST 2012
I will take a look at the srecord tool. I should be able to add that as a post processor to my build... Thanks again.
0 Kudos
Reply

947 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_USA on Thu Jan 12 18:16:19 MST 2012
A good tool for making checksums is the SRecord Tools available from srecord.sourceforge.net. The SRecord Tools can process and convert many types of input files (such as .hex, .bin, etc.) and generate or insert checksums. The tools are smart so you can have them only checksum a certain address range, or split a .hex file up and generate several .bin files if you want. There are command-line versions available for Windows.
0 Kudos
Reply

947 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbm on Thu Jan 12 13:08:19 MST 2012
It takes less then 15 minutes to write one's favorite checksum program in C - close to what you already spent on asking the question and you will spend on checking the responses.
0 Kudos
Reply