6. Boot and security control (BSEC)

6.1 Introduction

The boot and security control (BSEC) peripheral manages the accesses to an embedded one time programmable (OTP) array of fuses. Those fuses are used to store on-chip, non-volatile data like boot and security parameters.

Embedded non-volatile secrets are stored in BSEC upper area that is only accessible while BSEC is operating in its BSEC-closed state. When the BSEC state is BSEC-open, those non-volatile secrets are permanently hidden.

BSEC usage is reserved to the trusted domain CPU, but it can also be accessed by the boot CPU ROM code following a BSEC reset (cold/warm or hot). In addition, the non-trusted CPU can access its own HDPL registers.

Note: In this section, boot CPU refers to the Cortex-A.

6.2 BSEC main features

6.3 BSEC functional description

6.3.1 BSEC block diagram

Figure 15 shows the BSEC block diagram.

Figure 15. BSEC block diagram

Figure 1: Block diagram of the BSEC architecture. The diagram shows the internal components of the BSEC block and its external interfaces. External blocks include JTAG, RCC, TAMP, ROM i/f, Debug & Trace, and SAES. Internal components include JTAG registers, Wrapper logic, Control registers, Shadow registers, Core logic, APB slave i/f, and Fuses Array. The BSEC block is connected to a 32-bit APB bus and has various control signals like bsec_rst, bsec_srst, bsec_hrst, hide_sec, block_sec, unmap, debug_ctrl, obk_hdpl, epoch_sel, epoch, RHUK, and feature_ctrl.

The diagram illustrates the BSEC architecture. The BSEC block is the central component, containing several sub-blocks: JTAG registers, Wrapper logic, Control registers, Shadow registers, Core logic, APB slave i/f, and Fuses Array. The JTAG block is connected to the JTAG registers via a jtaginout signal. The RCC block is connected to the BSEC block via bsec_rst, bsec_srst, and bsec_hrst signals. The TAMP block is connected via hide_sec and block_sec signals. The ROM i/f block is connected via an unmap signal. The Debug & Trace block is connected to the Control registers via debug_ctrl, obk_hdpl, epoch_sel, and epoch signals. The SAES block is connected to the Shadow registers via RHUK and feature_ctrl signals. The APB slave i/f block is connected to the Core logic block. The Fuses Array is connected to the Core logic block. The BSEC block is connected to a 32-bit APB bus via a bidirectional arrow. The APB bus has sec and cid signals. A question mark symbol is placed near the APB bus connection.

Figure 1: Block diagram of the BSEC architecture. The diagram shows the internal components of the BSEC block and its external interfaces. External blocks include JTAG, RCC, TAMP, ROM i/f, Debug & Trace, and SAES. Internal components include JTAG registers, Wrapper logic, Control registers, Shadow registers, Core logic, APB slave i/f, and Fuses Array. The BSEC block is connected to a 32-bit APB bus and has various control signals like bsec_rst, bsec_srst, bsec_hrst, hide_sec, block_sec, unmap, debug_ctrl, obk_hdpl, epoch_sel, epoch, RHUK, and feature_ctrl.

6.3.2 BSEC internal signals

Table 24 describes the user relevant internal signals interfacing the BSEC peripheral.

Table 24. BSEC internal input/output signals

Signal nameSignal typeDescription
bsec_rstDigital inputBSEC cold/warm resets from RCC (see Section 6.3.17).
bsec_srstBSEC hot reset from RCC (see Section 6.3.17).
bsec_hrst
jtaginoutDigital input and outputInterface to JTAG, including clock and reset.
hide_secDigital inputSet by TAMP in case of confirmed tamper (see Section 6.3.17).
block_secDigital inputSet by TAMP in case of potential tamper (see Section 6.3.17).
rhukDigital output256-bit root hardware unique key output to SAES peripheral.

Boot and security control (BSEC) RM0506

250/4831 RM0506 Rev 2

Table 24. BSEC internal input/output signals (continued)

Signal nameSignal typeDescription
obk_hdplDigital outputControl outputs to SAES peripheral to influence generation of DHUK.
epoch_sel
epoch
Digital outputControl outputs to SAES peripheral to influence generation of DHUK.
debug_ctrlDigital outputDevice debug and trace control signals (see Section 6.3.11).
feature_ctrlDigital outputDevice feature control signals (see Section 6.3.12).

6.3.3 BSEC reset and clocks

BSEC flops on the cold reset retain their values through warm reset, while the rest of the system remains in reset until the auto-load process has completed (bsec_done = 1) and fuse output values are stable.

On a POR, the BSEC temporarily emerges from warm reset for the duration of the auto-load process, even if bsec_rst remains asserted, so that the auto-load process can determine values for flops on the cold reset. This means when the device is powered up, the security state is immediately established, so that a debugger may be allowed to perform discovery operations soon after power-up, even if the PAD reset is still being asserted.

Some flops in the BSEC are on bsec_hrst, so they remain in reset until bsec_done is asserted. This reset is asserted while the Cortex-A is under reset.

6.3.4 Organization and use of fuses

Organization of fuses

One-time programmable fuse bits are organized in three groups of 32-bit words, as shown on Figure 16.

Figure 16. BSEC fuse mapping overview

Diagram of BSEC fuse mapping overview showing three regions: Lower OTP, Middle OTP, and Upper OTP (*).

The diagram illustrates the BSEC fuse mapping overview, organized into three regions under the heading "Secure privileged only":

(*) Only accessible in closed state

MSv67517V1

Diagram of BSEC fuse mapping overview showing three regions: Lower OTP, Middle OTP, and Upper OTP (*).

The lower fuses region is used to store non-volatile, non-secret information that may require bitwise update during the life of the product.

The middle fuses region is used to store non-volatile, non-secret information that are written once, in 32-bit words bulk.

The upper fuses region is similar to the middle region, except that it is hidden when in the BSEC-open state (see Section 6.3.7). Hence it is used to store secrets like symmetric keys or private asymmetric keys.

Each fuse word w is either “shadowed” or “unshadowed”, as defined by flag bit SFWw in corresponding BSEC_SFSRx register. A shadowed fuse word is loaded into flops at cold or warm reset, and can be read quickly by software. An unshadowed fuse word is not read out of the fuse memory at reset, then stored permanently in flops. It needs to be reloaded from the fuse memory each time it is needed. See Reading fuses in Section 6.3.5 for details.

Note: The whole OTP space can only be controlled by a secure privileged CPU.
Each individual lower fuse bit is one-time programmable, from 0 to 1. Transitions from 1 to 0 are not possible.

Use of fuses

Figure 17 shows how one-time programmable fuse bits are typically used during the life of a device:

  1. 1. Device being provisioned with root of trust and application keys, on an untrusted OEM production line or using STM32 tools
  2. 2. Device on the final personalization line of the OEM, or in the field
  3. 3. Return material for analysis (RMA) device, decommissioned by OEM or STMicroelectronics to investigate a particular product.

The state is BSEC-open for case (3), and BSEC-closed for cases (1) and (2). For more details on BSEC state transitions, refer to Section 6.3.7.

Figure 17. Device typical lifecycle

Diagram showing the device typical lifecycle across three states: (1) Provisioning, (2) Provisioned, and (3) RMA device. It details the presence of various keys (ST secret key, OEM secret key, Application secret keys, RoT secret keys, RMA OEM key, ST public key, Application public keys, RoT public keys, Root public keys hash, L0 public config, ST read-only) and configurations (reserved, virgin, BSEC reserved) within the Upper OTP, Mid OTP, and Lower OTP regions. A legend indicates Hide protection level (HDPL) values 0, 1, 2, and 3, and defines RoT as Root of trust.

The diagram illustrates the device lifecycle across three states: (1) Provisioning, (2) Provisioned, and (3) RMA device. It is organized into three OTP regions: Upper OTP, Mid OTP, and Lower OTP.

Legend:

MSv67518V2

Diagram showing the device typical lifecycle across three states: (1) Provisioning, (2) Provisioned, and (3) RMA device. It details the presence of various keys (ST secret key, OEM secret key, Application secret keys, RoT secret keys, RMA OEM key, ST public key, Application public keys, RoT public keys, Root public keys hash, L0 public config, ST read-only) and configurations (reserved, virgin, BSEC reserved) within the Upper OTP, Mid OTP, and Lower OTP regions. A legend indicates Hide protection level (HDPL) values 0, 1, 2, and 3, and defines RoT as Root of trust.

Boot levels, with associated isolation enforcements, are described in Section 6.3.10.

Details on fuse usage are described in Section 7: OTP mapping (OTP).

6.3.5 Operations on fuses

Reading fuses

If fuse word w is shadowed (SFWw bit set in corresponding BSEC_SFSRx register), and either the state is BSEC-closed or w < 256, then BSEC_FVRw register is auto-loaded at cold or warm reset with the contents of fuse word w.

If fuse word w is accessible and shadowed, then if SRLOCKw = 0 the contents of fuse w can be reloaded by software into BSEC_FVRw register.

If fuse word w is accessible and unshadowed (SFWw bit cleared in corresponding BSEC_SFSRx register), a read to BSEC_FVRw register returns the content of fuse word w if the last operation on the fuse memory successfully reloaded word w, and if no unshadowed fuse word has been read since that reload.

Each time the application reloads the content of a word stored in fuse memory using BSEC_OTPCR register with PROG bit cleared, BUSY bit and error status should be checked in BSEC_OTPSR (see Section 6.3.6).

Note: Unshadowed fuse word information stored in BSEC_FVRw is cleared as soon as it is read. Only the CPU that requested a fuse word load through BSEC_OTPCR can read the data fetched from fuses.

Writing shadow registers

When a fuse word w = {i+32*x} above word 9 is shadowed (SFWw bit set in BSEC_SFSRx) the application can update its shadowed value by writing directly to BSEC_FVRw register, if SWLOCKw bit is cleared in BSEC_SWLOCKx register.

Note: A shadow register write does not change the underlying fuse value.

Programming fuses

When programming is not blocked, lower fuse words can be blown bit-per-bit at different times. Middle and upper fuses must be programmed 32-bits at a time, only once. As reprogramming middle and upper fuses can let them with invalid content (an ECC error might be reported), it is strongly recommended to set PPLOCK = 1 after the first (and only) programming of the middle and upper fuses.

The procedure for blowing fuse word w is as follows:

  1. 1. Write the value to be blown in BSEC_WDR, then set ADDR = w, PROG = 1 and PPLOCK = 0 in BSEC_OTPCR register.
  2. 2. When BUSY bit is cleared in BSEC_OTPSR, verify that PROGFAIL is cleared. If PROGFAIL is set try again step 1.
  3. 3. Reload the fuse word w using BSEC_OTPCR with PROG bit cleared.
  4. 4. When BUSY bit is cleared in BSEC_OTPSR, verify that BSEC_FVRw register returns the correct value. If not, try again step 1.

Note: OTP bits are initially set to 0 and once a bit is set to 1 it cannot be programmed back to 0 (bit stays at 1). Bitfields with 0s in BSEC_WDR are not programmed, while bitfields with 1s are programmed.

As lower fuse words can be programmed multiple times, when the application requests a specific bit to be programmed to 1 more than once, BSEC does the burning only once.

Permanent program lock (PPLOCK)

The application can make further programming of fuse word w impossible by following the sequence:

  1. 1. Clear BSEC_WDR register, then set ADDR = w, PROG = 1 and PPLOCK = 1 in BSEC_OTPCR register.
  2. 2. When BUSY bit is cleared in BSEC_OTPSR, verify that PROGFAIL is cleared. If PROGFAIL is set try again step 1.
  3. 3. Reload the fuse word w using BSEC_OTPCR with PROG bit cleared.
  4. 4. When BUSY bit is cleared in BSEC_OTPSR, verify that the PPLF in BSEC_OTPSR is set. If not, try again step 1.

There is no register in BSEC to store PPLOCK information. When the application needs to know if a fuse word programming is permanently locked, it has first to perform a reload of this word using BSEC_OTPCR and then check if the PPLF bit in BSEC_OTPSR register is set. See Table 26 for details.

Fuse word locking features

In order to make fuse usage suitable for security, for example to implement the isolation scheme detailed in Section 6.3.10, BSEC has the following locking features:

Sticky program lock (SPLOCK)

The application can prevent fuse word w = {i+32*x} programming until next BSEC reset (cold or warm) by setting the SPLOCKw bit in BSEC_SPLOCKx register.

Sticky write lock (SWLOCK)

The application can make the BSEC_FVRw register of a shadowed fuse word w = {i+32*x} unwritable until next BSEC reset (cold or warm) by setting the SWLOCKw bit in BSEC_SWLOCKx register.

Sticky reload lock (SRLOCK)

Reload of word w = {i+32*x} using BSEC_OTPCR register can be blocked until next BSEC reset (cold or warm) by setting the SRLOCKw bit in BSEC_SRLOCKx register.

When read is sticky-locked, unshadowed fuse words return 0 while shadowed fuse words return their current value (value is not zeroed).

Upper fuses read and write locking (HIDEUP)

When HIDEUP bit is set by hardware in BSEC_OTPSR, neither read nor write are possible to fuse words located in the upper region.

6.3.6 BSEC read and programming status reporting

After a cold and warm reset BSEC performs a first set of OTP reads, reporting the specific status structure defined in Table 25.

Table 25. BSEC initial status reporting structure

Bit offsetBSEC_OTPSR bitNameError flagMeaning when bit is set
0[0]BUSYNoBSEC ongoing operation is not completed.
1[1]INIT_DONEBSEC initialized following a cold or warm reset.
2[2]HIDEUPUpper fuses are not accessible to the application.
4[4]OTPNVIRBSEC is not virgin. This bit should always be set.
5[5]OTPERRYesAt least one error has been detected during the reading of shadowed fuse words, as reported in BSEC_OTPVLDR registers (VLDF bit = 0). The recommended mitigation is to reload the faulty fuse word using BSEC_OTPCR and analyze the 8-bit error structure in BSEC_OTPSR, as detailed below.
6[6]OTPSECAt least one single-error has been corrected during the reading of shadowed fuse words, as reported in BSEC_OTPVLDR registers (VLDF bit = 0). In this case the shadowed fuse word value is correct, hence if OTPSEC = 1 and OTPERR = 0 the application does not need to reload the faulty fuse word.

After any read or programming request, the BUSY bit is cleared, and BSEC reports the specific status structure defined in Table 26. When this structure is different than 0 the read or program operation might have failed, as indicated in the table.

Table 26. BSEC ad-hoc error/status reporting structure

Bit offsetBSEC_OTPSR bitNameFailed operationRetry if error(1)Error description
0[16]PROGFAILWriteYesProgramming operation failed.
1[17]DISTURBReadIntegrity of the fuse value is not guaranteed.
2[18]DEDFDouble error detected. Fuse word is corrupted.
3[19]SECFNoSingle bit error correction.
4[20]PPLFPermanent programming lock detected.
5[21]PPLMFPermanent programming lock information on the two lower fuse values in the array is not identical.
6[22]AMEF(2)YesFuse address mismatch. Fuse value cannot be trusted, and should be read again.
  1. 1. For reads: need to reload the fuse (reported value cannot be trusted). For writes: need to retry the programming operation.
  2. 2. Always be 0 in normal operating conditions.

6.3.7 Lifecycle management

BSEC state initialization

Following a cold or warm reset BSEC can be in the following possible security states, defined in Table 27.

Table 27. BSEC states definition

BSEC states(1)Upper fusesDHUK in SAES(2)Full debugBootROM accessFuse programming
BSEC-openInaccessible(3)Unusableyes(4)partialEnabled
BSEC-closedAccessibleHardware uniqueno(5)full(6)
BSEC-invalidInaccessible(3)UnusablenopartialDisabled
  1. 1. Defined in NVSTATE bitfield in BSEC_SR register (0x16: BSEC-open, 0x0D: BSEC-closed).
  2. 2. Derived hardware unique key in SAES peripheral uses RHUK information from BSEC (see Section 6.3.15).
  3. 3. Cannot be read or programmed by any means (functional or non-functional).
  4. 4. ST engineering modes are also available.
  5. 5. Root of trust application can unlock debug features unless DENLOCK sticky bit is set in BSEC_LOCKR register. ST engineering modes are disabled, by hardware, provided bit 20 of fuse word 124 is blown.
  6. 6. At the end of its execution the boot ROM writes 0xB9D8 FF1F to BSEC_UNMAPR, reverting boot ROM access to partial.

Errors following a BSEC initialization are detailed in Section 6.3.6. Details about reset management can be found in Section 6.3.17.

When neither BSEC-open nor BSEC-closed state (NVSTATE different than 0x16 or 0x0D), the security state is considered invalid, and the most conservative security configuration is applied: that is, fuse programming is disabled, upper fuses read as 0, debug is disabled, ROM is partially unmapped and shadow registers are read only. When NVSTATE = 0x23, a confirmed tamper is active in the device (see Section 6.3.17).

Note: On any reset, including hot reset, if the state is BSEC-closed, the BSEC_UNMAPR register is set to 0xA1C0 DE0D, ensuring the whole boot ROM is visible.

Opening BSEC

BSEC can transition from BSEC-closed to BSEC-open only if the user enters the programmed 128-bit password via JTAG, and then performs a global reset (JTAG + device), clearing all secrets.

The recommended JTAG password programming sequence is:

  1. 1. Write the four password words to upper fuses words 256 to 259 with PPLOCK bit cleared in BSEC_OTPCR. JTAG_PSWD0 is stored in word 256, while JTAG_PSWD3 is stored in word 259.
  2. 2. Read back password value to verify it is correct
  3. 3. Write 0x0 to the same fuse words 256 to 259, with PPLOCK bit set in BSEC_OTPCR. After this, password words cannot be read nor programmed anymore by the application.

The BSEC opening sequence is described below:

  1. 1. Bring the device TAP out of reset, and enter the device secret password sequentially using the JTAG commands 0100 (SET_JTAG_PSWD0), 0101 (SET_JTAG_PSWD1), 0110 (SET_JTAG_PSWD2) then 0111 (SET_JTAG_PSWD3).
  2. 2. Trigger a device reset, without causing a TAP reset. When BSEC emerges from reset, it blows the RMA fuse word with adequate values.
  3. 3. Trigger a TAP reset to destroy any record of the entered password, and after the next cold or warm reset, the BSEC changes its NVSTATE to “BSEC-open” in BSEC_SR. It can be verified using the JTAG command 0011 (READ_SEC). BSEC returns 0x00 BSEC_DENR[19:0] & 0x1 for an BSEC-open device, 0x00 & BSEC_DENR[19:0] & 0x2 for a BSEC-closed device.
  4. 4. Ship the device to STMicroelectronics for field return analysis (RMA)

Once the device has been opened it can be closed again by blowing to 0xF the next unblown 4-bit nibble in BSEC_FVR1 (see Closing BSEC). At most four device re-opening attempts are allowed, regardless of whether they are successful or unsuccessful.

By blowing at least one bit in BSEC_FVR1[27:24], the application can reduce the number of re-opening cycles to only one.

If the application blows at least one bit in BSEC_FVR1[31:28] a closed device can never be re-opened.

The application can also ensure that if a closed device is ever re-opened, it is not possible to subsequently re-close it again. It is done by blowing the permanent programming lock (PPLOCK) of fuse word 1, writing 0x00000000 to BSEC_WDR then writing 0x00006001 to BSEC_OTPCR.

Note: By default BSEC opening password is 0x0. It is advised to change it.

Closing BSEC

BSEC can transition from BSEC-open to BSEC-closed by blowing some bits such that s[7:0] becomes greater than r[7:0], or s[7] = 1. Bytes s[7:0] and r[7:0] are defined as follows:

\[s[7:0] = \text{OR}(\text{BSEC\_FVR1}[31:28]) \mid \text{OR}(\text{BSEC\_FVR1}[27:24]) \mid \dots \mid \text{OR}(\text{BSEC\_FVR1}[3:0])\]
\[r[7:0] = \text{AND}(\text{BSEC\_FVR2}[31:28]) \mid \text{AND}(\text{BSEC\_FVR2}[27:24]) \mid \dots \mid \text{AND}(\text{BSEC\_FVR2}[3:0])\]

With the following conventions:

When the device is being closed, the application can limit re-opening cycles to only one attempt by blowing at least one bit in BSEC\_FVR1[27:24]. To reduce re-opening cycles to zero, the application must blow at least one bit in BSEC\_FVR1[31:28].

Note: For the device to become BSEC-closed, the application must perform a BSEC cold or warm reset.

6.3.8 Epoch registers

There are two 32-bit readable registers, BSEC\_EPOCHR0 and BSEC\_EPOCHR1, that are writable only by boot ROM accesses. It is the responsibility of the boot ROM to read bitwise fuses and populate these registers.

There is a 1-bit programmable register BSEC\_EPOCHSELCR (output on epoch_sel) that, when programmed to n, ensures that BSEC\_EPOCHRn is output on epoch. Both epoch and epoch_sel are wired to the SAES where they influence the generation of DHUK, derived from the RHUK.

Secure software can blow additional bits in the appropriate fuse word to increment an Epoch, thereby making impossible the use of all keys derived from the RHUK prior to that point.

6.3.9 BSEC local access control

Any access that is not both secure and privileged is blocked, with read data zeroed and write accesses ignored. Compartment IDs that are not Trusted domain CPU, debug domain, or boot CPU are also blocked.

When BSEC is used concurrently by trusted domain CPU and boot CPU, secure application should always verify that an unshadowed word reading as zero is a valid value. Indeed, the returned BSEC\_FVR value is correct only if LASTCID value in BSEC\_OTPCR register is correct, for example LASTCID = TDCID value in RIMC_CR for the trusted domain CPU.

When the state is BSEC-closed, password fuse words 256 to 259 reads as zero when permanent programming lock is set for those words.

6.3.10 Temporal isolation in BSEC

In order to enforce isolation between boot stages the running application in each boot level must hide the secrets it was using before proceeding to the next level of code in the boot chain. Such protections must remain until the next boot sequence.

Four boot levels, with its corresponding hide protection level (HDPL), are defined:

Note: The first two levels are always executed by the boot CPU.

Each CPU has its own independent notion of HDPL level. Secure software running on a CPU decides when to advance its HDPL level, but the trusted CPU can also increment the HDPL level of the non-trusted CPU. The Cortex-A reverts to HDPL0 on a hot reset, and the Cortex-M reverts to HDPL0 on a warm reset.

To help enforcing such isolation between boot stages, the ROM code and the application secure boot can use the following temporal isolation hardware capabilities of BSEC:

Note: Details on fuse usage are described in Section 7: OTP mapping (OTP).

The registers BSEC_HDPLMSR and BSEC_HDPLASR determine the current hide protection level of Cortex-M and Cortex-A respectively. The encoding offers physical robustness.

Table 28. Current HDPL coding

HDPL fieldLevel
0xB40
0x511
0x8A2
0x6F3
othersundefined

The BSEC_HDPLMSR register is reset to 0xB4 by bsec_rst. The BSEC_HDPLASR register is reset to 0xB4 by bsec_hrst. These registers are not directly writable. If less than 3, the current level in each can be incremented by writing a value of 0x60B166E7 to BSEC_HDPLMCR or BSEC_HDPLACR respectively.

The 2-bit INCR field of the BSEC_NEXTHDPLMCR (respectively BSEC_NEXTHDPLACR) register is added to the level given by BSEC_HDPLMSR (respectively BSEC_HDPLASR), but clamped at a ceiling of 3. The result is output on obk_hdpl[7:0], provided the SAES currently belongs to that particular CPU. If the SAES is currently not owned by either CPU, the obk_hdpl[7:0] output is set to 0x00.

Table 29. BSEC Next HDPL register usage

obk_hdpl [7:0]INCR field
0123
BSEC_HDPL*SR[HDPL]0 (0xB4)0xB40x510x8A0x6F
1 (0x51)0x510x8A0x6F
2 (0x8A)0x8A0x6F
3 (0x6F)0x6F
others (0xPQ)0xPQ

The obk_hdpl output goes to the SAES where it influences the generation of DHUK, derived from the RHUK. This mechanism allows keys for a later temporal level to be generated in advance.

Cortex-M secure privileged code can always read BSEC_HDPLMSR and can always write BSEC_HDPLMCR and BSEC_NEXTHDPLMCR, even if the Cortex-M is not the trusted domain. Cortex-A secure privileged code can always read BSEC_HDPLASR and can always write BSEC_HDPLACR and BSEC_NEXTHDPLACR, even if the Cortex-A is not the trusted domain.

6.3.11 BSEC debug and trace control

Secure privileged application can select the debug and trace profiles defined on Table 30, writing to BSEC_DENR register. For each profile there are two proposed configuration to BSEC_DENR register:

To increase robustness against attacks, when something other than 0xDEB followed by the Hamming code of the bottom 12-bits is written to bits [31:12], the entire BSEC_DENR register is zeroed. Write to BSEC_DENR register is ignored until next BSEC cold or warm reset if DENLOCK or GWLOCK bit is set in BSEC_LOCKR register

The secure privileged application can decide to delay the opening of debug on a CPU until that CPU has reached a particular HDPL level. This condition is given in the penultimate column of the table below, and is explained after the table.

Table 30. Debug and trace profiles

Debug profileCortex-A35 debugCortex-M33 debugHDPL conditionValue in BSEC_DENR (LSB)
Micro-controller debugSecure(1)Trace-onlyNoYesdbgs_m0xDEB3BA98
Full debug0xDEB3EF98
NonsecureTrace-onlydbg_m0xDEB18298
Full debug0xDEB02398

Table 30. Debug and trace profiles (continued)

Debug profileCortex-A35 debugCortex-M33 debugHDPL conditionValue in BSEC_DENR (LSB)
Application processor debugSecureTrace-onlyYesNodbgs_a0xDEB1F0DC
Full debug0xDEB010FE
NonsecureTrace-onlydbg_a0xDEB0909C
Full debug0xDEB0209E
Global debug (MCUs + CPU)Global secureTrace-onlyYesYesdbgs_a, dbgs_m0xDEB20ADC
Full debug0xDEB3BFFE
Nonsecure, with Cortex-M33 secure debug enabled(2)Trace-onlydbg_a, dbgs_m0xDEB36A9C
Full debug0xDEB38F9E
NonsecureTrace-onlydbg_a, dbs_m0xDEB1529C
Full debug0xDEB0439E
  1. 1. A secure profile can debug code running in secure and nonsecure modes.
  2. 2. Secure application running on application processor cannot be debugged nor traced. Cortex-M33 secure is running protected 3rd party applications, usually not used for security.

The wrapper contains BSEC_DBGMCR and BSEC_DBGACR registers, both reset to zero on the warm reset, and both writeable only once per warm reset. The bytes of these registers are named as follows

Table 31. BSEC debug register legal values

BSEC_DBGMCR
BSEC_DBGACR
Bitfield nameLegal values
31:24AUTH_SEC0x00, 0xB4
23:16AUTH_HDPL0x00, 0xB4, 0x51, 0x8A, 0x6F
15:8UNLOCK0x00, 0xB4
7:0reserved-

The AUTH_HDPL field encodes levels in the same way as the HDPL field of the BSEC_HDPLMSR and BSEC_HDPLASR registers.

Any attempt to write a non-legal byte value into these fields results in a 0x00 being written in that byte field.

The register is forced to zero (writes have no effect) whenever the device is BSEC-open.

On a BSEC-closed device, debug is only possible on Cortex-M if BSEC_DBGMCR[UNLOCK] = 0xB4, and the HDPL level indicated in BSEC_HDPLMSR is non-zero and reaches or surpasses that indicated by BSEC_DBGMCR[AUTH_HDPL]. In this case, secure debug is only possible if BSEC_DBGMCR[AUTH_SEC] = 0xB4. These two conditions are represented by the signals dbg_m and dbgs_m respectively in Table 30. They gate the appropriate CoreSight™ enables.

Similarly, on a BSEC-closed device, debug is only possible on Cortex-A if BSEC_DBGACR[UNLOCK] = 0xB4, and the HDPL level indicated in BSEC_HDPLASR is non-zero and reaches or surpasses that indicated by BSEC_DBGACR[AUTH_HDPL]. In this case, secure debug is only possible if BSEC_DBGACR[AUTH_SEC] = 0xB4. These two conditions are represented by the signals dbg_a and dbgs_a respectively in Table 30. They gate the appropriate CoreSight enables.

The BSEC_AP_UNLOCK register is forced to zero (writes have no effect) whenever the state is BSEC-open. The ap_unlocked output, when taking the value 0xB4, indicates that the debugger can access the Cortex-M33 debug subsystem. It is set to 0xB4 whenever the state is BSEC-open, otherwise it is directly driven by the BSEC_AP_UNLOCK register, which is reset to 0 on a scratch reset.

A rising edge on hide_sec (a confirmed tamper) resets these registers to zero, and closes debug. They are not writeable until the next cold or warm reset.

6.3.12 Device features control

Device features are controlled through read-only shadowed fuse word 9. See Section 7: OTP mapping (OTP) for details.

6.3.13 Scratch registers

The four BSEC_SCRATCHRx registers are only reset by a cold boot. They are therefore useful to store values that must remain persistent for the application across warm boots.

The eight BSEC_WOSCRx registers are only reset by a cold or warm boot. They are therefore useful to store values that must remain persistent for the application across hot boots.

Note: BSEC_WOSCRx registers are write once.

6.3.14 JTAG registers

The BSEC_JTAGINR and BSEC_JTAGOUTR registers are available to facilitate communication between the application (for example ROM) and the debug tools connected through the JTAG interface.

6.3.15 STM32 root hardware unique key (RHUK)

BSEC stores a root HUK that has been programmed by STMicroelectronics during the device manufacturing. A successful provisioning is indicated with HVALID bit set in BSEC_SR register.

The value of this key is obtained from the RNG peripheral of the device, without disclosure to the outside world. This key cannot be read or programmed by any secure application nor debugger.

When BSEC detects an integrity issue while reading the key information from non-volatile memory, or when application sets the sticky HKLOCK bit in BSEC_LOCKR, the key is indicated as invalid. When the key is invalid the SAES peripheral uses a default fixed value.

6.3.16 BSEC error management

Shadowed fuse word automatic readout errors

After a cold or warm reset, shadowed fuse words are automatically loaded into BSEC_FVR registers. At the end of this process, when INIT_DONE is set in BSEC_OTPSR, additional error information can be found in this register, as described in Section 6.3.6.

Individual fuse loading errors

Upon each fuse loading from OTP memory array, an 8-bit error structure in BSEC_OTPSR register is updated to tell the application if there was a problem with this particular fuse load. This structure is defined in Section 6.3.6.

6.3.17 BSEC tamper response mechanisms

This device uses tamper-detection and response mechanisms that can make it immediately inoperable, resulting in the automatic and immediate erasure of any sensitive data that may be stored in the device. The device also supports the concept of potential tamper event, where the device secrets are blocked while application software verifies that such tamper event is confirmed or not.

BSEC manages above mechanisms in the following way:

Above limitations are deactivated when the application clears the active tamper source(s) in TAMP peripheral. See Section 64: Tamper and backup registers (TAMP) for details.

Note: While tamper events are active the boot CPU can always execute the application firmware following an application reset or an exit from Standby for the boot CPU.

6.4 BSEC interrupts

BSEC does not support any interrupt.

6.5 BSEC registers

Those registers are accessible through the register interface of the BSEC peripheral.

If security and privileged policy allows it, when the debug domain feature is activated, the debug domain traffic goes through, regardless of any CID filtering policy.

6.5.1 BSEC fuse word w value register (BSEC_FVRw)

Address offset: 0x000 + 0x4 * w, (w = 0 to 375)

Reset value: 0xXXXXX XXXX

Note: The reset value is 0x0000 0000 if the fuse word is unshadowed, defined by the fuse value if the fuse word is shadowed.

Secure privileged read and write only. Illegal reads return 0, illegal writes are ignored.

See the bitfield description for further details on fuse word accessibility.

If fuse word is not shadowed, only the CPU that reloads fuse information using BSEC_OTPCR register can read the actual bit values (the register returns 0 otherwise). See LASTCID in BSEC_OTPCR for details.

31302928272625242322212019181716
FV[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
FV[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 FV[31:0]: fuse value

If fuse word {w} is shadowed (SFW{w} bit set in corresponding BSEC_SFSRx register), and either the state is BSEC-closed or {w} < 256, then this register is auto-loaded at cold or warm reset with the contents of fuse word w.

If fuse word {w} is accessible and shadowed, then:

If fuse word {w} is accessible and unshadowed (SFW{w} bit cleared in corresponding BSEC_SFSRx register), writes are ignored and provided:

then a read to this register returns the content of fuse word {w} (otherwise it returns 0).

If the fuse word {w} is inaccessible, then writes are ignored and reads return 0.

Unshadowed fuse word information stored in this register is cleared as soon as it is read.

When the state is BSEC-closed:

6.5.2 BSEC sticky programming lock register x (BSEC_SPLOCKx)

Address offset: 0x800 + 0x4 * x (x = 0 to 11)

Reset value: 0x0000 0000

Secure privileged read and write only. Illegal reads return 0, illegal writes are ignored. Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
SPLOCK{i + 32 * x}
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs
1514131211109876543210
SPLOCK{i + 32 * x}
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs

Bits 31:0 SPLOCK{i + 32 * x}: Sticky programming lock for word {i + 32 * x} (i = 0 to 31)

Setting this bit prevents permanent programming for the fuse word {i + 32 * x} until next cold or warm reset.

0: Fuse word {i + 32 * x} can be burnt in fuse memory array

1: Attempt to program fuse word {i + 32 * x} in OTP memory array is silently ignored

While BUSY is set in BSEC_OTPSR, writes have no effect, and reads return 0.

6.5.3 BSEC sticky write lock register x (BSEC_SWLOCKx)

Address offset: 0x840 + 0x4 * x (x=0 to 11)

Reset value: 0x0000 0000

Secure privileged read and write only. Illegal reads return 0, illegal writes are ignored. Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
SWLOCK{i + 32 * x}
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs
1514131211109876543210
SWLOCK{i + 32 * x}
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs

Bits 31:0 SWLOCK{i + 32 * x}: sticky write lock for shadow register {i + 32 * x} (i = 0 to 31)

When fuse word {i + 32 * x} is shadowed, setting this bit prevents the writing of the shadow register of this fuse word until next cold or warm reset.

0: Write to shadow register BSEC_FVR{i + 32 * x} is allowed

1: Writes to shadow register BSEC_FVR{i + 32 * x} are silently ignored

While BUSY is set in BSEC_OTPSR, writes have no effect, and reads return 0.

6.5.4 BSEC sticky reload lock register x (BSEC_SRLOCKx)

Address offset: 0x880+0x4*x (x = 0 to 11)

Reset value: 0x0000 0000

Secure privileged read and write only. Illegal reads return 0, illegal writes are ignored. Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
SRLOCK{i+32*x}
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs
1514131211109876543210
SRLOCK{i+32*x}
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs

Bits 31:0 SRLOCK{i+32*x}: sticky reload lock for fuse word {i+32*x} (i = 0 to 31)

Setting this bit locks reloading of fuse word {i+32*x} from the OTP memory array until next cold or warm reset.

0: Fuse word {i+32*x} loading through BSEC_OTPCR is authorized.

1: Fuse word {i+32*x} loading through BSEC_OTPCR is denied until next cold or warm reset.

While BUSY is set in BSEC_OTPSR, writes have no effect, and reads return 0.

6.5.5 BSEC OTP valid register x (BSEC_OTPVLDRx)

Address offset: 0x8C0+0x4*x (x = 0 to 11)

Reset value: 0x0000 0000

Secure privileged read only (return 0 otherwise). Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
VLDF{i+32*x}
rrrrrrrrrrrrrrrr
1514131211109876543210
VLDF{i+32*x}
rrrrrrrrrrrrrrrr

Bits 31:0 VLDF{i+32*x}: Valid flag for shadow register {i+32*x} (i = 0 to 31)

This bit represents the validity of the last reload of fuse word {i+32*x}.

0: An error occurred while fuse word {i+32*x} was last reloaded. The value read from BSEC_FVR{i+32*x} register cannot be relied on.

1: Last reload of fuse word {i+32*x} was done without error.

Each VLDF bit is updated when BSEC or the allowed application reloads corresponding fuse word from the OTP array.

6.5.6 BSEC shadowed fuses status register x (BSEC_SFSRx)

Address offset: 0x940 + 0x4 * x (x = 0 to 11)

Reset value: 0x0001 EBFF (SFSR0)

Reset value: 0xFF00 000F (SFSR3)

Reset value: 0x0000 000F (SFSR8)

Reset value: 0xFF00 0000 (SFSR11)

Reset value: 0x0000 0000 (others)

Secure privileged read-only (return 0 otherwise). Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
SFW{i + 32 * x}
rrrrrrrrrrrrrrrr
1514131211109876543210
SFW{i + 32 * x}
rrrrrrrrrrrrrrrr

Bits 31:0 SFW{i + 32 * x}: Shadowed fuse word {i + 32 * x} (i = 0 to 31)

This bit indicates whether fuse word {i + 32 * x} is shadowed or not.

0: Fuse word {i + 32 * x} is not shadowed. Fuse value must be reloaded using BSEC_OTPCR before reading BSEC_FVR{i + 32 * x} register.

1: Fuse word is shadowed in BSEC_FVR{i + 32 * x} register. Reloading the fuse value using BSEC_OTPCR is only required if the fuse value changed since the last BSEC cold or warm reset.

6.5.7 BSEC OTP control register (BSEC_OTPCR)

Address offset: 0xC04

Reset value: 0x0000 0000

Writing to this register causes an access to be made to the fuse memory.

Secure privileged read and write only. Illegal reads return 0, illegal writes are ignored. Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LASTCID[2:0]Res.Res.Res.
rrr
1514131211109876543210
Res.PP LOCKPROGRes.Res.Res.Res.ADDR[8:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:22 Reserved, must be kept at reset value.

Bits 21:19 LASTCID[2:0]: Last CID

This read-only bitfield returns the compartment ID of the CPU that performed the last write in this register.

Bits 18:15 Reserved, must be kept at reset value.

Bit 14 PPLOCK: Permanent programming lock

When this bit is set together with PROG bit, no further write to this fuse word is possible.

0: Fuse word at address ADDR[8:0] is programmed normally.

1: Fuse word at address ADDR[8:0] is locked, preventing further modifications.

Permanent programming lock mechanism is immutable, as it is committed in the fuse memory.

Bit 13 PROG: Fuse word programming

This bit determines whether BSEC operation is a read or a write. If a write is selected, the data stored in BSEC_WDR is programmed in the fuse word indexed by ADDR bitfield.

0: Fuse word read operation is required

1: Fuse word programming operation is required

While BUSY is set in BSEC_OTPSR, writes to PROG bit have no effect.

Bits 12:9 Reserved, must be kept at reset value.

Bits 8:0 ADDR[8:0]: Fuse word address

This bitfield represents the address of the fuse word in the OTP memory array.

When a lower fuse address is selected two fuse words are addressed by BSEC.

When fuse words 376 to 383 are selected, read or programming requests are denied.

When fuse words 364 to 375 are selected, programming requests are ignored.

6.5.8 BSEC write data register (BSEC_WDR)

Address offset: 0xC08

Reset value: 0x0000 0000

Secure privileged write only. Any reads return 0. Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
WRDATA[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
WRDATA[15:0]
wwwwwwwwwwwwwwww

Bits 31:0 WRDATA[31:0]: OTP write data

The value written to this register can be written to fuse memory. This happens when the BSEC_OTPCR register is written with the PROG bit set.

When a lower fuse address is selected in BSEC_OTPCR (ADDR=0x0 to 0x3F), two fuse words are programmed by BSEC (one fuse word is programmed otherwise).

While BUSY is set in BSEC_OTPSR, writes to this register have no effect.

ST logo
ST logo

6.5.9 BSEC scratch register x (BSEC_SCRATCHRx)

Address offset: 0xE00 + 0x4 * x (x = 0 to 3)

Reset value: 0x0000 0000

This register is reset when bsec_srst is asserted.

Secure privileged read and write only. Illegal reads return 0, illegal writes are ignored. Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
SDATA[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SDATA[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 SDATA[31:0]: Scratch data

This register can be used to store values that needs to be persistent across warm reset.

6.5.10 BSEC lock register (BSEC_LOCKR)

Address offset: 0xE10

Reset value: 0x0000 0000

Secure privileged read and write only. Illegal reads return 0, illegal writes are ignored. Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HK LOCKDEN LOCKGW LOCK
rsrsrs

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 HKLOCK: Hardware key lock

0: Derived hardware unique key (DHUK) in SAES peripheral is usable if HVALID is set in BSEC_SR

1: Derived hardware unique key (DHUK) in SAES peripheral is not usable.

Once set, this bit is cleared only by BSEC cold or warm reset.

Bit 1 DENLOCK: Debug enable register sticky lock

0: Writes to BSEC_DENR register are allowed

1: Writes to BSEC_DENR register are ignored

Once set, this bit is cleared only by BSEC cold or warm reset.

Bit 0 GWLOCK: Global write lock

0: Writes to BSEC registers are allowed

1: Writes to BSEC registers are ignored (fuse programming and fuse reload disabled)

Once set, this bit is cleared only by BSEC cold or warm reset.

6.5.11 BSEC JTAG input register (BSEC_JTAGINR)

Address offset: 0xE14

Reset value: 0x0000 0000

Secure privileged read only (return 0 otherwise). Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
JDATAIN[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
JDATAIN[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 JDATAIN[31:0]: JTAG input data Reads give the last input value from the JTAG interface

6.5.12 BSEC JTAG output register (BSEC_JTAGOUTR)

Address offset: 0xE18

Reset value: 0x0000 0000

Secure privileged write only (write ignored otherwise). Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
JDATAOUT[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
JDATAOUT[15:0]
wwwwwwwwwwwwwwww

Bits 31:0 JDATAOUT[31:0]: JTAG output data Application can write any value in this field to be output on the JTAG interface.

6.5.13 BSEC debug enable register (BSEC_DENR)

Address offset: 0xE20

Reset value: 0xDEB3 CFFF (BSEC-open)

Reset value: 0x0000 0000 (not BSEC-open)

When something other than 0xDEB is written to bits [31:20], the entire register is zeroed.
When the correct SECDED hamming code of bits [11:0] is not written to bits [17:12], then BSEC_DENR[19:0] is zeroed.

Secure privileged read and write only. Illegal reads return 0, illegal writes are ignored. Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
PATTERN[11:0]Res.Res.R
CODE5
R
CODE4
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
R
CODE3
R
CODE2
R
CODE1
R
CODE0
SPNID
ENM
SPIDE
NM
NIDEN
M
DBGE
NM
DBGS
WEN
SPNID
ENA
SPIDE
NA
HDPENDEVIC
EEN
NIDEN
A
DBGE
NA
Res.
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:20 PATTERN[11:0]: Pattern to validate write data value

If this is written with anything other than 0xDEB, then BSEC_DENR is zeroed.

Bits 19:18 Reserved, must be kept at reset value.

Bit 17 RCODE5: SECDED code

Set this to what is being written to bit 11, otherwise BSEC_DENR[19:0] is zeroed.

Bit 16 RCODE4: SECDED code

Set this to the XOR of what is being written to bits 10, 9, 8, 7, 6, 5, 4, otherwise BSEC_DENR[19:0] is zeroed.

Bit 15 RCODE3: SECDED code

Set this to the XOR of what is being written to bits 10, 9, 8, 7, 3, 2, 1, otherwise BSEC_DENR[19:0] is zeroed.

Bit 14 RCODE2: SECDED code

Set this to the XOR of what is being written to bits 10, 9, 6, 5, 3, 2, 0, otherwise BSEC_DENR[19:0] is zeroed.

Bit 13 RCODE1: SECDED code

Set this to the XOR of what is being written to bits 11, 10, 8, 6, 4, 3, 1, 0, otherwise BSEC_DENR[19:0] is zeroed.

Bit 12 RCODE0: SECDED code

Set this to the XOR of what is being written to bits 17, 16, 15, 14, 13, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, otherwise BSEC_DENR[19:0] is zeroed.

Bit 11 SPNIDENM: Secure privilege non-invasive debug enable for Cortex-M

0: Secure privilege non-invasive debug is disabled for Cortex-M

1: Secure privilege non-invasive debug is enabled for Cortex-M

Bit 10 SPIDENM: Secure privilege invasive debug enable for Cortex-M

0: Secure privilege invasive debug is disabled for Cortex-M

1: Secure privilege invasive debug is enabled for Cortex-M

6.5.14 BSEC unmap register (BSEC_UNMAPR)

Address offset: 0xE24

Reset value: 0XXXXX XXXX

Note: The reset value is 0xA1C0 DE0D on a BSEC-closed device, 0xFFFF FFFF on a BSEC-open device.

Register bits cannot be cleared by application, they can only be set to 1.

Secure privileged read and write only. Illegal reads return 0, illegal writes are ignored. Only BootROM code can access.

31302928272625242322212019181716
UNMAP[31:16]
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs
1514131211109876543210
UNMAP[15:0]
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs

Bits 31:0 UNMAP[31:0]: Unmap key

If this bitfield equals 0xA1C0 DE0D, the whole ROM is visible, else ROM is partially hidden.

6.5.15 BSEC status register (BSEC_SR)

Address offset: 0xE40

Reset value: 0x0000 0000

Secure privileged read only (return 0 otherwise). Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
NVSTATE[5:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rrrrrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HVALIDRes.
r

Bits 31:26 NVSTATE[5:0]: Non-volatile state

0x16: BSEC-open state

0x0D: BSEC-closed state

0x7: BSEC-invalid state

0x23: BSEC-invalid state, with an active confirmed tamper triggered in the device

The BSEC state is evaluated each time INIT_DONE is set in BSEC_OTPSR.

For more information, refer to Section 6.3.7: Lifecycle management

Bits 25:2 Reserved, must be kept at reset value.

Bit 1 HVALID: Hardware key valid

0: Derived hardware unique key (DHUK) feature cannot be used in SAES peripheral.

1: Derived hardware unique key (DHUK) feature can be used in SAES peripheral.

Bit 0 Reserved, must be kept at reset value.

6.5.16 BSEC OTP status register (BSEC_OTPSR)

Address offset: 0xE44

Reset value: 0x0000 0000

This register is refreshed each time a fuse operation is triggered through BSEC_OTPCR.

Secure privileged read only (return 0 otherwise). Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.AMEFPPLMFPPLFSECFDEDFDISTURBFPROGFAIL
rrrrrrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.OTPSECOTPERROTPNVIRRes.HIDEUPINITDONEBUSY
rrrrrr

Bits 31:23 Reserved, must be kept at reset value.

Bit 22 AMEF: Addresses mismatch error flag

This bit is set when the address used by BSEC to read a fuse word is different from the programmed address (either by BSEC or by the application). Such event should never happen in normal BSEC operations.

Bit 21 PPLMF: Permanent programming lock mismatch flag

This bit is set when the two words constituting a lower fuse word are reporting different permanent programming lock statuses after BSEC reset or after the latest read.
For more details about permanent programming lock, refer to PPLOCK in BSEC_OTPCR.

Bit 20 PPLF: Permanent programming lock flag

This bit is set when the most recently read word is detected permanently locked.
For more details about permanent programming lock, refer to PPLOCK in BSEC_OTPCR.

Bit 19 SECF: Single error correction flag

This bit is set when a single-bit-error correction is detected after BSEC reset or after the latest read.

Bit 18 DEDF: Double error detection flag

This bit is set when a double error is detected after BSEC reset or after the latest read.
When DEDF bit is set after reading fuse word w, the value in BSEC_FVRw is the one read from OTP memory.

Bit 17 DISTURBF: Disturb flag

This bit is set when an unexpected error occurred after BSEC reset or after the latest read.
When DISTURBF bit is set after reading fuse word w, the value in BSEC_FVRw is the one read from OTP memory.

Bit 16 PROGFAIL: Programming failed

This bit is set when last OTP programming by BSEC failed.

Bits 15:7 Reserved, must be kept at reset value.

Bit 6 OTPSEC: OTP with single error correction

This bit is set when at least one single-error correction is detected during BSEC reset operations. In this case shadow registers are usable.

Bit 5 OTPERR: OTP with error

This bit is set when at least one error is detected during BSEC reset operations.

Bit 4 OTPNVIR: OTP not virgin

This bit is set when first fuse word 0 is detected non-0 after BSEC reset operations.

Bit 3 Reserved, must be kept at reset value.

Bit 2 HIDEUP: Hide upper fuse words

This bit is set when application secret fuse words 256 to 383 becomes physically inaccessible, that is functionally hidden fuse words read as 0 and programming requests are ignored.

Bit 1 INIT_DONE: Initialization done

This bit is set when BSEC reset operations are completed. All shadowed fuses are readable in BSEC_FVRw registers, and status bits in BSEC_SR and BSEC_OTPSR are up to date.

Bit 0 BUSY: Busy flag

0: BSEC is idle.

1: BSEC is busy.

6.5.17 BSEC epoch register (BSEC_EPOCHRx)

Address offset: 0xE80+0x4*x (x = 0 to 1)

Reset value: 0x0000 0000

Writeable by boot ROM only, readable by secure privileged trusted domain or BootROM code only. Illegal reads return 0, illegal writes are ignored.

31302928272625242322212019181716
EPOCH[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
EPOCH[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrs

Bits 31:0 EPOCH[31:0]: epoch

This value is wired out to the SAES peripheral, depending on the EPOCH_SEL bit in BSEC_EPOCHSELCR.

6.5.18 BSEC epoch selection control register (BSEC_EPOCHSELCR)

Address offset: 0xE88

Reset value: 0x0000 0000

Secure privileged read and write only. Illegal reads return 0, illegal writes are ignored.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EPOCH_SEL
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 EPOCH_SEL: Selection of the epoch value to be sent to the SAES

0: SAES peripheral uses BSEC_EPOCHR0 as EPOCH value.

1: SAES peripheral uses BSEC_EPOCHR1 as EPOCH value.

6.5.19 BSEC debug control register for Cortex-M (BSEC_DBGMCR)

Address offset: 0xE8C

Reset value: 0x0000 0000

Secure privileged read and write by trusted domain only. Writeable only on a BSEC-closed device, once per warm reset. Illegal reads return 0, illegal writes are ignored. Reset to zero on bsec_rst (warm reset).

The AUTH_HDPL byte field indicates a temporal isolation level, as follows: the value 0xB4 means level 0, the value 0x51 means level 1, the value 0x8A means level 2, and the value 0x6F means level 3. All other byte values are undefined.

On a BSEC-closed device, debug is only possible on Cortex-M

if BSEC_DBGMCR[UNLOCK] = 0xB4, and the HDPL level indicated in BSEC_HDPLMSR is non-zero and reaches or surpasses that indicated by BSEC_DBGMCR[AUTH_HDPL]. In this case, secure debug is only possible if BSEC_DBGMCR[AUTH_SEC] = 0xB4.

31302928272625242322212019181716
AUTH_SEC[7:0]AUTH_HDPL[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
UNLOCK[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwrw

Bits 31:24 AUTH_SEC[7:0]:

0xB4: Cortex-M secure debug possible when UNLOCK = 0xB4 and the level indicated in BSEC_HDPLMSR is greater than or equal to the level indicated by AUTH_HDPL.

Others: Cortex-M secure debug not possible (provided state is not BSEC-open)

Bits 23:16 AUTH_HDPL[7:0]: level at which debug may be opened.

0xB4: Level 0
0x51: Level 1
0x8A: Level 2
0x6F: Level 3
Others: undefined

Bits 15:8 UNLOCK[7:0]:

0xB4: Cortex-M nonsecure debug possible when the level indicated in BSEC_HDPLMSR is greater than or equal to the level given by AUTH_HDPL
Others: Cortex-M debug not possible (provided state is not BSEC-open)

Bits 7:0 Reserved, must be kept at reset value.

6.5.20 BSEC AP unlock (BSEC_AP_UNLOCK)

Address offset: 0xE90

Reset value: 0x0000 0000

Secure privileged read and write only. Writeable only on a BSEC-closed device, once per warm reset. Illegal reads return 0, illegal writes are ignored. Reset to zero on bsec_srst (cold reset).

When the state is BSEC-open, the ap_unlocked output to the DBG_MCU block is set to 0xB4. and the register is zeroed. When the BSEC state is not BSEC-open, it takes the value of the 8-bit UNLOCK field.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.UNLOCK[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 UNLOCK[7:0]:

0xB4: Unlock the DBG_MCU AP interface.
Others: Do not unlock.

6.5.21 BSEC HDPL for Cortex-M status register (BSEC_HDPLMSR)

Address offset: 0xE94

Reset value: 0x0000 00B4

Secure privileged read only, by trusted domain or Cortex-M. Illegal reads return 0, writes are ignored. Reset to 0xB4 on bsec_rst (warm reset).

When coding a value of less than 3, it can be incremented by writing 0x60B166E7 to BSEC_HDPLMCR.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.HDPL[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 HDPL[7:0]: current HDPL for Cortex-M

6.5.22 BSEC HDPL for Cortex-M control register (BSEC_HDPLMCR)

Address offset: 0xE98

Reset value: 0x0000 0000

Secure privileged write only by trusted domain or Cortex-M. Illegal reads return 0, writes are ignored.

When BSEC_HDPLMSR codes a value of less than 3, BSEC_HDPLMSR can be incremented by writing 0x60B166E7 to BSEC_HDPLMCR.

31302928272625242322212019181716
INCR_HDPL[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
INCR_HDPL[15:0]
wwwwwwwwwwwwwwww

Bits 31:0 INCR_HDPL[31:0]: Increment HDPL for Cortex-M

When HDPL is less than 3, writing 0x60B1 66E7 increments HDPL by one in BSEC_HDPLMSR.

Otherwise, writes are ignored. Reads return zero.

6.5.23 BSEC next HDPL control register for Cortex-M (BSEC_NEXTHDPLMCR)

Address offset: 0xE9C

Reset value: 0x0000 0000

Secure privileged read and write only, by trusted domain or Cortex-M. Illegal reads return 0, writes are ignored. Reset to 0 on bsec_rst (warm reset).

This value determines the amount to add to the level indicated by BSEC_HDPLMSR to output to the SAES on obk_hdpl

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.INCR[1:0]
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bits 1:0 INCR[1:0]: Increment

Amount to add to the level indicated by BSEC_HDPLMSR to generate obk_hdpl[7:0] output (clamped at 3).

6.5.24 BSEC debug control register for Cortex-A (BSEC_DBGACR)

Address offset: 0xEAC

Reset value: 0x0000 0000

Secure privileged access by trusted domain only. Writeable only on a BSEC-closed device, once per warm reset. Illegal reads return 0, illegal writes are ignored. Reset to zero on bsec_rst (warm reset).

The AUTH_HDPL byte field indicates a temporal isolation level, as follows: the value 0xB4 means level 0, the value 0x51 means level 1, the value 0x8A means level 2, and the value 0x6F means level 3. All other byte values are undefined.

On a BSEC-closed device, debug is only possible on Cortex-A if

BSEC_DBGACR[UNLOCK] = 0xB4, and the HDPL level indicated in BSEC_HDPLASR is non-zero and reaches or surpasses that indicated by BSEC_DBGACR[AUTH_HDPL]. In this case, secure debug is only possible if BSEC_DBGACR[AUTH_SEC] = 0xB4.

31302928272625242322212019181716
AUTH_SEC[7:0]AUTH_HDPL[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
UNLOCK[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwrw

Bits 31:24 AUTH_SEC[7:0]:

0xB4: Cortex-A secure debug possible when UNLOCK = 0xB4 and the level indicated in BSEC_HDPLASR is greater than or equal to the level indicated by AUTH_HDPL
Others: secure debug not possible (provided state is not BSEC-open)

Bits 23:16 AUTH_HDPL[7:0]: level at which Cortex-A debug may be opened.

0xB4: Level 0
0x51: Level 1
0x8A: Level 2
0x6F: Level 3
Others: undefined

Bits 15:8 UNLOCK[7:0]:

0xB4: Cortex-A nonsecure debug possible when the level indicated in BSEC_HDPLASR is greater than or equal to the level given by AUTH_HDPL
Others: Cortex-A debug not possible (provided state is not BSEC-open)

Bits 7:0 Reserved, must be kept at reset value.

6.5.25 BSEC HDPL for Cortex-A status register (BSEC_HDPLASR)

Address offset: 0xEB4

Reset value: 0x0000 00B4

Secure privileged read only, by trusted domain or Cortex-A. Illegal reads return 0, writes are ignored. Reset to 0xB4 on bsec_hrst (hot reset).

When coding a value of less than 3, it can be incremented by writing 0x60B166E7 to BSEC_HDPLACR.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.HDPL[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 HDPL[7:0]: current HDPL for Cortex-A

0xB4: Level 0
0x51: Level 1
0x8A: Level 2
0x6F: Level 3
Others: undefined

6.5.26 BSEC HDPL for Cortex-A control register (BSEC_HDPLACR)

Address offset: 0xEB8

Reset value: 0x0000 0000

Secure privileged write only, by trusted domain or Cortex-A. Illegal reads return 0, writes are ignored.

When BSEC_HDPLASR codes a value of less than 3, BSEC_HDPLASR can be incremented by writing 0x60B166E7 to BSEC_HDPLACR.

31302928272625242322212019181716
INCR_HDPL[31:16]
wwwwwwwwwwwwwwww
1514131211109876543210
INCR_HDPL[15:0]
wwwwwwwwwwwwwwww

Bits 31:0 INCR_HDPL[31:0]: Increment HDPL for Cortex-A

When HDPL is less than 3, writing 0x60B1 66E7 increments HDPL by 1 in BSEC_HDPLASR.

Otherwise, writes are ignored. Reads return zero.

6.5.27 BSEC next HDPL control register for Cortex-A (BSEC_NEXTHDPLACR)

Address offset: 0xEBC

Reset value: 0x0000 0000

Secure privileged read and write only, by trusted domain or Cortex-A. Illegal reads return 0, writes are ignored. Reset to zero on bsec_hrst (hot reset)

This value determines the amount to add to the level indicated by BSEC_HDPLASR to output to the SAES on obk_hdpl.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.INCR[1:0]
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bits 1:0 INCR[1:0]: Increment

Amount to add to the level indicated by BSEC_HDPLASR to generate obk_hdpl[7:0] output (clamped at 3).

6.5.28 BSEC write once scratch register x (BSEC_WOSCRx)

Address offset: 0xF40 + 0x4 * x (x = 0 to 7)

Reset value: 0x0000 0000

This register is reset when bsec_rst is asserted.

Secure privileged read and write only. Illegal reads return 0, illegal writes are ignored. Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
WOSDATA[31:16]
rworworworworworworworworworworworworworworworwo
1514131211109876543210
WOSDATA[15:0]
rworworworworworworworworworworworworworworworwo

Bits 31:0 WOSDATA[31:0]: Write once scratch data ROM code can use this register to store values that needs to be persistent across hot resets. It is writable once, reset by either cold or warm BSEC reset.

6.5.29 BSEC hot reset count register (BSEC_HRCR)

Address offset: 0xFE8

Reset value: 0x0000 0000

This register is reset when bsec_rst is asserted.

Secure privileged read only (return 0 otherwise). Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
HRC[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
HRC[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 HRC[31:0]: Hot reset counter This bitfield counts the number of hot resets since the last BSEC cold/warm reset. See Section 6.3.3: BSEC reset and clocks for details about resets.

ST logo
ST logo

6.5.30 BSEC warm reset count register (BSEC_WRCR)

Address offset: 0xFEC

Reset value: 0x0000 0000

This register is reset when bsec_srst is asserted.

Secure privileged read only (return 0 otherwise). Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
WRC[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
WRC[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 WRC[31:0]: Warm reset counter

This bitfield counts the number of warm resets since the last BSEC cold reset.

See Section 6.3.3: BSEC reset and clocks for details about resets.

6.5.31 BSEC version register (BSEC_VERR)

Address offset: 0xFF4

Reset value: 0x0000 0012

Secure privileged read access only (return 0 otherwise). Only trusted domain or Boot ROM code can access.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.MAJREV[3:0]MINREV[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 MAJREV[3:0]: Major revision

Bits 3:0 MINREV[3:0]: Minor revision

6.5.32 BSEC identification register (BSEC_IPIDR)

Address offset: 0xFF8

Reset value: 0x0010 0033

Secure privileged read access only (return 0 otherwise). Only trusted domain or Boot ROM code can access.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
313029282726252423 ID[31:16]22212019181716
rrrrrrrrrrrrrrrr
151413121110987 ID[15:0]6543210
rrrrrrrrrrrrrrrr
Bits 31:0ID[31:0]: BSEC identification
313029282726252423 SID[31:16]22212019181716
rrrrrrrrrrrrrrrr
151413121110987 SID[15:0]6543210
rrrrrrrrrrrrrrrr
Bits 31:0SID[31:0]: BSEC size identification
OffsetRegister name31 3 02 9 2 8 2 72 6 2 52 4 2 3 2 221 2 019 18 1716 1514 13 121 1 109 8 76 54 3 21 0
0x000 + 0x4 * w,BSEC_FVRwFV[31:0]
(w=0 to 375) 0x5E0 -Reset value(1)xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0x7FC 0x800 +ReservedRes.
0x4 * x,SPLOCKxSPLOCK{i + 32 * x} (i = 31 to 0)
(x=0 to 11)Reset value0 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

Bits 31:0 ID[31:0]: BSEC identification

6.5.33 BSEC size identification register (BSEC_SIDR)

Address offset: 0xFFC

Reset value: 0xA3C5 DD04

Secure privileged read access only (return 0 otherwise). Only trusted domain or Boot ROM code can access.

Bits 31:0 SID[31:0]: BSEC size identification

This bitfield returns the size identification code of the BSEC IP as defined below:

Bits[31:8] = 0xA3C5DD (fixed code)

Bits[7:0] = 0x04 (4 Kbytes address decoding)

6.5.34 BSEC register map

Table 32. BSEC register map and reset values

Table 32. BSEC register map and reset values (continued)

OffsetRegister name
Reset value
313029282726252423222120191817161514131211109876543210
0x830 - 0x83CReservedRes.
0x840 + 0x4 * x (x=0 to 11)BSEC_SWLOCKxSWLOCK{i + 32 * x} (i = 31 to 0)
Reset value00000000000000000000000000000000
0x870 - 0x87CReservedRes.
0x880 + 0x4 * x (x=0 to 11)BSEC_SRLOCKxSRLOCK{i + 32 * x} (i = 31 to 0)
Reset value00000000000000000000000000000000
0x8B0 - 0x8BCReservedRes.
0x8C0 + 0x4 * x (x=0 to 11)BSEC_OTPVLDRxVLDF{i + 32 * x} (i = 31 to 0)
Reset value00000000000000000000000000000000
0x8F0 - 0x93CReservedRes.
0x940 + 0x4 * x (x=0 to 11)BSEC_SFSRxSFW{i + 32 * x} (i = 31 to 0)
Reset value(1)xxxxxxxx0000000xxxx0x0xxxxxxxxxx
0x970 - 0xC00ReservedRes.
0xC04BSEC_OTPCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.LASTCID [2:0]Res.Res.Res.Res.Res.PPLOCKPROGRes.Res.Res.Res.Res.ADDR[8:0]
Reset value00000000000000
0xC08BSEC_WDRWRDATA[31:0]
Reset value00000000000000000000000000000000
0xC0C - 0xDFCReservedRes.
0xE00 + 0x4 * x (x=0 to 3)BSEC_SCRATCHRxSDATA[31:0]
Reset valuexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0xE10BSEC_LOCKRRes.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.Res.HKLOCKDENLOCKGWLOCK
Reset value0000
0xE14BSEC_JTAGINRJDATAIN[31:0]
Reset value00000000000000000000000000000000
0xE18BSEC_JTAGOUTRJDATAOUT[31:0]
Reset value00000000000000000000000000000000
0xE1CReservedReserved
0xE20BSEC_DENRPATTERNRes.Res.RCODE5RCODE4RCODE3RCODE2RCODE1RCODE0SPNIDENMSPIDENMNIDENMDBGENMDBGSWENSPNIDENASPIDENAHDPENDEVICEENNIDENADBGENARes.
Reset value(1)xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0xE24BSEC_UNMAPRUNMAP[31:0]
Reset value(1)xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0xE28 - 0xE3CReservedRes.
0xE40BSEC_SRNVSTATE[5:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HVALIDRes.
Reset value0000000

Table 32. BSEC register map and reset values (continued)

OffsetRegister name
Reset value
313029282726252423222120191817161514131211109876543210
0xE44BSEC_OTPSRRes.Res.Res.Res.Res.Res.Res.Res.Res.AMEFPPLMFPPLFSECFDEDFDISTURBFPROGFAILRes.Res.Res.Res.Res.Res.Res.Res.Res.OTPSECOTPERROTPNVIRRes.HIDEUPINIT_DONEBUSY
Reset value0000000000000
0xE48 - 0xE7CReservedRes.
0xE80 + 0x4 * x (x= 0 to 1)BSEC_EPOCHRxEPOCH[31:0]
Reset value00000000000000000000000000000000
0xE88BSEC_EPOCHSELCRRes.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.Res.Res.Res.EPOCH_SEL
Reset value0
0xE8CBSEC_DBGMCRAUTH_SEC[7:0]AUTH_HDPL[7:0]UNLOCK[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0000000000000000000000000
0xE90BSEC_AP_UNLOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.UNLOCK[7:0]
Reset value00000000
0xE94BSEC_HDPLMSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HDPL[7:0]
Reset value000000B4
0xE98BSEC_HDPLMCRINCR_HDPL[31:0]
Reset value00000000000000000000000000000000
0xE9CBSEC_NEXTHDPLMCRRes.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.Res.Res.INCR [1:0]
Reset value00
0xEA0 - 0xEA8ReservedReserved
0xEACBSEC_DBGACRAUTH_SEC[7:0]AUTH_HDPL[7:0]UNLOCK[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0000000000000000000000000
0xEB0ReservedRes.
0xEB4BSEC_HDPLASRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HDPL[7:0]
Reset value000000B4
0xEB8BSEC_HDPLACRINCR_HDPL[31:0]
Reset value00000000000000000000000000000000
0xEBCBSEC_NEXTHDPLACRRes.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.Res.Res.INCR [1:0]
Reset value00
0xEC0 - 0xF3CReservedReserved
0xF40 + 0x4*x (x=0 to 7)BSEC_WOSCRxWOSDATA[31:0]
Reset value00000000000000000000000000000000
0xF60 - 0xFE4ReservedRes.
0xFE8BSEC_HRCRHRC[31:0]
Reset value00000000000000000000000000000000
0xFECBSEC_WRCRWRC[31:0]
Reset value00000000000000000000000000000000

Table 32. BSEC register map and reset values (continued)

OffsetRegister name
Reset value
313029282726252423222120191817161514131211109876543210
0xFF4BSEC_VERRresresresresresresresresresresresresresresresresresresresresresresresresMAJREV[3:0]MINREV[3:0]
Reset value00010010
0xFF8BSEC_IPIDRID[31:0]
Reset value000000000001000000000000000110011
0xFFCBSEC_SIDRSID[31:0]
Reset value10100011110001011101110100000100

1. See register description.

Refer to Section 2.4 for the register boundary addresses.