UM10413
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 1 — 16 December 2011
234 of 268
NXP Semiconductors
UM10413
MPT612 User manual
25.10.1 Prepare sector(s) for write operation
This command makes flash write/erase operation a two-step process.
Fig 67. IAP Parameter passing
aaa-000629
COMMAND CODE
command
parameter
table
PARAMETER 1
PARAMETER 2
ARM REGISTER r0
PARAMETER n
STATUS CODE
command
result table
RESULT 1
RESULT 2
ARM REGISTER r1
RESULT n
Table 232. IAP Prepare sector(s) for write operation command
Command
Prepare sector(s) for write operation
Input
command code: 5010
param0:
start sector number
param1:
end sector number (must be greater than or equal to start sector
number)
Return Code
CMD_SUCCESS |
BUSY |
INVALID_SECTOR
Result
none
Description
execute 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 cannot be
prepared by this command. To prepare a single sector, use the same "Start" and
"End" sector numbers.