Philips LPC2119 User Manual page 236

Arm-based microcontroller
Hide thumbs Also See for LPC2119:
Table of Contents

Advertisement

Philips Semiconductors
ARM-based Microcontroller
Write to RAM <start address> <number of bytes>
The host should send the data only after receiving the CMD_SUCCESS return code. The host should send the check-sum after
transmitting 20 UU-encoded lines. The length of any UU-encoded line should not exceed 61 characters(bytes) i.e. it can hold 45
data bytes. When the data fits in less then 20 UU-encoded lines then the check-sum should be of actual number of bytes sent.
The ISP command handler compares it with the check-sum of the received bytes. If the check-sum matches then the ISP
command handler responds with "OK<CR><LF>" to continue further transmission. If the check-sum does not match then the ISP
command handler responds with "RESEND<CR><LF>". In response the host should retransmit the bytes.
Table 202: ISP Write to RAM command description
Command
Input
Return Code
Description
Example
Read Memory <address> <number 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 length of any UU-encoded line should not exceed 61 characters(bytes) i.e. it can hold 45 data bytes. When the data fits in
less then 20 UU-encoded lines then the check-sum is of actual number of bytes sent. The host should compare it with the check-
sum of the received bytes. If the check-sum matches then the host should respond with "OK<CR><LF>" to continue further
transmission. If the check-sum does not match then the host should respond with "RESEND<CR><LF>". In response the ISP
command handler sends the data again.
Table 203: ISP Read Memory command description
Command
Input
Return Code
Description
Example
Flash Memory System and Programming
W
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.
CMD_SUCCESS |
ADDR_ERROR (Address not a word boundary) |
ADDR_NOT_MAPPED |
COUNT_ERROR (Byte count is not multiple of 4) |
PARAM_ERROR
This command is used to download data to RAM. The data should be in UU-encoded format.
"W 1073742336 4<CR><LF>" writes 4 bytes of data to address 0x4000 0200.
R
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.
CMD_SUCCESS followed by <actual data (UU-encoded)> |
ADDR_ERROR (Address not on word boundary) |
ADDR_NOT_MAPPED |
COUNT_ERROR (Byte count is not multiple of 4) |
PARAM_ERROR
This command is used to read data from RAM or Flash memory.
"R 1073741824 4<CR><LF>" reads 4 bytes of data from address 0x4000 0000.
LPC2119/2129/2292/2294
236
Preliminary User Manual
January 08, 2004

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2292Lpc2294

Table of Contents