Philips LPC2194 User Manual page 282

Table of Contents

Advertisement

Philips Semiconductors
ARM-based Microcontroller
Copy RAM to Flash
Table 216: IAP Copy RAM to Flash command description
Command
Input
Status Code
Result
Description
Erase Sector(s)
Table 217: IAP Erase Sector(s) command description
Command
Input
Status Code
Result
Description
Flash Memory System and Programming
Copy RAM to Flash
Command code: 51
Param0(DST): Destination Flash address where data bytes are to be written. The destination
address should be a 512 byte boundary.
Param1(SRC): Source RAM address from which data bytes are to be read. This address should be
on word boundary.
Param2: Number of bytes to be written. Should be 512 | 1024 | 4096 | 8192.
Param3: System Clock Frequency (CCLK) in KHz.
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
None
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.
Erase Sector(s)
Command code: 52
Param0: Start Sector Number
Param1: End Sector Number: Should be greater than or equal to start sector number.
Param2: System Clock Frequency (CCLK) in KHz.
CMD_SUCCESS |
BUSY |
SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION |
INVALID_SECTOR
None
This command is used to erase a sector or multiple sectors of on-chip Flash memory. The boot
sector can not be erased by this command. To erase a single sector use the same "Start" and "End"
sector numbers.
LPC2119/2129/2194/2292/2294
282
Preliminary User Manual
May 03, 2004

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2119Lpc2292Lpc2294

Table of Contents