3. Boot and security and OTP control (BSEC)
3.1 Introduction
The BSEC (boot and security and OTP control) is intended to control an OTP (one time programmable) fuse box, used for on-chip non-volatile storage for device configuration and security parameters.
3.2 BSEC main features
- • 32-bit APB4 interface
- • 4096 OTP bits (with 3072 effective bits)
- • Valid power-supply pwrok input so that OTP is only operated within a VDD/VDD1 valid range
- • Scratch register for communication with external agent and to store boot parameters
- • Feature locking mechanism: BSEC provides 15 hardware signals, controlled by OTP to disable specific SoC features for product differentiation
- • JTAG SOC interface via BSEC_JTAGIN and BSEC_JTAGOUT registers for communication channel to JTAG TAP controller.
- • Two OTP regions designated as lower OTP (1 Kbits) and upper OTP (2 Kbits) having different properties
- • Lower OTP bits (1 Kbits), with 2:1 redundancy, are intended to store:
- – Device configuration: BSEC OTP mode and device features
- – Boot parameters
- – Engineering data and analog trim
- – Public root key (256 bits)
- • Upper OTP bits (2 Kbits) with 6 bits per 32-bit word ECC support, are intended to store security sensitive information
- – ST secret keys
- – OEM secrets
- • Improved resistance to hardware attacks by clock and power glitches during OTP read
- • OTP bits are always read with disturbcheck.
Every OTP word read is internally compared to an internal reference level. The disturbcheck information is provided to BSEC to qualify the OTP word value. - • Global programming locking by sticky bits
- • Permanent OTP program locking per word
- • OTP word programming lock by sticky bits during Boot
- • Shadow OTP registers can be individually write locked by sticky bits during Boot
- • Shadow OTP registers can be individually read locked by sticky bits during Boot (to prevent reloading)
- • Arm® TrustZone® awareness applicable to:
- – BSEC control registers
- – BSEC shadow registers from lower OTP region (words 0 to 31)
- – BSEC shadow registers from upper OTP region (words 32 to 95)
- • Arm® CoreSight™ debug authentication interface with six signals:
- – dbgen (debug enable)
- – devicen (external debug enable)
- – niden (non-invasive debug enable)
- – spiden (secure privilege invasive debug enable)
- – spniden (secure privilege non-invasive debug enable)
- – dbgswenable (self hosted debug enable)
- • Up to 256 hardware signals hws[255:0] for analog trim, factory settings and SoC RAM repair
3.3 BSEC functional description
BSEC provides an interface to the OTP (also known as anti-fuse macro) containing 3072 useful bits. BSEC also provides several registers used by the Boot process as well as mechanisms to prevent access to security sensitive information.
3.3.1 BSEC block diagram
Figure 5. BSEC block diagram

The diagram illustrates the BSEC (Boot and security and OTP control) block. It is divided into several functional areas:
- SoC system control interface: Exchanges signals pwrok, rstcore_n, fuseok, and otp_data_valid with the SoC system control.
- OTP Shadow Registers: Includes the Upper OTP shadow register and Lower OTP shadow register.
- APB interface: An APB bus connects to an APB interface decoder TrustZone, which interacts with the Control and security logic.
- Control and security logic: The central logic block of the BSEC.
- SAFMEM sequencer (2 flexible memories): Manages data flow between the BSEC and the SoC, including jtagin[15:0], jtagout[15:0], fdis[14:0], and hws[255:0].
- Read initialization of flexible memories: A sub-block within the SAFMEM sequencer.
- Program / read flexible memories: Another sub-block within the SAFMEM sequencer.
- CoreSight authentication interface: Outputs debug enable signals: dbgen, niden, spiden, spniden, deviceen, and dbgswenable.
- Cortex-A7 interface: Outputs cfgsdisable and cp15sdisable[1:0] to the Cortex-A7.
- SAFMEM interface: Outputs clk, pdn, rstn, and other signals to the SAFMEM interface.
- HDP interface: Outputs hdpen to the HDP.
MSv46603V4
3.3.2 Interface to OTP
OTP bits are grouped in words of 32 bits each and are organized in two regions:
- • the lower region: 32 words of 32 bits (lower 2 Kbits), using a 2:1 redundancy. SoC and Boot configuration parameters, engineering data and public root key hash are stored in this lower region.
- • the upper region: 64 words of 32 bits (2 Kbits upper half), using ECC scheme (32 bits encoded into 38 bits). Security sensitive parameters such as secret keys are stored in this upper region.
Note: OTP bits are initially set to 0 and can be programmed once to one.
Lower OTP words, using 2:1 redundancy, can be bitwise programmed in several operations
Upper OTP words, using internal ECC, must be programmed in a single operation as a bulk 32 bits data.
The OTP bits are not directly accessible by the CPU. Instead the CPU must access shadow registers that contain copies of the OTP useful bits.
There are 96 shadow registers: BSEC_OTP_DATA0 to BSEC_OTP_DATA95.
These 32-bit registers are copies of actual OTP bits. Redundancy and ECC are made transparent to the user. BSEC_OTP_DATAx are also referred to OTP word #x in this document.
There are two possibilities to update the shadow registers:
- • a system reset, where BSEC automatically copies the whole set of OTP useful bits to the shadow registers.
- • an OTP read operation requested by the CPU, used after an OTP programming operation to update the corresponding shadow register.
The following OTP useful bits have a special meaning for BSEC:
- • word #0: bits 0 to 6 reserved to determine OTP security mode
- • word #1: bits 0 to 15 used to control feature disabling
- • words #16 to word #23 are connected to the SoC signals hws[255:0]. These signals are either:
- – connected to SoC peripherals (example: for analog peripheral factory trimming, or for memory repair).
- – left unconnected if OTP bits are only used by software (see Section 4: OTP mapping (OTP)).
3.3.3 OTP security modes
OTP word#0 bits 0 to 6 (with their potential disturbed state) are used to determine the OTP security mode.
The following OTP security modes are available:
- • OTP-SECURED, including sub-modes, according to OTP word#0 as described in Table 11:
- – open_device
- – closed_device
- • OTP-INVALID
- – In this state the upper OTP shadow registers are cleared and not accessible, the lower OTP shadow registers are not accessible, BSEC control interface is read/write accessible to secure only.
The OTP mode is made visible to software by register BSEC_OTP_STATUS.
Table 11. OTP modes definition
| BSEC_OTP_DATA0 [6:0] | OTP mode | BSEC_OTP_STATUS SECURE | BSEC_OTP_STATUS INVALID |
|---|---|---|---|
| 0xxx1x1 | OTP-SECURED open_device | 1 | 0 |
| 01x1xxx | |||
| 0xx11xx | |||
| 01xxxx1 | |||
| 1xxx1x1 | OTP-SECURED closed_device | 1 | 0 |
| 11x1xxx | |||
| 1xx11xx | |||
| 11xxxx1 | |||
| All other values | OTP-INVALID | x | 1 |
Note: The OTP mode is computed from BSEC_OTP_DATA0[6:0] only if BSEC_OTP_DISTURBED[0] is equal to zero. Otherwise the OTP mode is forced to OTP-INVALID.
3.3.4 Automatic OTP load on system-reset
On a system-reset, BSEC automatically updates all shadow registers. The OTP mode is determined during this phase.
For OTP-SECURED mode, all OTP words are read and BSEC_OTP_DATA0 to BSEC_OTP_DATA95 are updated.
For OTP-INVALID mode, only BSEC_OTP_DATA0 to BSEC_OTP_DATA31 are updated. BSEC_OTP_DATA32 to BSEC_OTP_DATA95
are set to 0.
BSEC_OTP_STATUS, BSEC_OTP_DISTURBEDx and BSEC_OTP_ERRORx registers are also updated.
fuseok signal is asserted at the end of this phase. This signal is used to release the reset to the SoC.
Note: the OTP word reading starts from word 0, in order for the BSEC to determine the OTP mode from the beginning.
Figure 6. Power-on and initial read timing diagram

The diagram illustrates the power-on and initial read timing sequence, divided into three main sections:
- System power-up sequence: Shows the power-up of VDD and VDD_CORE, followed by the assertion of pwrok, rstcore_n, and pclk (~64 MHz).
- BSEC / SAFMEM interface: Shows the assertion of safmem_pdn, safmem_resetsn, safmem_clk, and fuseok. A timing constraint of >1µs is shown for safmem_pdn, and ~100µs to read SAFMEM is shown for safmem_clk.
- SoC reset sequence: Shows the assertion of Mrepair_done (MEM repair) and (CPU_resetsn) (CPU Boot).
MSv46604V1
3.3.5 OTP words status
- • BSEC_OTP_DISTURBEDx registers (x = 0...2) provide the disturbed status for each OTP word. Any bit set to 1 means that the last reading of the corresponding word has been disturbed. Abnormal reading conditions in circuitry decoding and voltages reading have been detected.
- • BSEC_OTP_ERRORx registers (x = 0...2) provide error status for each OTP word. Any bit set to 1 means that the last read operation of the word concerned revealed a redundancy or ECC check error.
- • BSEC_OTP_WRLOCKEDx registers (x = 0...2) provide a permanent write lock status for each OTP word. Any bit set to 1 means that the corresponding word is permanently locked for writing.
Note: All status registers are updated during the initial read, but the disturbed and error status registers are also updated after each OTP read operation.
The first 32 OTP words implement a scheme to improve OTP robustness against hardware attacks during read as follows: Spare bits 32 to 37 are intended to support ECC and are not
used by 2:1 redundancy. They are therefore written with a simple pattern (for example OTP word address on 5 bits with even parity on the 6th bit). This pattern is checked during every OTP read. If the value read on bit 32 to 37 does not match the expected value, a disturbed information is reported to BSEC_OTP_DISTURBED0 register.
3.3.6 OTP operations
BSEC is clocked by PCLK clock source (single clock for functional and interface registers). An OTP word reading, writing (programming) or locking is called an OTP operation.
One OTP operation is performed via the BSEC_OTP_CONTROL register. It starts when the software writes a valid request to BSEC_OTP_CONTROL register and when no other operation is on going (an OTP operation cannot start until the previous one is finished).
Specific read, programming or permanent write lock operations are detailed below.
OTP read
A read operation consists in updating one of BSEC_OTP_DATA0 to BSEC_OTP_DATA95 registers with the corresponding word from OTP word.
To trigger a read operation, the software must set BSEC_OTP_CONTROL register with the word number given in ADDR field and with PROG bit set to 0.
The software can check the BUSY bit from the BSEC_OTP_STATUS register: Once cleared, this BUSY bit indicates that the read operation is complete.
When the read operation is finished, the BSEC state machine updates the “disturbed” and “error” status registers.
BSEC parameters depending on OTP content, are also updated when the corresponding OTP words are read. The OTP mode is updated when a read operation of the word 0 is performed.
Note: In OTP-INVALID mode, or if bit OTP in BSEC_OTP_LOCK register is set, words 32 to 95 cannot be read. The corresponding shadow registers are not modified.
OTP programming
A programming operation consists in programming one or several bits of an OTP word to one.
OTP word bits may be incrementally programmed to one but bits programmed to one can not be written to zero.
Lower OTP words are bitwise programmable and can be programmed incrementally to one's, upper OTP words have to be programmed in a single operation because of ECC encoding.
To trigger a programming operation, the two following steps are required:
- • set the word value to write in the BSEC_OTP_WRDATA register
- • set the BSEC_OTP_CONTROL register with:
- – word number given in ADDR field
- – PROG bit set to 1
- – LOCK bit set to 0.
The software checks then the BUSY bit from the BSEC_OTP_STATUS register: Once cleared, this BUSY bit indicates that the write operation is complete.
In the same register, the progfail bit is set if the write operation has failed.
Note: a programming operation to an OTP word does not update the corresponding shadow register. If needed, the software can update the shadow register with a read operation. In OTP-INVALID mode, the upper OTP (words 32 to 95) can not be programmed, regardless of bit GPLOCK in BSEC_OTP_LOCK register and regardless of registers BSEC_OTP_SPLOCK2/3.
OTP permanent write lock
A permanent write lock operation consists in forcing an OTP word to be permanently write-locked and not programmable.
For permanent write lock of an OTP word, the software must perform the same sequence as a normal programming operation with bit LOCK in BSEC_OTP_CONTROL register, with field ADDR in BSEC_OTP_CONTROL register and with BSEC_OTP_WRDATA register (see Table 12). After permanent lock programming, it is required to update BSEC_OTP_WRLOCKEDx registers with OTP content. In order to do this, the software must perform a word read with LOCK bit set and word address provided in BSEC_OTP_CONTROL register.
Table 12. OTP permanent write lock
| OTP word to be locked | BSEC control register value | Comment | |
|---|---|---|---|
| ADDR[6:0] | WRDATA[31:0] | ||
| 0 | 0x00 | 0x0000 0003 | Use 2 bits per word for lower OTPs |
| 1 | 0x00 | 0x0000 000C | |
| ... | ... | ... | |
| 7 | 0x00 | 0x0000 C000 | |
| 8 | 0x01 | 0x0000 0003 | |
| ... | ... | ... | |
| 15 | 0x01 | 0x0000 C000 | |
| 16 | 0x02 | 0x0000 0003 | |
| ... | ... | ... | |
| 31 | 0x03 | 0x0000 C000 | |
| 32 | 0x04 | 0x0000 0001 | Use 1 bit per word for upper OTPs |
| 33 | 0x04 | 0x0000 0002 | |
| ... | ... | ... | |
| 47 | 0x04 | 0x0000 8000 | |
| 48 | 0x05 | 0x0000 0001 | |
| ... | ... | ... | |
| 63 | 0x05 | 0x0000 8000 | |
| ... | ... | ... | |
| 95 | 0x07 | 0x0000 8000 | |
3.3.7 JTAG registers
The BSEC_JTAGIN and BSEC_JTAGOUT registers are two 16-bit registers used to communicate between software and JTAG SoC interface. This interface is used during Boot as communication channel to the external JTAG TAP controller.
3.3.8 BSEC lock registers
BSEC_OTP_LOCK register is used to lock access to security sensitive areas with sticky bits. The locks are active until the next system-reset (see Section 3.6.5: BSEC OTP lock configuration register (BSEC_OTP_LOCK)).
3.3.9 Debug control
The software controls the scope of the Debug by BSEC_ENABLE register. The access to this register can be locked until next system-reset with bit DENREG in BSEC_OTP_LOCK register.
BSEC_ENABLE is driving hardware signals to the SoC (such as CoreSight authentication interface and other specific control listed in Table 13).
For more information, see Section 66: Debug support (DBG).
BSEC_ENABLE default values depends on BSEC OTP mode as shown in Table 13.
Table 13. BSEC_ENABLE default values after reset
| Signal | OTP-SECURED open_device | OTP-SECURED closed_device | OTP-INVALID | Comment |
|---|---|---|---|---|
| dbgen | 1 | 0 | 0 | CoreSight authentication |
| niden | 1 | 0 | 0 | CoreSight authentication |
| spiden | 0 | 0 | 0 | CoreSight authentication |
| spniden | 0 | 0 | 0 | CoreSight authentication |
| deviceen | 1 | 0 | 0 | CoreSight authentication |
| dbgswenable | 0 | 0 | 0 | CoreSight authentication |
| hdpen | 0 | 0 | 0 | Hardware debug port tracing |
| cfgsdisable | 0 | 0 | 0 | Disable some of Cortex®-A7 GIC secure access |
| cp15sdisable[1:0] | 0b00 | 0b00 | 0b00 | Disable some of Cortex®-A7 CP15 secure access |
3.3.10 Sticky lock register
Three sticky lock registers are used to control the reload of shadow registers, at OTP word granularity:
- • BSEC_SRLOCKx (x = 0..2) to prevent reloading of selected shadow registers until next system-reset.
- • BSEC_SWLOCKx (x = 0..2) to lock the write to selected shadow register from APB until next system-reset.
- • BSEC_SPLOCKx (x = 0..2) to prevent programming of selected OTP words until next system-reset.
3.4 OTP layout
Lower OTP words (1 Kbits)
The lower OTP bits are stored in shadow registers BSEC_OTP_DATA0 to BSEC_OTP_DATA31 and used for general purpose and non-secret data.
These OTP are protected by a 2:1 redundancy implemented with consecutive even/odd bits.
The specific bits impacting hardware such as OTP modes, engineering, trim and memory repair are located in: CFG0, CFG1 and 8 other words (HW0 to HW7).
Upper OTP words (2 Kbits)
The upper OTP words are stored in shadow registers BSEC_OTP_DATA32 to BSEC_OTP_DATA95 and are reserved to store security sensitive information (secrets keys, certificate, RMA key). These words may also store public non-volatile information.
These upper OTP bits can be used during the Boot process to support advanced security services such as secure secret provisioning (SSP), encrypted Boot or secure storage.
The upper OTP words are protected by ECC and must be used with 32-bit word granularity.
3.4.1 DMA requests
BSEC does not support DMA hardware interface.
3.4.2 TrustZone awareness
BSEC is TrustZone aware. All APB register read and write accesses are checked for permission. Table 14 and Table 15 describe the permission rules depending on OTP mode and register type.
If permission check fails:
- • write access is ignored and SLVERR is signaled on APB bus.
- • read access returns zeros and SLVERR is signaled on APB bus.
| OTP mode | Control registers(1) | Lower OTP shadow registers | Upper OTP shadow registers | |||
|---|---|---|---|---|---|---|
| APB secure | APB non-secure | APB secure | APB non-secure | APB secure | APB non-secure | |
| OTP-SECURED | Yes | No | Yes | No | Yes | No |
| OTP-INVALID | No | No | No | No | No | No |
1. BSEC control registers are any BSEC registers except BSEC_OTP_DATA0 to BSEC_OTP_DATA95.
Table 15. Read access permissions| OTP mode | Control registers(1) | Lower OTP shadow registers | Upper OTP shadow registers | |||
|---|---|---|---|---|---|---|
| APB secure | APB non-secure | APB secure | APB non-secure | APB secure | APB non-secure | |
| OTP-SECURED | Yes | Yes | Yes | Yes | Yes | No |
| OTP-INVALID | Yes | No | No | No | No | No |
1. BSEC control registers are any BSEC registers except BSEC_OTP_DATA0 to BSEC_OTP_DATA95.
3.4.3 BSEC clocking and initialization
BSEC has a single clock domain (PCLK).
- • During read and programming OTPs, PCLK frequency must be ≤ 67 MHz.
- • During write to shadow registers, PCLK frequency must be ≤ 67 MHz.
- • During all other operations, PCLK frequency is not restricted but it is recommended to keep PCLK ≤ 67 MHz for all operations (to avoid frequency changes).
- • BSEC is enforcing the correct sequencing wrt signals: CLK, PDN, and RESETN during power-up and power-down sequences.
3.5 BSEC interrupts
BSEC does not support any interrupt.
3.6 BSEC registers
The peripheral registers are accessed by words (32-bit).
Any write access to read-only registers are silently ignored.
Any attempt to modify locked registers (locked by sticky locks or by lock bits) are silently ignored.
3.6.1 BSEC OTP configuration register (BSEC_OTP_CONFIG)
Address offset: 0x000
Reset value: 0x0000 000E
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | TREAD[1:0] | PRGWIDTH[3:0] | FRC[1:0] | PWRU P | |||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||||
Bits 31:9 Reserved, must be kept at reset value.
Bits 8:7 TREAD[1:0]: set OTP reading current level (default = 0b00)
Bits 6:3 PRGWIDTH[3:0]: OTP programming pulse width (default = 0b0001)
Bits 2:1 FRC[1:0]: OTP clock frequency range selection
00: 10 MHz ≤ frequency ≤ 20 MHz
01: 20 MHz ≤ frequency ≤ 30 MHz
10: 30 MHz ≤ frequency ≤ 45 MHz
11: 45 MHz ≤ frequency ≤ 67 MHz
Note: 0b11 is used by default. OTP initial read is always using an internal OSC with 64 MHz max frequency. Reading OTP at a lower frequency than the range programmed by FRC[1:0] is possible.
Bit 0 PWRUP: OTP power-up control
0: OTP powered down
1: OTP powered up
Note: After the power-on initial read of OTP, BSEC powers down OTP. PWRUP bit is then cleared.
Prior to any read or programming operation, OTP must be powered up again by setting PWRUP bit.
OTP read is qualified by pwrok input signal, which indicates that VDD and VDD1 supplies are in valid range.
3.6.2 BSEC OTP control register (BSEC_OTP_CONTROL)
Address offset: 0x004
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | LOCK | PROG | Res. | ADDR[6:0] | ||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||||
Bits 31:10 Reserved, must be kept at reset value.
- Bit 9 LOCK: OTP permanent word lock control
0: OTP normal word programming/read
1: OTP permanent write lock word programming/read - Bit 8 PROG: OTP operation control
0: OTP read operation
1: OTP program operation - Bit 7 Reserved, must be kept at reset value.
- Bits 6:0 ADDR[6:0]: OTP word address
Actual OTP word address.
Words address are from 0 to 95 for BSEC
Note: the actual OTP word address is adjusted according to the redundancy or ECC scheme.
3.6.3 BSEC OTP write data register (BSEC_OTP_WRDATA)
Address offset: 0x008
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| WRDATA[31:16] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| WRDATA[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 WRDATA[31:0]: OTP write data
3.6.4 BSEC OTP status register (BSEC_OTP_STATUS)
Address offset: 0x00C
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PWR ON | PROG FAIL | BUSY | IN VALID | Res. | SEC URE |
| r | r | r | r | r |
- Bits 31:11 Reserved, must be kept at reset value.
- Bits 10:8 Reserved, must be kept at reset value.
- Bits 7:6 Reserved, must be kept at reset value.
Bit 5 PWRON: OTP power status
- 0: OTP in power off
- 1: OTP in power on
Note: used to poll pwrok signal value
Bit 4 PROGFAIL: last programming status
- 0: OTP successful last programming
- 1: OTP failed last programming
Bit 3 BUSY: OTP operation status
- 0: OTP idle
- 1: OTP operation on going
Note: bit polling is used to determine operation completion.
Bit 2 INVALID: OTP invalid mode
- 0: OTP mode is not OTP-INVALID
- 1: OTP mode is OTP-INVALID
Bit 1 Reserved, must be kept at reset value.
Bit 0 SECURE: OTP secured mode
- 0: OTP mode is not OTP-SECURED
- 1: OTP mode is OTP-SECURED
Note: The reset value of SECURE and INVALID bits depends on OTP mode.
Note: The lowest bits SECURE and INVALID must be used to identify the OTP mode instead of reading shadow register BSEC_OTP_DATA0. Precedence is INVALID > SECURE.
3.6.5 BSEC OTP lock configuration register (BSEC_OTP_LOCK)
Address offset: 0x010
Reset value: 0x0000 0000
| bit_31 | bit_30 | bit_29 | bit_28 | bit_27 | bit_26 | bit_25 | bit_24 | bit_23 | bit_22 | bit_21 | bit_20 | bit_19 | bit_18 | bit_17 | bit_16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | GP | ROM | |||
| LOCK | Res. | DEN | |||||||||||||
| REG | LOCK | OTP | |||||||||||||
| rs | rs | rs | rs | ||||||||||||
| Bit 4 | GPLOCK | : programming sticky lock | |||||||||||||
| Bit 2 | DENREG | : debug enable register sticky lock |
Bits 31:5 Reserved, must be kept at reset value.
Bit 4 GPLOCK: programming sticky lock
- 0: programming allowed
- 1: programming disabled until next system reset
Bit 3 Reserved, must be kept at reset value.
Bit 2 DENREG: debug enable register sticky lock
- 0: BSEC_ENABLE register not locked
- 1: BSEC_ENABLE register locked until next system reset
- Bit 1 ROMLOCK: Upper ROM region read lock
- 0: Upper ROM region is accessible
- 1: Upper ROM region is no more accessible until next system reset
The upper ROM region is accessible only in OTP-SECURED open and OTP-SECURED closed modes and ROMLOCK bit is relevant only in these modes.
- Bit 0 OTP: upper OTP read lock
- 0: upper OTP not locked
- 1: upper OTP cannot be reloaded until next system reset
3.6.6 BSEC debug configuration register (BSEC_DENABLE)
Address offset: 0x014
Reset value: 0x0000 0000
Note: reset value depends on OTP secure mode according to Table 13: BSEC_DENABLE default values after reset on page 178.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | DBG SWEN ABLE | CFGS DIS ABLE | CP15SDISABLE [1:0] | SPNID EN | SPID EN | HDPEN | DE VICE EN | NIDEN | DBG EN | Res. | |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||||
Bits 31:11 Reserved, must be kept at reset value.
- Bit 10 DBGSWENABLE: control self hosted debug enable with signal dbgswenable
- 0: Software access to all debug components is disabled
- 1: Software access to all debug components is enabled
- Bit 9 CFGSDISABLE: write access to secure GIC registers disable with signal cfgsdisable
- 0: no effect, all GIC registers are accessible
- 1: Disable write access to some secure GIC registers
- Bits 8:7 CP15SDISABLE[1:0]: write access to some secure Cortex®-A7 CP15 registers disable
- CPDISABLE[0] applies to CPU0. CPDISABLE[1] applies to CPU1.
- 0: All CP15 registers are accessible
- 1: Disable write access to some secure CP15 registers into Cortex®-A7 corresponding CPU
- Bit 6 SPNIDEN: secure privilege non-invasive debug enable with signal spniden
- 0: secure privilege non-invasive debug disabled
- 1: secure privilege non-invasive debug enabled
- Bit 5 SPIDEN: secure privilege invasive debug enable with signal spniden
- 0: secure privilege invasive debug disabled
- 1: secure privilege invasive debug enabled
- Bit 4 HDPEN: hardware debug port enable with signal hdpn
- 0: hardware debug port disabled
- 1: hardware debug port enabled
Bit 3 DEVICEEN: controls access to debug component via external debug port by signal deviceen
0: disabled
1: enabled
Bit 2 NIDEN: non-invasive debug enable with signal niden
0: non-invasive debug disabled
1: non-invasive debug enabled
Bit 1 DBGEN: debug enable with signal dbgen
0: disabled
1: enabled
Bit 0 Reserved, must be kept at reset value.
3.6.7 BSEC OTP disturbed status register x (BSEC_OTP_DISTURBEDx)
BSEC_OTP_DISTURBED0 is used to report disturbed state of BSEC_OTP_DATA0 to BSEC_OTP_DATA31 (lower 1 Kbits OTP).
BSEC_OTP_DISTURBED1 is used to report disturbed state of BSEC_OTP_DATA32 to BSEC_OTP_DATA63.
BSEC_OTP_DISTURBED2 is used to report disturbed state of BSEC_OTP_DATA64 to BSEC_OTP_DATA95.
Address offset: 0x01C+0x004*x, (x = 0 to 2)
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| DIS[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DIS[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 DIS[31:0]: disturbed status of the corresponding OTP word
0: OTP word has been read correctly
1: OTP word is disturbed, either because of a read with disturbcheck failed or because the spare ECC bits [37:32] for words 0 to 31 do not match expected value. It may result from a possible hardware attack.
Note: ECC bits resilience against hardware attacks is applied only to lower OTP region.
3.6.8 BSEC OTP error status register x (BSEC_OTP_ERRORx)
BSEC_OTP_ERROR0 is used to report error state of BSEC_OTP_DATA0 to BSEC_OTP_DATA31 (lower 1 Kbits OTP which are protected by 2:1 redundancy).
BSEC_OTP_ERROR1 is used to report error state of BSEC_OTP_DATA32 to BSEC_OTP_DATA63 which are protected by 6-bit ECC.
BSEC_OTP_ERROR2 is used to report error state of BSEC_OTP_DATA64 to BSEC_OTP_DATA95 which are protected by 6-bit ECC.
Address offset: 0x034+0x004*x, (x = 0 to 2)
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| ERR[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| ERR[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 ERR[31:0]: error status of the correspond OTP word
0: OTP word has been read correctly
1: OTP word is erroneous, either because 2:1 redundancy has failed for words 0 to 31 or because ECC check has failed for words 32 to 95.
3.6.9 BSEC OTP lock status register x (BSEC_OTP_WRLOCKEDx)
BSEC_OTP_WRLOCKED0 is used to report permanent write lock of BSEC_OTP_DATA0 to BSEC_OTP_DATA31.
BSEC_OTP_WRLOCKED1 is used to report permanent write lock of BSEC_OTP_DATA32 to BSEC_OTP_DATA63.
BSEC_OTP_WRLOCKED2 is used to report permanent write lock of BSEC_OTP_DATA64 to BSEC_OTP_DATA95.
Permanent write lock requires a programming sequence to lock a word (see section: Section 3.3.6: OTP operations on page 176).
Address offset: 0x04C+0x004*x, (x = 0 to 2)
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| WRLOCK[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| WRLOCK[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 WRLOCK[31:0]: permanent word lock status of the correspond OTP word
0: OTP word not locked
1: OTP word permanently locked
3.6.10 BSEC OTP sticky programming lock register x (BSEC_OTP_SPLOCKx)
BSEC_OTP_SPLOCK0 is used to lock the programming of BSEC_OTP_DATA0 to BSEC_OTP_DATA31 until next system-reset
BSEC_OTP_SPLOCK1 is used to lock the programming of BSEC_OTP_DATA32 to BSEC_OTP_DATA63 until next system-reset
BSEC_OTP_SPLOCK2 is used to lock the programming of BSEC_OTP_DATA64 to BSEC_OTP_DATA95 until next system-reset
Attempt to sticky program locked OTP word are silently ignored.
Address offset: 0x064 + 0x004 * x, (x = 0 to 2)
Reset value: 0x0000 0000
| RM0436 3.6.10 | column_2 | Bits 31:0 | column_4 | WRLOCK[31:0] | 0 1 2 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | column_16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 SPLOCK[31:16] | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 SPLOCK[15:0] | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs |
| Bits 31:0 | SPLOCK[31:0] | : lock programming for the OTP word until next power-on reset |
Bits 31:0 SPLOCK[31:0]: lock programming for the OTP word until next power-on reset
0: OTP word not locked
1: OTP word locked for programming
3.6.11 BSEC OTP shadow write sticky lock register x (BSEC_OTP_SWLOCKx)
BSEC_OTP_SWLOCK0 is used to prevent writing to BSEC_OTP_DATA0 to BSEC_OTP_DATA31 until next system-reset.
BSEC_OTP_SWLOCK1 is used to prevent writing to BSEC_OTP_DATA32 to BSEC_OTP_DATA63 until next system-reset.
BSEC_OTP_SWLOCK2 is used to prevent writing to BSEC_OTP_DATA64 to BSEC_OTP_DATA95 until next system-reset.
Write to shadow write locked BSEC_OTP_DATA word are silently ignored.
Note: Writing to OTP word 0 shadow is always prevented.
Address offset: 0x07C + 0x004 * x, (x = 0 to 2)
Reset value: 0x0000 0001, 0x0000 0000, 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| SWLOCK[31:16] | |||||||||||||||
| rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SWLOCK[15:0] | |||||||||||||||
| rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs |
Bits 31:0 SWLOCK[31:0]: lock the writing for the OTP shadow word until next power-on reset.
0: shadow word not locked
1: shadow word locked and cannot be written by software
Note: BSEC_OTP_SWLOCK0 bit 0 is forced to 1 by hardware, writing to this bit has no effect.
3.6.12 BSEC OTP shadow read sticky lock register x (BSEC_OTP_SRLOCKx)
BSEC_OTP_SRLOCK0 is used to prevent reloading of BSEC_OTP_DATA0 to BSEC_OTP_DATA31 until next system-reset.
BSEC_OTP_SRLOCK1 is used to prevent reloading of BSEC_OTP_DATA32 to BSEC_OTP_DATA63 until next system-reset.
BSEC_OTP_SRLOCK2 is used to prevent reloading of BSEC_OTP_DATA64 to BSEC_OTP_DATA95 until next system-reset.
Setting SRLOCK bits or attempt to reload a locked OTP do not clear the corresponding BSEC_OTP_DATAx shadow register.
Note: BSEC_OTP_SRLOCK0 bit 0 is controlled by hardware according to fuse_ok, writing to this bit has no effect.
Address offset: 0x094 + 0x004 * x, (x = 0 to 2)
Reset value: 0x0000 000X, 0x0000 0000, 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| SRLOCK[31:16] | |||||||||||||||
| rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SRLOCK[15:0] | |||||||||||||||
| rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs |
Bits 31:0 SRLOCK[31:0]: prevent reloading of the shadow word from OTP until next power-on reset.
0: OTP word not locked
1: OTP word locked and cannot be reloaded
Note: Reloading of OTP word 0 is prevented after its initial read on a system reset.
3.6.13 BSEC JTAG input register (BSEC_JTAGIN)
Address offset: 0x0AC
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DATA[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 DATA[15:0]: JTAG input data
16-bit copy from JTAG SoC register
3.6.14 BSEC JTAG output register (BSEC_JTAGOUT)
Address offset: 0x0B0
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DATA[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 DATA[15:0]: JTAG output data
16-bit copy to JTAG SoC register
3.6.15 BSEC scratch register (BSEC_SCRATCH)
Address offset: 0x0B4
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| DATA[31:16] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DATA[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 DATA[31:0]: scratch data
This register is a general purpose register.
3.6.16 BSEC shadow register x (BSEC_OTP_DATAx)
The complete description of BSEC_OTP_DATAx register values and properties can be found in Section 4: OTP mapping (OTP).
Several OTP directly impact BSEC behavior, such as:
- • BSEC_OTP_DATA0[6:0] (see Table 11: OTP modes definition on page 174)
Address offset: 0x200+0x004*x, (x = 0 to 95)
Reset value: 0xXXXXXXXX
The reset value depends on the actual OTP programmed value and the OTP mode.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| DATA[31:16] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DATA[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 DATA[31:0]: shadow register read from OTP or written by software (OTP emulation mode)
The update of shadow registers is controlled by other registers and by OTP security mode.
3.6.17 BSEC hardware configuration register (BSEC_HWCFGR)
Address offset: 0xFF0
Reset value: 0x00000014
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ECC_USE[3:0] | SIZE[3:0] | ||||||
| r | r | r | r | r | r | r | r | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:4 ECC_USE[3:0]: protection / redundancy scheme used
0x0: No
0x1: ECC for upper OTP bits used
Others: reserved
Bits 3:0 SIZE[3:0]: OTP block size
0x2: 2 Kbits
0x4: 4 Kbits
0x8: 8 Kbits
Others: reserved
3.6.18 BSEC version register (BSEC_VERR)
Address offset: 0xFF4
Reset value: 0x0000 0011
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MAJREV[3:0] | MINREV[3:0] | ||||||
| r | r | r | r | r | r | r | r | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:4 MAJREV[3:0]: major revision information
Bits 3:0 MINREV[3:0]: minor revision information
3.6.19 BSEC identification register (BSEC_IPIDR)
Address offset: 0xFF8
Reset value: 0x0010 0032
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| ID[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| ID[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 ID[31:0]: BSEC identification
3.6.20 BSEC size identification register (BSEC_SIDR)
Address offset: 0xFFC
Reset value: 0xA3C5 DD04
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| SID[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SID[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 SID[31:0]: BSEC size identification
3.6.21 BSEC register map
Table 16 describes BSEC register map and reset values.
Table 16. BSEC register map and reset values| Offset | Register name and reset value | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x000 | BSEC_OTP_CONFIG | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TREAD | PRGWDTH | FRC | PWRUP | |||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | ||||||||||||||||||||||||
| 0x004 | BSEC_OTP_CONTROL | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | LOCK | PROG | Res. | ADDR[6:0] | ||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||
| 0x008 | BSEC_OTP_WRDATA | WRDATA[31:0] | |||||||||||||||||||||||||||||||
| Reset value | |||||||||||||||||||||||||||||||||
| 0x00C | BSEC_OTP_STATUS | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PWRON | PROGFAIL | BUSY | INVALID | Res. | SECURE |
| Reset value | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||||
| 0x010 | BSEC_OTP_LOCK | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | GPLOCK | Res. | DENREG | ROMLOCK | OTP |
| Reset value | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||||
| 0x014 | BSEC_OTP_DENABLE | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CFGSWENABLE | CFGSDISABLE | CP15SDISABLE[1:0] | SPNIDEN | SPIDEN | HDPEN | DEVICEEN | NIDEN | \DBGEN | Res. | |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||
| 0x01C | BSEC_OTP_DISTURBED0 | DIS[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x020 | BSEC_OTP_DISTURBED1 | DIS[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x024 | BSEC_OTP_DISTURBED2 | DIS[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x034 | BSEC_OTP_ERROR0 | ERR[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
Table 16. BSEC register map and reset values (continued)
| Offset | Register name and reset value | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x038 | BSEC_OTP_ERROR1 | ERR[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x03C | BSEC_OTP_ERROR2 | ERR[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x04C | BSEC_OTP_WRLOCKED0 | WRLOCK[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x050 | BSEC_OTP_WRLOCKED1 | WRLOCK[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x054 | BSEC_OTP_WRLOCKED2 | WRLOCK[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x064 | BSEC_OTP_SPLOCK0 | SPLOCK[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x068 | BSEC_OTP_SPLOCK1 | SPLOCK[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x06C | BSEC_OTP_SPLOCK2 | SPLOCK[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x07C | BSEC_OTP_SWLOCK0 | SWLOCK[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | |
| 0x080 | BSEC_OTP_SWLOCK1 | SWLOCK[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x084 | BSEC_OTP_SWLOCK2 | SWLOCK[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x094 | BSEC_OTP_SRLOCK0 | SRLOCK[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | |
| 0x098 | BSEC_OTP_SRLOCK1 | SRLOCK[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
Table 16. BSEC register map and reset values (continued)
| Offset | Register name and reset value | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x09C | BSEC_OTP_SRLOCK2 | SRLOCK[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x0AC | BSEC_JTAGIN | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DATA[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x0B0 | BSEC_JTAGOUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DATA[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x0B4 | BSEC_SCRATCH | DATA[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x200 | BSEC_OTP_DATA0 | DATA[31:0] | |||||||||||||||||||||||||||||||
| Reset value | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | |
| 0x204 | BSEC_OTP_DATA1 | DATA[31:0] | |||||||||||||||||||||||||||||||
| Reset value | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | |
| 0x37C | BSEC_OTP_DATA95 | DATA[31:0] | |||||||||||||||||||||||||||||||
| Reset value | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | |
| 0xFF0 | BSEC_IPHW_CFGR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ECC_USE [3:0] | SIZE[3:0] | ||||||
| Reset value | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | |||||||||||||||||||||||||
| 0xFF4 | BSEC_VERR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MAJREV [3:0] | MINREV [3:0] | ||||||
| Reset value | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | |||||||||||||||||||||||||
| 0xFF8 | BSEC_IPIDR | ID[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | ||
| 0xFFC | BSEC_SIDR | SID[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | |
Refer to Section 2.5 on page 159 for the register boundary addresses.