UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
User manual
Rev. 1.3 — 6 July 2012
1181 of 1269
NXP Semiconductors
UM10503
Chapter 46: LPC43xx flash programming/ISP and IAP
46.7.7 Copy RAM to Flash <flash address> <RAM address> <no of bytes>
Before executing this command, perform the “Prepare sectors for write operation”
command.
Table 1032.ISP Copy command
Command
C
Input
Flash Address(DST):
Destination flash address where data bytes are to be
written. The destination address should be a 512 byte boundary.
RAM Address(SRC):
Source RAM address from where data bytes are to be read.
Number of Bytes:
Number of bytes to be written. Should be 512 | 1024 | 4096.
Return Code
CMD_SUCCESS |
SRC_ADDR_ERROR (Address not on word boundary) |
DST_ADDR_ERROR (Address not on correct boundary) |
SRC_ADDR_NOT_MAPPED |
DST_ADDR_NOT_MAPPED |
COUNT_ERROR (Byte count is not 512 | 1024 | 4096) |
SECTOR_NOT_PREPARED_FOR WRITE_OPERATION |
BUSY |
CMD_LOCKED |
PARAM_ERROR |
CODE_READ_PROTECTION_ENABLED
Description
This command is used to program the flash memory. The "Prepare Sectors for
Write Operation" command should precede this command. The affected sectors are
automatically protected again once the copy command is successfully executed.
This command is blocked when code read protection levels CRP2 or CRP3 are
enabled. When code read protection level CRP1 is enabled, individual sectors
other than sector 0 can be written.
Example
"C 436207616 268468224 512 <CR><LF>" copies 512 bytes from the RAM
address 0x1000 8000 to the flash address 0x1A00 0000.