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
29 of 515
NXP Semiconductors
UM11029
Chapter 5: LPC84x ISP and IAP
5.5.3 Echo
5.5.4 Write to RAM
The host should send the plain binary code after receiving the CMD_SUCCESS return
code. This ISP command handler responds with “OK<CR><LF>” when the transfer has
finished.
5.5.5 Read Memory
Reads the plain binary code of the data stream, followed by the CMD_SUCCESS return
code.
Table 19.
USART ISP Echo command
Command
A
Input
Setting: ON = 1 | OFF = 0
Return Code
CMD_SUCCESS |
PARAM_ERROR
Description
The default setting for echo command is ON. When ON the ISP command handler sends the received serial
data back to the host.
Example
"A 0<CR><LF>" turns echo off.
Table 20.
USART ISP Write to RAM command
Command
W
Input
Start Address:
RAM address where data bytes are to be written. This address should be a word boundary.
Number of Bytes:
Number of bytes to be written. Count should be a multiple of 4
Return Code
CMD_SUCCESS |
ADDR_ERROR (Address not on word boundary) |
ADDR_NOT_MAPPED |
COUNT_ERROR (Byte count is not multiple of 4) |
PARAM_ERROR |
CODE_READ_PROTECTION_ENABLED
Description
This command is used to download data to RAM. This command is blocked when code read protection
levels 2 or 3 are enabled. Writing to addresses below 0x1000 0600 is disabled for CRP1.
Example
"W 268437504 4<CR><LF>" writes 4 bytes of data to address 0x1000 0800.
Table 21.
USART ISP Read Memory command
Command
R
Input
Start Address:
Address from where data bytes are to be read. This address should be a word boundary.
Number of Bytes:
Number of bytes to be read. Count should be a multiple of 4.
Return Code
CMD_SUCCESS followed by <actual data (plain binary)> |
ADDR_ERROR (Address not on word boundary) |
ADDR_NOT_MAPPED |
COUNT_ERROR (Byte count is not a multiple of 4) |
PARAM_ERROR |
CODE_READ_PROTECTION_ENABLED
Description
This command is used to read data from RAM or flash memory. This command is blocked when code read
protection is enabled.
Example
"R 268437504 4<CR><LF>" reads 4 bytes of data from address 0x1000 0800.