UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
427 of 464
NXP Semiconductors
UM10850
Chapter 31: LPC5410x Flash API
31.5.9 Erase sectors
31.5.10 Erase pages
Table 485. 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 486. 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.