
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
227 of 268
NXP Semiconductors
UM10413
MPT612 User manual
the ISP command handler responds with "OK<CR><LF>" to continue further
transmission. If the check-sum does not match, the ISP command handler responds with
"RESEND<CR><LF>". In response, the host must retransmit the bytes.
25.9.5 Read memory <address> <no. of bytes>
The data stream is followed by the command success return code. The check-sum is sent
after transmitting 20 UU-encoded lines. The checksum is generated by adding raw data
(before UU-encoding) bytes and is reset after transmitting 20 UU-encoded lines. The
length of any UU-encoded line must not exceed 61 characters (bytes) that is, it can hold
45 data bytes. When the data fits in less than 20 UU-encoded lines, then the check-sum is
the actual number of bytes sent. The host must compare it with the checksum of the
received bytes. If the check-sum matches then the host must respond with
"OK<CR><LF>" to continue further transmission. If the check-sum does not match, the
host must respond with "RESEND<CR><LF>". In response, the ISP command handler
sends the data again.
Table 219. ISP Write to RAM command
Command
W
Input
start address
: RAM address where data bytes are to be written. This address
must be a word boundary.
number of bytes:
number of bytes to be written. Count must 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
downloads data to RAM. Data must be in UU-encoded format. Blocked when
code read protection is enabled.
Example
"W 1073742336 4<CR><LF>" writes 4 bytes of data to address 0x4000 0200
Table 220. ISP Read memory command
Command
R
Input
start address:
address from where data bytes are to be read. This address must
be a word boundary.
number of bytes:
number of bytes to be read. Count must be a multiple of 4.
Return Code
CMD_SUCCESS followed by <actual data (UU-encoded)> |
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
reads data from RAM or flash memory. Blocked when code read protection is
enabled.
Example
"R 1073741824 4<CR><LF>" reads 4 bytes of data from address 0x4000 0000