![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 78](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827078.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
78 of 1441
NXP Semiconductors
UM10503
Chapter 6: LPC43xx/LPC43Sxx flash programming/ISP and IAP
6.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 40.
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.