UM10413
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 1 — 16 December 2011
238 of 268
NXP Semiconductors
UM10413
MPT612 User manual
25.10.8 Reinvoke ISP
25.10.9 IAP status codes
25.11 JTAG flash programming interface
Debug tools can write parts of the flash image to the RAM and then execute the IAP call
"Copy RAM to Flash" repeatedly with proper offset.
Table 239. Reinvoke ISP
Command
Compare
Input
command code: 5710
Return Code
none
Result
none
Description
invokes the bootloader in ISP mode. Maps boot vectors, configures PIO1 as an
input and sets the APB divider register to 0 before entering the ISP mode. This
command can be used when a valid user program is present in the internal flash
memory and the PIO14 pin is not accessible to force the ISP mode. This
command does not disable the PLL hence it is possible to invoke the bootloader
when the part is running off the PLL. In such cases, the ISP utility must pass the
PLL frequency after autobaud handshake. Another option is to disable the PLL
before making this IAP call.
Remark:
TIMER1 registers must be programmed with reset values before
"Reinvoke ISP" command is used.
Table 240. IAP status codes summary
Status
code
Mnemonic
Description
0
CMD_SUCCESS
command is executed successfully
1
INVALID_COMMAND
invalid command
2
SRC_ADDR_ERROR
source address is not on a word boundary
3
DST_ADDR_ERROR
destination address is not on a correct boundary
4
SRC_ADDR_NOT_MAPPED
source address is not mapped in the memory map.
Count value is considered where applicable.
5
DST_ADDR_NOT_MAPPED
destination address is not mapped in the memory
map. Count value is considered where applicable.
6
COUNT_ERROR
byte count is not a multiple of 4 or is not a permitted
value
7
INVALID_SECTOR
sector number is invalid
8
SECTOR_NOT_BLANK
sector is not blank
9
SECTOR_NOT_PREPARED_
FOR_WRITE_OPERATION
command to prepare sector for write operation was not
executed
10
COMPARE_ERROR
source and destination data is not same
11
BUSY
flash programming hardware interface is busy