Locking a Packet
To lock a packet, follow the steps below:
- Write the address value of the header of the packet to lock in OTPC_MR.ADDR.
- Start a read by setting OTPC_CR.READ and waiting for the read completion indicated by OTPC_ISR.EOR.
- Write 0x7167 in the OTPC_CR.KEY field and ‘1‘ in OTPC_CR.CKSGEN.
The end of the lock operation is indicated by OTPC_ISR.EOL=’1’ and/or OTPC_SR.LOCK=’0’.
Generating the checksum locks the packet and modification is no longer possible.