Flash Memory System and Programming
244
Philips Semiconductors
Preliminary User Manual
LPC2119/2129/2292/2294
ARM-based Microcontroller
Figure 48: IAP Parameter passing
Prepare sector(s) for write operation
This command makes flash write/erase operation a two step process.
Table 214: IAP Prepare sector(s) for write operation command description
Command
Prepare sector(s) for write operation
Input
Command code: 50
Param0: Start Sector Number
Param1: End Sector Number: Should be greater than or equal to start sector number.
Status Code
CMD_SUCCESS |
BUSY |
INVALID_SECTOR
Result
None
Description
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.
ARM Register r0
Command Code
Parameter 0
Parameter 1
Parameter n
Status Code
Result 0
Result 1
Result n
Command
parameter table
Command
result table
ARM Register r1