![NXP Semiconductors LPC43Sxx User Manual Download Page 51](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827051.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
51 of 1441
NXP Semiconductors
UM10503
Chapter 4: LPC43xx/LPC43Sxx One-Time Programmable (OTP)
4.5.1 OTP function allocation
Remark:
for availability of OTP functions for different boot ROM versions.
Table 20.
OTP function allocation
Function
Offset
Description
OTP bank
programmed
OTP memory
name
otp_Init
0x00
Initializes OTP controller.
Parameter - void
Return- unsigned: see the general error codes.
-
-
otp_ProgBootSrc
0x04
Programs boot source in OTP bank 3, word 0 (customer
control data).
Parameter - unsigned src
Return- unsigned: see the general error codes.
3; word 0
Customer
control data
otp_ProgJTAGDis
0x08
Set JTAG_DISABLE bit in OTP bank 3, word 0 (customer
control data). Use only when the device is AES capable.
Setting the JTAG_DISABLE bit disables the JTAG
permanently.
Parameter - void
Return- unsigned: see the general error codes.
3; word 0
Customer
control data
otp_ProgUSBID
0x0C
Programs USB_ID.
Parameter - unsigned prod_id, unsigned vend_id
Return- unsigned: see the general error codes.
3; word 1
Customer
control data
-
0x10
Reserved.
-
-
otp_ProgGP0
0x14
Programs the general purpose OTP memory GP0. Use only
if the device is not AES capable. The data parameter consists
of four 32-bit words, one for each word in the memory bank.
The mask parameter contains a mask for each of the words
written. Mask bits that are set to 1 allow a write to the
corresponding OTP bit.
Parameter - unsigned *data, unsigned *mask
Return- unsigned: see the general error codes.
1 (entire
bank)
General
purpose
memory 0;
words 0 to 3
otp_ProgGP1
0x18
Programs the general purpose OTP memory GP1. Use only
if the device is not AES capable. The data parameter consists
of four 32-bit words, one for each word in the memory bank.
The mask parameter contains a mask for each of the words
written. Mask bits that are set to 1 allow a write to the
corresponding OTP bit.
Parameter - unsigned *data, unsigned *mask
Return- unsigned: see the general error codes.
2 (entire
bank)
General
purpose
memory 1;
words 0 to 3
otp_ProgGP2
0x1C
Programs the general purpose OTP memory GP2 (however,
writes to word 0, which contains customer control data are
ignored). Use for customer-specific data. The data parameter
consists of four 32-bit words, one for each word in the
memory bank. The mask parameter contains a mask for each
of the words written. Mask bits that are set to 1 allow a write
to the corresponding OTP bit.
Parameter - unsigned *data, unsigned *mask
Return- unsigned: see the general error codes.
3 (word 1,
word 2, word
3); writes to
word 0 are
ignored
General
purpose
memory 2;
words 1 to 3;