UM10413
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 1 — 16 December 2011
228 of 268
NXP Semiconductors
UM10413
MPT612 User manual
25.9.6 Prepare sector(s) for write operation <start sector number> <end sector
number>
This command makes flash write/erase operation a two-step process.
25.9.7 Copy RAM to flash <flash address> <RAM address> <no of bytes>
Table 221. ISP Prepare sector(s) for write operation command
Command
P
Input
start sector number
end sector number:
must be greater than or equal to start sector number
Return Code
CMD_SUCCESS |
BUSY |
INVALID_SECTOR |
PARAM_ERROR
Description
must be executed before executing "Copy RAM to Flash" or "Erase Sector(s)"
command. Successful execution of the "Copy RAM to Flash" or "Erase Sector(s)"
command causes relevant sectors to be protected again. The boot block cannot
be prepared by this command. To prepare a single sector, use the same "Start"
and "End" sector numbers.
Example
"P 0 0<CR><LF>" prepares flash sector 0
Table 222. ISP Copy command
Command
C
Input
flash address (DST):
destination flash address where data bytes are to be written.
Destination address must be a 256 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. Must be 256 | 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 256 | 512 | 1024 | 4096) |
SECTOR_NOT_PREPARED_FOR WRITE_OPERATION |
BUSY |
CMD_LOCKED |
PARAM_ERROR |
CODE_READ_PROTECTION_ENABLED
Description
programs flash memory. The "Prepare Sector(s) for Write Operation" command
must precede this command. The affected sectors are automatically protected
again once the copy command is successfully executed. The boot block cannot be
written by this command. Blocked when code read protection is enabled.
Example
"C 0 1073774592 512<CR><LF>" copies 512 bytes from the RAM address
0x4000 8000 to flash address 0