UM10462 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2016. All rights reserved.
User manual Rev. 5.5 — 21 December 2016 412 of 523
NXP Semiconductors
UM10462
Chapter 20: LPC11U3x/2x/1x Flash programming firmware
20.14.1 Prepare sector(s) for write operation
This command makes flash write/erase operation a two step process.
20.14.2 Copy RAM to flash
See Section 20.13.7 for limitations on the write-to-flash process.
Fig 70. IAP parameter passing
Command code
Param 0
Param 1
Param n
status_result[0]
status_result[1]
Status code
Result 0
Result 1
Result n
Command Parameter Array
Status Result Array
ARM REGISTER r0
ARM REGISTER r1
command_param[0]
command_param[1]
command_param[2]
command_param[n]
status_result[2]
status_result[n]
Table 383. 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. To prepare a
single sector use the same "Start" and "End" sector numbers.