UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
430 of 464
NXP Semiconductors
UM10850
Chapter 31: LPC5410x Flash API
31.5.17 Read flash signature
Get the signature for the entire flash memory using the flash signature generator
described in
. CMD_SUCCESS followed by the 32-bit flash signature
represented in decimal format.
31.5.18 ISP Error codes
Table 493. USART ISP Read CRC checksum command
Command
S
Input
Address:
The data are read from this address for CRC checksum calculation. This address must be on a
word boundary.
Number of Bytes:
Number of bytes to be calculated for the CRC checksum; must be a multiple of 4.
Return Code
CMD_SUCCESS followed by data in decimal format
ADDR_ERROR (address not on word boundary) |
ADDR_NOT_MAPPED |
COUNT_ERROR (byte count is not a multiple of 4) |
PARAM_ERROR |
CODE_READ_PROTECTION_ENABLED
Description
This command is used to read the CRC checksum of a block of RAM or flash memory. This command is
blocked when code read protection is enabled.
Example
"S 33587200 4<CR><LF>" reads the CRC checksum for 4 bytes of data from address 0x0200 8000.
If checksum value is 0xCBF43926, then the host will receive:
"3421780262 <CR><LF>"
Table 494. USART ISP Read flash signature command
Command
Z
Input
none
Return Code
CMD_SUCCESS followed by data in decimal format
CODE_READ_PROTECTION_ENABLED
Description
This command is used to read the signature of the entire flash memory. This command is blocked when code
read protection is enabled.
Example
"Z<CR><LF>" returns the signature for the entire flash memory.
If signature value is 0x3BD7, then the host will receive:
"15319 <CR><LF>"
Table 495. USART ISP Error codes
Return
Code
Error code
Description
0x0
ERR_ISP_CMD_SUCCESS
Command is executed successfully. Sent by ISP handler only when
command given by the host has been completely and successfully
executed.
0x1
ERR_ISP_INVALID_COMMAND
Invalid command.
0x2
ERR_ISP_SRC_ADDR_ERROR
Source address is not on word boundary.
0x3
ERR_ISP_DST_ADDR_ERROR
Destination address is not on a correct boundary.
0x4
ERR_ISP_SRC_ADDR_NOT_MAPPED
Source address is not mapped in the memory map. Count value is
taken in to consideration where applicable.