![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 84](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827084.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
84 of 1441
NXP Semiconductors
UM10503
Chapter 6: LPC43xx/LPC43Sxx flash programming/ISP and IAP
6.7.14 Compare <address1> <address2> <no of bytes>
6.7.15 Set active boot flash bank <flash bank>
This command is only valid if two flash banks exist on the part and selects one of the two
banks for booting from flash. The command inserts a valid signature (see
)
in the selected flash bank and invalidates the signature in the other flash bank. After a
reset, the part will boot from the selected flash bank and apply any code read protection
(CRP) that is included in the flash image of the selected bank to the entire flash (bank A
and bank B).
The set active boot flash bank command is disabled with CRP levels 1, 2, and 3. This
means that the boot flash bank cannot be changed if CRP is enabled. If CRP is included
in the new flash image to be activated by this command, ensure that the flash image
content is executing as expected. Otherwise, the part may fail to boot after reset and, for
CRP level 3, external boot or ISP may not be accessible to update the flash.
Table 49.
ISP Compare command
Command
M
Input
Address1 (DST):
Starting flash or RAM address of data bytes to be compared.
This address should be a word boundary.
Address2 (SRC):
Starting flash or RAM address of data bytes to be compared.
This address should be a word boundary.
Number of Bytes:
Number of bytes to be compared; should be a multiple of 4.
Return Code
CMD_SUCCESS | (Source and destination data are equal)
COMPARE_ERROR | (Followed by the offset of first mismatch)
COUNT_ERROR (Byte count is not a multiple of 4) |
ADDR_ERROR |
ADDR_NOT_MAPPED |
PARAM_ERROR |
Description
This command is used to compare the memory contents at two locations. This
command is blocked when any level of code read protection is enabled.
Example
"M 436207616 268435968 4<CR><LF>" compares 4 bytes from the RAM address
0x1000 0200 to the 4 bytes from the flash address 0x1A00 0000.