|ISP-IAP API / ISP|
When writing to the flash, the following limitations apply:
|Input||Flash Address (DST): Destination flash
address where data bytes are to be written. The destination address
should be a 64 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 64 | 128 | 256 | 512 | 1024.
|Return Code||CMD_SUCCESS |
SRC_ADDR_ERROR (Address not on word boundary) |
DST_ADDR_ERROR (Address not on correct boundary) |
COUNT_ERROR (Byte count is not 64 | 128 | 256 | 512 | 1024) |
SECTOR_NOT_PREPARED_FOR WRITE_OPERATION |
|Description||This command is used to program the flash memory. The "Prepare Sector(s) for Write Operation" command should 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. This command is blocked when code read protection is enabled.|
|Example||"C 0 268437504 512<CR><LF>" copies 512 bytes from the RAM address 0x1000 0800 to the flash address 0.|
© NXP N.V. 2014. All rights reserved.