Philips LPC2194 User Manual page 274

Table of Contents

Advertisement

Philips Semiconductors
ARM-based Microcontroller
Prepare sector(s) for write operation <start sector number> <end sector number>
This command makes flash write/erase operation a two step process.
Table 205: ISP Prepare sector(s) for write operation command description
Command
Input
Return Code
Description
Example
Copy RAM to Flash <Flash address> <RAM address> <number of bytes>
Table 206: ISP Copy RAM to Flash command description
Command
Input
Return Code
Description
Example
Flash Memory System and Programming
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 sector 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.
C
Flash Address(DST): Destination Flash address where data bytes are to be written. The destination
address should be a 512 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 512 | 1024 | 4096 | 8192.
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 512 | 1024 | 4096 | 8192) |
SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION |
BUSY |
CMD_LOCKED |
PARAM_ERROR
CODE_READ_PROTECTION_ENABLED
This command is used to program the flash memory. The affected sectors should be prepared first
by calling "Prepare Sector for Write Operation" command. The affected sectors are automatically
protected again once the copy command is successfully executed. The boot sector can not be
written by this command. As of Bootloader rev. 1.61 this command is blocked when code read
protection is enabled.
"C 0 1073774592 512<CR><LF>" copies 512 bytes from the RAM address 0x4000 8000 to the flash
address 0.
LPC2119/2129/2194/2292/2294
274
Preliminary User Manual
May 03, 2004

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2119Lpc2292Lpc2294

Table of Contents