UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
User manual
Rev. 1.3 — 6 July 2012
1193 of 1269
NXP Semiconductors
UM10503
Chapter 46: LPC43xx flash programming/ISP and IAP
46.9 ISP/IAP Return Codes
Table 1054.IAP Set active boot flash bank
Command
Set active boot flash bank
Input
Command code: 60 (decimal)
Param0: Flash bank (0 = flash bank A, 1 = flash bank B).
Param1: CPU clock frequency in kHz.
Return Code
CMD_SUCCESS | BUSY |
SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION | INVALID_SECTOR |
INVALID_FLASH_UNIT | ERROR_USER_CODE_CHECKSUM |
ERROR_SETTING_ACTIVE_PARTITION
Result
None.
Description
This command is only valid if there are two flash banks. It is used to enable
booting from the indicated flash unit by inserting a valid signature and invalidating
the other flash unit. This command will not work if zeros are found where a vector
table is expected.
Remark:
An invalid image in the selected flash unit can cause boot failure and
even a system lockup when CRP3 is set.
Stack usage
2208 B
Table 1055.ISP Return Codes Summary
Return Code
Mnemonic
Description
0x0000 0000
CMD_SUCCESS
Command is executed successfully. Sent by ISP handler only
when command given by the host has been completely and
successfully executed.
0x0000 0001
INVALID_COMMAND
Invalid command.
0x0000 0002
SRC_ADDR_ERROR
Source address is not on word boundary.
0x0000 0003
DST_ADDR_ERROR
Destination address not on word or 256 byte boundary.
0x0000 0004
SRC_ADDR_NOT_MAPPED
Source address is not mapped in the memory map. Count
value is taken into consideration where applicable.
0x0000 0005
DST_ADDR_NOT_MAPPED
Destination address is not mapped in the memory map. Count
value is taken into consideration where applicable.
0x0000 0006
COUNT_ERROR
Byte count is not multiple of 4 or is not a permitted value.
0x0000 0007
INVALID_SECTOR
Sector number is invalid or end sector number is greater than
start sector number.
0x0000 0008
SECTOR_NOT_BLANK
Sector is not blank.
0x0000 0009
SECTOR_NOT_PREPARED_
FOR_WRITE_OPERATION
Command to prepare sector for write operation was not
executed.
0x0000 000A
COMPARE_ERROR
Source and destination data not equal.
0x0000 000B
BUSY
Flash programming hardware interface is busy.
0x0000 000C
PARAM_ERROR
Insufficient number of parameters or invalid parameter.
0x0000 000D
ADDR_ERROR
Address is not on word boundary.
0x0000 000E
ADDR_NOT_MAPPED
Address is not mapped in the memory map. Count value is
taken in to consideration where applicable.
0x0000 000F
CMD_LOCKED
Command is locked.
0x0000 0010
INVALID_CODE
Unlock code is invalid.
0x0000 0011
INVALID_BAUD_RATE
Invalid baud rate setting.