Compare_Error; Addr_Error; Addr_Not_Mapped; Read Boot Code Version Number - Philips LPC2101 User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1

19.9.6 Read boot code version number

Table 232: IAP Read Boot code version number command
Command
Input
Return Code
Result
Description
19.9.7 Compare <address1> <address2> <no of bytes>
Table 233: IAP Compare command
Command
Input
Return Code
Result
Description

19.9.8 Reinvoke ISP

Table 234: Reinvoke ISP
Command
Input
Return Code
Result
Description

User manual

Read boot code version number
Command code: 55
10
Parameters: None
CMD_SUCCESS |
Result0: 2 bytes of boot code version number in ASCII format. It is to be
interpreted as <byte1(Major)>.<byte0(Minor)>
This command is used to read the boot code version number.
Compare
Command code: 56
10
Param0(DST): Starting Flash or RAM address of data bytes to be compared. This
address should be a word boundary.
Param1(SRC): Starting Flash or RAM address of data bytes to be compared.
This address should be a word boundary.
Param2: Number of bytes to be compared; should be a multiple of 4.
CMD_SUCCESS |

COMPARE_ERROR |

COUNT_ERROR (Byte count is not a multiple of 4) |

ADDR_ERROR |

ADDR_NOT_MAPPED

Result0: Offset of the first mismatch if the Status Code is COMPARE_ERROR.
This command is used to compare the memory contents at two locations.
The result may not be correct when the source or destination includes any
of the first 64 bytes starting from address zero. The first 64 bytes can be
re-mapped to RAM.
Compare
Command code: 57
10
None
None.
This command is used to invoke the bootloader in ISP mode. This command
maps boot vectors, configures P0.1 as an input and sets the APB divider register
to 0 before entering the ISP mode. This command may be used when a valid user
program is present in the internal flash memory and the P0.14 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
case the ISP utility should pass the PLL frequency after autobaud handshake.
Another option is to disable the PLL before making this IAP call.
Important: TIMER1 registers must be programmed with reset values before
"Reinvoke ISP" command is used.
Rev. 01 — 12 January 2006
UM10161
Chapter 19: Flash memory
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
247

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents