UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
User manual
Rev. 1.3 — 6 July 2012
1188 of 1269
NXP Semiconductors
UM10503
Chapter 46: LPC43xx flash programming/ISP and IAP
46.8.2 Prepare sectors for write operation
This command is the first step in the two-step flash write/erase operation.
46.8.3 Copy RAM to Flash
Before executing this command, perform the “Prepare sectors for write” command.
Result
None
Description
Initializes and prepares the flash for erase and write operations.
Stack usage
88 B
Table 1043.IAP Initialization command
Command
Init IAP
Table 1044.IAP Prepare sectors for write operation command
Command
Prepare sectors for write operation
Input
Command code: 50 (decimal)
Param0:
Start Sector Number
Param1:
End Sector Number (should be greater than or equal to start sector
number).
Param2:
Flash bank (0 = flash bank A, 1 = flash bank B)
Return Code
CMD_SUCCESS |
BUSY |
INVALID_SECTOR
Result
None
Description
This command must be executed before executing "Copy RAM to Flash" or
"Erase Sectors" command. Successful execution of the "Copy RAM to Flash" or
"Erase Sectors" command causes relevant sectors to be protected again. To
prepare a single sector use the same "Start" and "End" sector numbers.
Stack usage
118 B