UM11029
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
31 of 515
NXP Semiconductors
UM11029
Chapter 5: LPC84x ISP and IAP
5.5.8 Go
Table 23.
USART 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 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) |
SRC_ADDR_NOT_MAPPED |
DST_ADDR_NOT_MAPPED |
COUNT_ERROR (Byte count is not 64 | 128 | 256 | 512 | 1024) |
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 Sector(s) 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 is enabled. Also see
for the number of bytes that can be written.
Example
"C 0 268437504 512<CR><LF>" copies 512 bytes from the RAM address 0x1000 0800 to the flash address
0.
Table 24.
USART ISP Go command
Command
G
Input
Address:
Flash or RAM address from which the code execution is to be started. This address should be on
a word boundary.
Mode:
T (Execute program in Thumb Mode) |
Return Code
CMD_SUCCESS |
ADDR_ERROR |
ADDR_NOT_MAPPED |
CMD_LOCKED |
PARAM_ERROR |
CODE_READ_PROTECTION_ENABLED
Description
This command is used to execute a program residing in RAM or flash memory. It may not be possible to
return to the ISP command handler once this command is successfully executed. This command is blocked
when code read protection is enabled.
Example
"G 0 T<CR><LF>" branches to address 0x0000 0000 in Thumb mode only.