9 iap status codes, Jtag flash programming interface, Nxp semiconductors – NXP Semiconductors LPC24XX UM10237 User Manual

Page 696

Advertising
background image

UM10237_4

© NXP B.V. 2009. All rights reserved.

User manual

Rev. 04 — 26 August 2009

696 of 792

NXP Semiconductors

UM10237

Chapter 30: LPC24XX Flash memory programming firmware

10.9 IAP Status Codes

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.

Return Code

None

Result

None.

Description

This command is used to invoke the bootloader in ISP mode. It maps boot
vectors, sets PCLK = CCLK / 4, configures UART0 pins Rx and Tx, resets
TIMER1 and resets the U0FDR (see

Section 16–4.12

). This command may be

used when a valid user program is present in the internal Flash memory and the
P2.10 pin is not accessible to force the ISP mode. The command does not disable
the PLL hence it is possible to invoke the bootloader when the part is running off
the PLL. In such case the ISP utility should pass the CCLK (crystal or PLL output
depending on the clock source selection

Section 4–3.1.1

) frequency after

autobaud handshake.

Another option is to disable the PLL and select the IRC as the clock source before
making this IAP call. In this case frequency sent by ISP is ignored and IRC and
PLL are used to generate CCLK = 14.748 MHz.

Table 628. Reinvoke ISP

Command

Compare

Table 629. 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 taken in to consideration where
applicable.

5

DST_ADDR_NOT_MAPPED

Destination address is not mapped in the memory
map. Count value is taken in to consideration where
applicable.

6

COUNT_ERROR

Byte count is not 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.

Advertising