Prepare Sector(S) For Write Operation <Start Sector Number> <End Sector Number; User Manual - Philips LPC2101 User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
"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 215: ISP Read memory command
Command
Input
Return Code
Description
Example
19.8.6 Prepare sector(s) for write operation <start sector number> <end
sector number>
This command makes flash write/erase operation a two step process.
Table 216: ISP Prepare sector(s) for write operation command
Command
Input
Return Code
Description
Example

User manual

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 a multiple of 4) |
PARAM_ERROR |
CODE_READ_PROTECTION_ENABLED
This command is used to read data from RAM or Flash memory. This command is
blocked when code read protection is enabled.
"R 1073741824 4<CR><LF>" reads 4 bytes of data from address 0x4000 0000.
P
Start Sector Number
End Sector Number: Should be greater than or equal to start sector number.
CMD_SUCCESS |
BUSY |
INVALID_SECTOR |
PARAM_ERROR
This command must be executed before executing "Copy RAM to Flash" or "Erase
Sector(s)" command. Successful execution of the "Copy RAM to Flash" or "Erase
Sector(s)" command causes relevant sectors to be protected again. The boot
block can not be prepared by this command. To prepare a single sector use the
same "Start" and "End" sector numbers.
"P 0 0<CR><LF>" prepares the flash sector 0.
Rev. 01 — 12 January 2006
UM10161
Chapter 19: Flash memory
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
238

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents