Copy Ram To Flash <Flash Address> <Ram Address> <No Of Bytes; Go <Address> <Mode; User Manual - Philips LPC2101 User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
19.8.7 Copy RAM to flash <Flash address> <RAM address> <no of bytes>
Table 217: ISP Copy command
Command
Input
Return Code CMD_SUCCESS |
Description
Example
19.8.8 Go <address> <mode>
Table 218: ISP Go command
Command
Input
Return Code CMD_SUCCESS |
Description
Example

User manual

C
Flash Address(DST): Destination Flash address where data bytes are to be
written. The destination address should be a 256 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 256 | 512 | 1024 |
4096.
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 256 | 512 | 1024 | 4096) |
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 "Prepare Sector(s) for
Write Operation" command should precede this command. The affected sectors
are automatically protected again once the copy command is successfully
executed. The boot block cannot be written by this command. 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.
G
Address: Flash or RAM address from which the code execution is to be started.
This address should be on a word boundary.
Mode: T (Execute program in Thumb Mode) | A (Execute program in ARM mode).
ADDR_ERROR |
ADDR_NOT_MAPPED |
CMD_LOCKED |
PARAM_ERROR |
CODE_READ_PROTECTION_ENABLED
This command is used to execute a program residing in RAM or Flash memory. It
may not be possible to return to the ISP command handler once this command is
successfully executed. This command is blocked when code read protection is
enabled.
"G 0 A<CR><LF>" branches to address 0x0000 0000 in ARM mode.
Rev. 01 — 12 January 2006
UM10161
Chapter 19: Flash memory
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
239

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents