![NXP Semiconductors LCP43 Series User Manual Download Page 1180](http://html1.mh-extra.com/html/nxp-semiconductors/lcp43-series/lcp43-series_user-manual_17218171180.webp)
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
1180 of 1269
NXP Semiconductors
UM10503
Chapter 46: LPC43xx flash programming/ISP and IAP
46.7.6 Prepare sectors for write operation <start sector number> <end
sector number> <flash bank>
This command is the first step in the two-step flash write/erase operation.
Table 1031.ISP Prepare sectors for write operation command
Command
P
Input
Start Sector Number
End Sector Number:
Should be greater than or equal to start sector number.
Flash bank
: Selects flash bank if the part supports more than on bank. 0 = flash
bank A, 1 = flash bank B.
Return Code
CMD_SUCCESS |
BUSY |
INVALID_SECTOR |
PARAM_ERROR | INVALID_FLASH_UNIT
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.
Example
"P 0 0 0 <CR><LF>" prepares the flash sector 0 in flash bank A.