![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 92](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827092.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
92 of 1441
NXP Semiconductors
UM10503
Chapter 6: LPC43xx/LPC43Sxx flash programming/ISP and IAP
6.8.8 Read device serial number
6.8.9 Compare <address1> <address2> <no of bytes>
Result
Result0:
2 bytes of boot code version number. It is to be interpreted as
<byte1(Major)>.<byte0(Minor)>
Description
This command is used to read the boot code version number.
Stack usage
8 B
Table 58.
IAP Read Boot Code version number command
Command
Read boot code version number
Table 59.
IAP Read device serial number command
Command
Read device serial number
Input
Command code: 58 (decimal)
Parameters:
None
Status Code
CMD_SUCCESS |
Result
Result0:
First 32-bit word of Device Identification Number (at the lowest address)
Result1:
Second 32-bit word of Device Identification Number
Result2:
Third 32-bit word of Device Identification Number
Result3:
Fourth 32-bit word of Device Identification Number
Description
This command is used to read the device identification number. The serial number
may be used to uniquely identify a single unit among all LPC43xx devices.
Stack usage
8 B
Table 60.
IAP Compare command
Command
Compare
Input
Command code: 56 (decimal)
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.
Status 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.
Stack usage
152 B