© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual Rev. 01 — 24 June 2005 232
Philips Semiconductors
UM10120
Volume 1 Chapter 20: Flash Memory
20.9.1 Prepare sector(s) for write operation
This command makes flash write/erase operation a two step process.
Fig 57. 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 211: 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.