UM10237_2 © NXP B.V. 2008. All rights reserved.
User manual Rev. 02 — 19 December 2008 692 o f 792
NXP Semiconductors UM10237
Chapter 30: LPC24XX Flash memory programming firmware

The Flash memory is not accessible during a write or erase operation. IAP commands,

which results in a Flash write/erase operation, use 32 bytes of space in the top portion of

the on-chip RAM for execution. The user program should not be use this space if IAP

Flash programming is permitted in the application.

10.1 Prepare sector(s) for write operation

This command makes Flash write/erase operation a two step process.

Table 621. IAP Command Summary
IAP Command Command Code Described in

Prepare sector(s) for write operation 5010 Table30–622

Copy RAM to Flash 5110 Table 30–623

Erase sector(s) 5210 Table 30–624

Blank check sector(s) 5310 Table30–625

Read Part ID 5410 Table 30–626

Read Boot code version 5510 Table30–627

Compare 5610 Table30–628

Reinvoke ISP 5710 Table 30–629

Fig 140. IAP parameter passing
COMMAND CODE
PARAMETER 1
PARAMETER 2
PARAMETER n
STATUS CODE
RESULT 1
RESULT 2
RESULT n
command
parameter table
command
result table
ARM REGISTER r0
ARM REGISTER r1