
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
431 of 464
NXP Semiconductors
UM10850
Chapter 31: LPC5410x Flash API
typedef enum
{
ERR_ISP_BASE = 0x00000000,
/*0x00000001*/ ERR_ISP_INVALID_COMMAND = ERR_IS 1,
/*0x00000002*/ ERR_ISP_SRC_ADDR_ERROR,
/*0x00000003*/ ERR_ISP_DST_ADDR_ERROR,
/*0x00000004*/ ERR_ISP_SRC_ADDR_NOT_MAPPED,
/*0x00000005*/ ERR_ISP_DST_ADDR_NOT_MAPPED,
/*0x00000006*/ ERR_ISP_COUNT_ERROR,
/*0x00000007*/ ERR_ISP_INVALID_SECTOR,
/*0x00000008*/ ERR_ISP_SECTOR_NOT_BLANK,
/*0x00000009*/ ERR_ISP_SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION,
/*0x0000000A*/ ERR_ISP_COMPARE_ERROR,
/*0x0000000B*/ ERR_ISP_BUSY, /* Flash programming hardware interface is busy */
0x5
ERR_ISP_DST_ADDR_NOT_MAPPED
Destination address is not mapped in the memory map. Count value is
taken in to consideration where applicable.
0x6
ERR_ISP_COUNT_ERROR
Byte count is not multiple of 4 or is not a permitted value.
0x7
ERR_ISP_INVALID_SECTOR
Sector number is invalid or end sector number is greater than start
sector number.
0x8
ERR_ISP_SECTOR_NOT_BLANK
Sector is not blank.
0x9
ERR_ISP_SECTOR_NOT_PREPARED_
FOR_WRITE_OPERATION
Command to prepare sector for write operation was not executed.
0xA
ERR_ISP_COMPARE_ERROR
Source and destination data not equal.
0xB
ERR_ISP_BUSY
Flash programming hardware interface is busy.
0xC
ERR_ISP_PARAM_ERROR
Insufficient number of parameters or invalid parameter.
0xD
ERR_ISP_ADDR_ERROR
Address is not on word boundary.
0xE
ERR_ISP_ADDR_NOT_MAPPED
Address is not mapped in the memory map. Count value is taken in to
consideration where applicable.
0xF
ERR_ISP_CMD_LOCKED
Command is locked.
0x10
ERR_ISP_INVALID_CODE
Unlock code is invalid.
0x11
ERR_ISP_INVALID_BAUD_RATE
Invalid baud rate setting.
0x12
ERR_ISP_INVALID_STOP_BIT
Invalid stop bit setting.
0x13
ERR_ISP_CODE_READ_PROTECTION_
ENABLED
Code read protection enabled.
0x14
-
Reserved.
0x15
-
Reserved.
0x16
-
Reserved.
0x17
ERR_ISP_IRC_NO_POWER
IRC not turned on in the PDRUNCFG register.
0x18
ERR_ISP_FLASH_NO_POWER
Flash not turned on in the PDRUNCFG register.
0x19
-
Reserved.
0x1A
-
Reserved.
0x1B
ERR_ISP_FLASH_NO_CLOCK
Flash clock disabled in the AHBCLKCTRL register.
0x1C
ERR_ISP_REINVOKE_ISP_CONFIG
Reinvoke ISP not successful.
Table 495. USART ISP Error codes
Return
Code
Error code
Description