© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 01 — 15 August 2005
307
Philips Semiconductors
UM10139
Volume 1
Chapter 21: Flash Memory
21.9.1 Prepare sector(s) for write operation
This command makes flash write/erase operation a two step process.
Fig 67. IAP Parameter passing
COMMAND CODE
PARAMETER 1
PARAMETER 2
PARAMETER n
STATUS CODE
RESULT 1
RESULT 2
RESULT n
Command
parameter
table
Command
result table
ARM REGISTER r0
ARM REGISTER r1
Table 306: IAP Prepare sector(s) for write operation command
Command
Prepare sector(s) for write operation
Input
Command code: 50
10
Param0: Start Sector Number
Param1: End Sector Number (should be greater than or equal to start sector
number).
Return 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.