![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 93](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827093.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
93 of 1441
NXP Semiconductors
UM10503
Chapter 6: LPC43xx/LPC43Sxx flash programming/ISP and IAP
6.8.10 Re-invoke ISP
6.8.11 Erase page
The erase page command allows to erase one page (512 B) in a given sector.
6.8.12 Set active boot flash bank
This command is only valid if two flash banks exist on the part and selects one of the two
banks for booting from flash. The command inserts a valid signature (see
)
in the selected flash bank and invalidates the signature in the other flash bank. After a
reset, the part will boot from the selected flash bank and apply any code read protection
(CRP) that is included in the flash image of the selected bank to the entire flash (bank A
and bank B).
The set active boot flash bank command is disabled with CRP levels 1, 2, and 3. This
means that the boot flash bank cannot be changed if CRP is enabled. If CRP is included
in the new flash image to be activated by this command, ensure that the flash image
content is executing as expected. Otherwise, the part may fail to boot after reset and, for
CRP level 3, external boot or ISP may not be accessible to update the flash.
Remark:
This command uses a large stack space. See
Table 61.
IAP Re-invoke ISP
Command
Compare
Input
Command code: 57 (decimal)
Status Code
None
Result
None.
Description
This command is used to invoke the boot loader in ISP mode. It configures
UART0 pins U0_RX and U0_TX. Use this command when a valid user program is
present in the internal flash memory and the P2_7 pin is not accessible to force
the ISP mode. The command does not change CCLK, It does sets the source
dependent clock accordingly assuming that PLL1 is running at 288 MHz.
Stack usage
192 B
Table 62.
IAP Erase page
Command
Erase page
Input
Command code: 59 (decimal)
Param0: Start flash address.
Param1: End flash address.
Param2: CPU clock frequency in kHz.
Status Code
CMD_SUCCESS | BUSY |
SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION | INVALID_SECTOR |
INVALID_FLASH_UNIT
Result
None.
Description
This command is used to erase a page or multiple pages of on-chip flash memory.
To erase a single page use the same "Start" and "End" flash address. Start and
End addresses must be in the same sector.
Stack usage
168 B