OM13008,598 NXP Semiconductors, OM13008,598 Datasheet - Page 317

no-image

OM13008,598

Manufacturer Part Number
OM13008,598
Description
BOARD LPC XPRESSO LPC122X
Manufacturer
NXP Semiconductors
Series
LPCXpressor
Datasheets

Specifications of OM13008,598

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
568-6642
OM13008
NXP Semiconductors
20.8 IAP commands
UM10441
User manual
20.7.15 ISP Return Codes
Table 305. ISP Return Codes Summary
For in application programming the IAP routine should be called with a word pointer in
register r0 pointing to memory (RAM) containing command code and parameters. Result
of the IAP command is returned in the result table pointed to by register r1. The user can
reuse the command table for result by passing the same pointer in registers r0 and r1. The
parameter table should be big enough to hold all the results in case if number of results
are more than number of parameters. Parameter passing is illustrated in the
The number of parameters and results vary according to the IAP command. The
maximum number of parameters is 5, passed to the "Copy RAM to FLASH" command.
Return
Code
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Mnemonic
CMD_SUCCESS
INVALID_COMMAND
SRC_ADDR_ERROR
DST_ADDR_ERROR
SRC_ADDR_NOT_MAPPED
DST_ADDR_NOT_MAPPED
COUNT_ERROR
INVALID_SECTOR
SECTOR_NOT_BLANK
SECTOR_NOT_PREPARED_FOR_
WRITE_OPERATION
COMPARE_ERROR
BUSY
PARAM_ERROR
ADDR_ERROR
ADDR_NOT_MAPPED
CMD_LOCKED
INVALID_CODE
INVALID_BAUD_RATE
INVALID_STOP_BIT
CODE_READ_PROTECTION_
ENABLED
All information provided in this document is subject to legal disclaimers.
Rev. 1.1 — 10 March 2011
Command is executed successfully. Sent by ISP
Invalid command.
Source address is not on word boundary.
Source address is not mapped in the memory map.
Sector number is invalid or end sector number is
Source and destination data not equal.
Flash programming hardware interface is busy.
Address is not mapped in the memory map. Count
Invalid stop bit setting.
Description
handler only when command given by the host has
been completely and successfully executed.
Destination address is not on a correct boundary.
Count value is taken in to consideration where
applicable.
Destination address is not mapped in the memory
map. Count value is taken in to consideration
where applicable.
Byte count is not multiple of 4 or is not a permitted
value.
greater than start sector number.
Sector is not blank.
Command to prepare sector for write operation
was not executed.
Insufficient number of parameters or invalid
parameter.
Address is not on word boundary.
value is taken in to consideration where applicable.
Command is locked.
Unlock code is invalid.
Invalid baud rate setting.
Code read protection enabled.
Chapter 20: LPC122x Flash ISP/IAP
UM10441
© NXP B.V. 2011. All rights reserved.
Figure
317 of 442
54.

Related parts for OM13008,598