![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 52](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827052.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
52 of 1441
NXP Semiconductors
UM10503
Chapter 4: LPC43xx/LPC43Sxx One-Time Programmable (OTP)
4.5.1.1 OTP API error codes
ERR_OTP_BASE = 0x00070000,
/*0x00070001*/ ERR_OTP_WR_ENABLE_INVALID = ERR_O1
/*0x00070002*/ ERR_OTP_SOME_BITS_ALREADY_PROGRAMMED
/*0x00070003*/ ERR_OTP_ALL_DATA_OR_MASK_ZERO
/*0x00070004*/ ERR_OTP_WRITE_ACCESS_LOCKED
/*0x00070005*/ ERR_OTP_READ_DATA_MISMATCH
/*0x00070006*/ ERR_OTP_USB_ID_ENABLED
/*0x00070007*/ ERR_OTP_ETH_MAC_ENABLED
/*0x00070008*/ ERR_OTP_AES_KEYS_ENABLED
/*0x00070009*/ ERR_OTP_ILLEGAL_BANK
LPC_OK = 0
.
otp_ProgGP2_0
0x20
Programs the general purpose OTP memory GP2 word 0.
Use for customer-specific data. The data parameter is one
32-bit word. The mask parameter contains a mask for the
word written. Mask bits that are set to 1 allow a write to the
corresponding OTP bit.
Remark:
This function can only be used if the USB ID is
not
programmed. Otherwise, error code
ERR_OTP_USB_ID_ENABLED
is returned.
Parameter - unsigned data, unsigned mask
Return- unsigned: see the general error codes.
3 (word 1)
General
purpose
memory 2,
word 0
otp_ProgGP2_1
0x24
Programs the general purpose OTP memory GP2 word 1.
Use for customer-specific data.The data parameter is one
32-bit word. The mask parameter contains a mask for the
word 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 2)
General
purpose
memory 2,
word 1
otp_ProgGP2_2
0x28
Programs the general purpose OTP memory GP2 word 2.
Use for customer-specific data.The data parameter is one
32-bit word. The mask parameter contains a mask for the
word 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 3)
General
purpose
memory 2,
word 2
-
0x2C
Reserved.
-
-
-
0x30
Reserved.
-
-
otp_GenRand
0x34
Generate new random number using the hardware Random
Number Generator (RNG).
Parameter - void
Return- unsigned: see the general error codes.
-
-
Table 20.
OTP function allocation
Function
Offset
Description
OTP bank
programmed
OTP memory
name