OM13013,598 NXP Semiconductors, OM13013,598 Datasheet - Page 313

no-image

OM13013,598

Manufacturer Part Number
OM13013,598
Description
BOARD DEMO IAR LPC1227 JLINKLITE
Manufacturer
NXP Semiconductors
Series
-r
Datasheets

Specifications of OM13013,598

Design Resources
LPC122x-SK Brd Schematic
Processor To Be Evaluated
LPC1227
Processor Series
LPC122x
Data Bus Width
32 bit
Interface Type
UART, SSP, SPI, I2C
Cpu Core
ARM Cortex-M0
Maximum Operating Temperature
+ 85 C
Minimum Operating Temperature
- 40 C
Operating Supply Voltage
3 V to 3.6 V
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
568-6885
NXP Semiconductors
UM10441
User manual
20.7.7 Copy RAM to flash <Flash address> <RAM address> <no of bytes>
Table 295. ISP Prepare sector(s) for write operation command
Table 296. ISP Copy command
Command
Input
Return Code
Description
Example
Command
Input
Return Code CMD_SUCCESS |
Description
Example
C
Flash Address(DST): Destination flash address where data bytes are to be
written. The destination address should be on a flash word (4 bytes) boundary.
Writes on a row boundary (128 bytes) are preferred as they can be performed more
efficiently. The total number of bytes copied must be ≤ 4096 bytes.
RAM Address(SRC): Source RAM address from where data bytes are to be read.
Number of Bytes: Number of bytes to be written. Must be a multiple of 4 bytes.
SRC_ADDR_ERROR (Address not on word boundary) |
DST_ADDR_ERROR (Address not on a word boundary correct boundary) |
SRC_ADDR_NOT_MAPPED |
DST_ADDR_NOT_MAPPED |
COUNT_ERROR (Byte count is not 4 bytes) |
SECTOR_NOT_PREPARED_FOR WRITE_OPERATION |
BUSY |
CMD_LOCKED |
PARAM_ERROR |
CODE_READ_PROTECTION_ENABLED
This command is used to program the flash memory. The "Prepare Sector(s) for
Write Operation" command should precede this command. The affected sectors are
automatically protected again once the copy command is successfully executed.
This command is blocked when code read protection is enabled.
"C 0 268467504 512<CR><LF>" copies 512 bytes from the RAM address
0x1000 0800 to the flash address 0.
P
Start Sector Number
End Sector Number: Should be greater than or equal to start sector number.
CMD_SUCCESS |
BUSY |
INVALID_SECTOR |
PARAM_ERROR
This command must be executed before executing "Copy RAM to flash" or "Erase
Sector(s)" command. Successful execution of the "Copy RAM to flash" or "Erase
Sector(s)" command causes relevant sectors to be protected again. The boot
block can not be prepared by this command. To prepare a single sector use the
same "Start" and "End" sector numbers.
"P 0 0<CR><LF>" prepares the flash sector 0.
All information provided in this document is subject to legal disclaimers.
Rev. 1 — 15 February 2011
Chapter 20: LPC122x Flash ISP/IAP
UM10441
© NXP B.V. 2011. All rights reserved.
313 of 442

Related parts for OM13013,598