![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 86](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827086.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
86 of 1441
NXP Semiconductors
UM10503
Chapter 6: LPC43xx/LPC43Sxx flash programming/ISP and IAP
6.8 IAP commands
Remark:
IAP commands are not supported for flash-less parts.
For in-application programming, call the IAP routine with a word pointer in register r0
pointing to memory (RAM) containing command code and parameters.
The result of the IAP command is returned in the result table pointed to by register r1. You
can reuse the command table for result by passing the same pointer in registers r0 and r1.
The parameter table should be big enough to hold all the results in case the number of
results are more than number of parameters. Parameter passing is illustrated in
. The number of parameters and results vary according to the IAP command.
The maximum number of parameters is 4, passed to the "Copy RAM to Flash" command.
The maximum number of results is 4, returned by the "Read device serial number"
command. The command handler sends the status code INVALID_COMMAND when an
undefined command is received.
Fig 23. IAP pointer structure
Ptr to ROM Driver table
Ptr to Device Table 2
Ptr to flash IAP calls
…
IAP_entry
Ptr to Function 2
Ptr to Function 0
Ptr to Function 1
…
Ptr to Function n
flash IAP
0x1040 0100
Device 1
ROM Driver Table
0x1040 0100
0x1040 0104
0x1040 0108
Ptr to Device Table 1
Ptr to Device Table n