© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
User manual
Rev. 01 — 12 January 2006
247
Philips Semiconductors
UM10161
Volume 1
Chapter 19: Flash memory
19.9.6 Read
boot code version number
19.9.7 Compare
<address1>
<address2> <no of bytes>
19.9.8 Reinvoke
ISP
Table 232: IAP Read Boot code version number command
Command
Read boot code version number
Input
Command code: 55
10
Parameters:
None
Return Code
CMD_SUCCESS |
Result
Result0:
2 bytes of boot code version number in ASCII format. It is to be
interpreted as <byte1(Major)>.<byte0(Minor)>
Description
This command is used to read the boot code version number.
Table 233: IAP Compare command
Command
Compare
Input
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.
Return Code
CMD_SUCCESS |
COMPARE_ERROR |
COUNT_ERROR (Byte count is not a multiple of 4) |
ADDR_ERROR |
ADDR_NOT_MAPPED
Result
Result0:
Offset of the first mismatch if the Status Code is COMPARE_ERROR.
Description
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.
Table 234: Reinvoke ISP
Command
Compare
Input
Command code: 57
10
Return Code
None
Result
None.
Description
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.