lpcware

flash signature generation question

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by jpplus on Thu Jan 08 00:07:39 MST 2015
I am working to generate the signature of chip LPC4337. But now the reference signature is different with one generated by embedded side. But I am not pretty sure which side has problem.
Does LPC has some reference or sample code to gererate reference signature or embedded code to generate signature?
I would take this to verify whether embedded side or PC side has problem.
Blow agorithm looks simple, but I cannot get the matched results. BTW, I am use 16 bytes to test.
---------------------------------------------------------------------------------------------------------------------------
sign = 0
FOR address = FMSTART.FMSTART TO FMSTOP.FMSTOP
{
FOR i = 0 TO 126
nextSign = f_Q[address] XOR sign[i+1]
nextSign[127] = f_Q[address][127] XOR sign[0] XOR sign[2] XOR
sign[27] XOR sign[29]
sign = nextSign
}
signature128 = sign

Outcomes