English
Language : 

LPC1114FHI33 Datasheet, PDF (436/543 Pages) NXP Semiconductors – LPC111x/LPC11Cxx User manual
NXP Semiconductors
UM10398
Chapter 26: LPC111x/LPC11Cxx Flash programming firmware
ARM REGISTER r0
ARM REGISTER r1
Command Parameter Array
command_param[0]
command_param[1]
command_param[2]
Command code
Param 0
Param 1
command_param[n]
Param n
Status Result Array
status_result[0]
status_result[1]
status_result[2]
Status code
Result 0
Result 1
Fig 92. IAP parameter passing
status_result[n]
Result n
26.7.1 Prepare sector(s) for write operation (IAP)
This command makes flash write/erase operation a two step process.
Table 396. IAP Prepare sector(s) for write operation command
Command Prepare sector(s) for write operation
Input
Command code: 50 (decimal)
Param0: Start Sector Number
Param1: End Sector Number (should be greater than or equal to start sector
number).
Status Code
CMD_SUCCESS |
BUSY |
INVALID_SECTOR
Result
None
Description
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
sector can not be prepared by this command. To prepare a single sector use the
same "Start" and "End" sector numbers.
26.7.2 Copy RAM to flash (IAP)
See Section 26.5.4 for limitations on the write-to-flash process.
UM10398
User manual
All information provided in this document is subject to legal disclaimers.
Rev. 12.1 — 7 August 2013
© NXP B.V. 2013. All rights reserved.
436 of 543