UM11029
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
32 of 515
NXP Semiconductors
UM11029
Chapter 5: LPC84x ISP and IAP
5.5.9 Erase sectors
5.5.10 Erase pages
5.5.11 Blank check sectors
Table 25.
USART ISP Erase sector command
Command
E
Input
Start Sector Number
End Sector Number:
Should be greater than or equal to start sector number.
Return Code
CMD_SUCCESS |
BUSY |
INVALID_SECTOR |
SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION |
CMD_LOCKED |
PARAM_ERROR |
CODE_READ_PROTECTION_ENABLED
Description
This command is used to erase one or more sector(s) of on-chip flash memory. This command only allows
erasure of all user sectors when the code read protection is enabled.
Example
"E 2 3<CR><LF>" erases the flash sectors 2 and 3.
Table 26.
USART ISP Erase page command
Command
X
Input
Start Page Number
End Page Number:
Should be greater than or equal to start page number.
Return Code
CMD_SUCCESS |
BUSY |
INVALID_PAGE |
SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION |
CMD_LOCKED |
PARAM_ERROR |
CODE_READ_PROTECTION_ENABLED
Description
This command is used to erase one or more page(s) of on-chip flash memory.
Example
"X 2 3<CR><LF>" erases the flash pages 2 and 3.
Table 27.
USART ISP Blank check sector command
Command
I
Input
Start Sector Number:
End Sector Number:
Should be greater than or equal to start sector number.
Return Code
CMD_SUCCESS |
SECTOR_NOT_BLANK (followed by <Offset of the first non blank word location> <Contents of non blank
word location>) |
INVALID_SECTOR |
PARAM_ERROR
Description
This command is used to blank check one or more sectors of on-chip flash memory.
Example
"I 2 3<CR><LF>" blank checks the flash sectors 2 and 3.