Datasheet

UM10398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2014. All rights reserved.
User manual Rev. 12.3 — 10 June 2014 436 of 547
NXP Semiconductors
UM10398
Chapter 26: LPC111x/LPC11Cxx Flash programming firmware
26.6.3 Unlock (C_CAN ISP)
Write <Unlock Code> to [0x5000, 0]. Writing an invalid unlock code will return a dedicated
abort code.
26.6.4 Write to RAM (C_CAN ISP)
Set RAM write address by writing to [0x5015, 0]. Then write the binary data to [0x1F50, 1].
Since this is a DOMAIN entry, the data can be continuously written. The host terminates
the write. The write address in [0x5015, 0] auto-increments, so a write of a larger area
may be done in multiple successive write cycles to [0x1F50, 1].
26.6.5 Read memory (C_CAN ISP)
Set RAM read address by writing to [0x5010, 0] and the read length by writing to
[0x5011,0]. Then read the binary data from [0x1F50,1]. Since this is a DOMAIN entry, the
data is continuously read. The device terminates the read when the number of bytes in the
read length entry has been read. The read address in [0x5010, 0] auto-increments, so a
read of a larger area may be done in multiple successive read cycles from [0x1F50,1].
26.6.6 Prepare sectors for write operation (C_CAN ISP)
Write a 16-bit value to [0x5020, 0] with the start sector number in the lower eight bits and
the end sector number in the upper eight bits.
26.6.7 Copy RAM to flash (C_CAN ISP)
Write the parameters into entry [0x5050, 1 to 3]. The write of the number of bytes into
[0x5050,3] starts the programming.
0x5050 00 - Copy RAM to Flash
01 UNSIGNED32 RW Flash Address (DST)
02 UNSIGNED32 RW RAM Address (SRC)
03 UNSIGNED16 RW Number of Bytes
0x5060 00 - Compare Memory
01 UNSIGNED32 RW Address 1
02 UNSIGNED32 RW Address 2
03 UNSIGNED16 RW Number of Bytes
04 UNSIGNED32 RO Offset of the first mismatch
0x5070 00 - Execution Address
01 UNSIGNED32 RW Execution Address
02 UNSIGNED8 RO Mode (‘T’ or ‘A’), only ‘T’ supported
0x5100 00 - Serial Number
01 UNSIGNED32 RO Serial Number 1
02 UNSIGNED32 RO Serial Number 2
03 UNSIGNED32 RO Serial Number 3
04 UNSIGNED32 RO Serial Number 4
Table 393. C_CAN ISP object directory
Index Subindex Data type Access Description