![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 80](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827080.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
80 of 1441
NXP Semiconductors
UM10503
Chapter 6: LPC43xx/LPC43Sxx flash programming/ISP and IAP
6.7.8 Go <address> <mode>
When the GO command is used, execution begins at the specified address (assuming it is
an executable address) with the device left as it was configured for the ISP code. The
PLL1 is configured to generate a CPU clock with a frequency of 96 MHz.
6.7.9 Erase sectors <start sector number> <end sector number> <flash
bank>
Table 42.
ISP Go command
Command
G
Input
Address:
Flash or RAM address from which the code execution is to be started.
This address must be on a word boundary and it is not allowed to add the Thumb
bit (bit 0) of the address.
Mode (retained for backward compatibility):
T (Execute program in Thumb
Mode) | A (not allowed).
Return Code
CMD_SUCCESS |
ADDR_ERROR |
ADDR_NOT_MAPPED |
CMD_LOCKED |
PARAM_ERROR |
CODE_READ_PROTECTION_ENABLED
Description
This command is used to execute a program residing in RAM or flash memory. It
may not be possible to return to the ISP command handler once this command is
successfully executed. This command is blocked when any level of code read
protection is enabled.
Example
"G 436208208 T<CR><LF>" branches to address 0x1A00 0250.
Table 43.
ISP Erase sector command
Command
E
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 |
SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION |
CMD_LOCKED |
PARAM_ERROR |
CODE_READ_PROTECTION_ENABLED | INVALID_FLASH_UNIT
Description
This command is used to erase one or more sectors of on-chip flash memory. This
command is blocked when code read protection level CRP3 is enabled. When code
read protection level CRP1 is enabled, individual sectors other than sector 0 can be
erased. All sectors can be erased at once in CRP1 and CRP2.
Example
"E 2 3 0<CR><LF>" erases the flash sectors 2 and 3 in flash bank A.