UM10462
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 5.5 — 21 December 2016
423 of 523
NXP Semiconductors
UM10462
Chapter 20: LPC11U3x/2x/1x Flash programming firmware
The signature as it is read from the FMSW0 to FMSW3 registers must be equal to the
reference signature. The algorithms to derive the reference signature is given in
.
Fig 71. Algorithm for generating a 128-bit signature
int128 signature = 0
int128 nextSignature
FOR
address = flashpage 0
TO
address = flashpage max
{
FOR
i = 0
TO
126 {
nextSignature[i] = flashword[i]
XOR
signature[i+1]}
nextSignature[127] = flashword[127]
XOR
signature[0]
XOR
signature[2]
XOR
signature[27]
XOR
signature[29]
signature = nextSignature
}
return signature