7. Boot and security control (BSEC)

7.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).

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

7.2 BSEC main features

7.3 BSEC functional description

7.3.1 BSEC block diagram

Figure 16 shows the BSEC block diagram.

Figure 16. BSEC block diagram

BSEC block diagram showing internal components and external interfaces.

The diagram illustrates the BSEC block diagram. The BSEC block is a central component containing several sub-blocks: JTAG registers, Wrapper logic, Control registers, Shadow registers, Core logic, and a Fuses Array. The JTAG registers interface with the external JTAG block via jtaginout. The Wrapper logic receives control signals from the Core logic and interfaces with the JTAG registers and the APB slave i/f. The Control registers interface with the Debug & Trace block via debug_ctrl. The Shadow registers interface with the SAES block via RHUK and the feature_ctrl block. The Core logic interfaces with the APB slave i/f and the Fuses Array. The APB slave i/f is connected to the 32-bit APB bus, which also receives -sec and -cid signals. External blocks include RCC (providing bsec_rst, bsec_srst, and bsec_hrst), TAMP (providing hide_sec and block_sec), and ROM i/f (receiving unmap). The Debug & Trace block and SAES block are external to the BSEC block. The Fuses Array is represented as a grid of small squares. The diagram is labeled MSv67516V2 in the bottom right corner.

BSEC block diagram showing internal components and external interfaces.

7.3.2 BSEC internal signals

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

Table 26. BSEC internal input/output signals

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

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

Signal nameSignal typeDescription
debug_ctrlDigital outputDevice debug and trace control signals (see Section 7.3.10).
feature_ctrlDigital outputDevice feature control signals (see Section 7.3.11).

7.3.3 BSEC reset and clocks

BSEC is clocked by a dedicated embedded oscillator (RCBSEC), and manages three reset scenarios, as defined in Table 27. Because BSEC is clocked by an internal oscillator, an access to the fuse array is robust against external fault injection on clocks.

Table 27. BSEC resets

RCC reset signalsReset scenario
bsec_rstbsec_srstbsec_hrstNameEffects to BSECEffects to the device
Sticky locks clearedShadow fuses reloadedROM fully mapped(1)BSEC_DENR resetBSEC_SCRATCHR resetBSEC_WRCR reset
XXXCold resetYYY/N(2)YYYBoot CPU is reset.
X-XWarm resetYYY/N(2)YNN(3)Device secrets outside BSEC are erased by hardware.
--XHot resetNNY/N(2)P/N(4)NN(3)Only Boot CPU is reset
  1. 1. Managed in BSEC_UNMAPR.
  2. 2. Yes if state is BSEC-closed, no otherwise.
  3. 3. BSEC_WRCR register value is incremented by 1 following the warm reset, but not following a hot reset.
  4. 4. Partial gating (P) if state is BSEC-closed, no register reset (N) otherwise. See Section 7.5.13 for details. Note that values in this register can impact the debugger connection to the board.
  5. 5. BSEC_HRCR register value is incremented by 1 following the hot reset, but not following a warm reset.

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.

7.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 17.

Figure 17. BSEC fuse mapping overview

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

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

(*) Only accessible in closed state

MSv67517V1

Diagram showing BSEC fuse mapping overview with 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 7.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 7.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 18 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 7.3.7.

Figure 18. Device typical lifecycle

Figure 18: Device typical lifecycle diagram displaying memory partitions across three columns: (1) Provisioning, (2) Provisioned, and (3) RMA device, divided horizontally into Upper OTP, Mid OTP, and Lower OTP sections. Legend defines HDPL levels 0, 1, 2, 3 and RoT as Root of trust.

Legend:

01} Hide protection level (HDPL)RoT: Root of trust
23

MSv67518V2

Figure 18: Device typical lifecycle diagram displaying memory partitions across three columns: (1) Provisioning, (2) Provisioned, and (3) RMA device, divided horizontally into Upper OTP, Mid OTP, and Lower OTP sections. Legend defines HDPL levels 0, 1, 2, 3 and RoT as Root of trust.

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

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

7.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 7.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 29 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 7.3.9, 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.

7.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 28.

Table 28. 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.

Table 28. BSEC initial status reporting structure (continued)

Bit offsetBSEC_OTPSR bitNameError flagMeaning when bit is 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 29. When this structure is different than 0 the read or program operation might have failed, as indicated in the table.

Table 29. 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.

7.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 30.

Table 30. 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 7.3.14).
  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 7.3.6. Details about reset management can be found in Section 7.3.16.

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 7.3.16).

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 0x1 for an BSEC-open device, 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:

\[\begin{aligned} 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]) \end{aligned}\]

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.

7.3.8 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.

7.3.9 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.

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 8: OTP mapping (OTP).

7.3.10 BSEC debug and trace control

Secure privileged application can select the debug and trace profiles defined on Table 31, 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 0xDEB6 is written to bits [31:16] 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.

Table 31. Debug and trace profiles
Debug profileCortex-A35 debugCortex-M33 debugCortex-M0+ debugValue in BSEC_DENR register (LSB)
Microcontroller debugSecure(1)Trace-onlyNoYesYes(2)0x0A98
Full debug0x0F98
NonsecureTrace-only0x0298
Full debug0x0398
Application processor debugSecureTrace-onlyYesNoNo0x00DC
Full debug0x00FE
NonsecureTrace-only0x009C
Full debug0x009E
Global debug (MCUs + CPU)Global secureTrace-onlyYesYesYes(2)0x0ADC
Full debug0x0FFE
Nonsecure, with Cortex-M33 secure debug enabled(3)Trace-only0x0A9C
Full debug0x0F9E
NonsecureTrace-only0x029C
Full debug0x039E
  1. 1. A secure profile can debug code running in secure and nonsecure modes.
  2. 2. Option to keep Cortex-M0+ debug alive in VBAT mode while Cortex-A35 or Cortex-M33 are being reset.
  3. 3. 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.

When at least a trace-only debug profile is enabled (see Table 31), set the bit DBGSWEN in BSEC_DENR in order to allow self-hosted software instrumentation trace through ETR component (for example for post-mortem trace in DDR).

Note: When DBGSWEN is set it is recommended to isolate ETR component by assigning it to a compartment in the isolation pool (4, 5, 6). See Section 9.4.4: RIFSC control of masters (RIMU) for details.

BSEC_DENR default values after reset (cold/warm)

If BSEC is open, BSEC_DENR default value is 0xDEB6 0FFF (debug and trace enabled).

If BSEC is closed, BSEC_DENR default value is 0x0000 0000 (debug and trace disabled). This value can be changed by the ROM code (for example with the value 0xDEB6 0FFE) when the chain of trust is not yet activated.

7.3.11 Device features control

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

7.3.12 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.

7.3.13 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.

7.3.14 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.

7.3.15 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 7.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 7.3.6.

7.3.16 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 75: 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.

7.4 BSEC interrupts

BSEC does not support any interrupt.

7.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.

7.5.1 BSEC fuse word w value register (BSEC_FVRw)

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

Reset value: 0XXXXX 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
ST logo
ST logo

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:

7.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.

7.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.

7.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.

7.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.

7.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 0000 (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 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.

7.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.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LASTCID[2:0]Res.Res.Res.
rrr
1514131211109876543210
Res. Res.PP PP
LOCKPROGRes.Res.Res.Res.ADDR[8:0]
rwrwrwrwrwrwrwrwrwrwrw
Bits 21:19LASTCID[2:0]:Last CID
Bit 14PPLOCK:Permanent programming lock
Bit 13PROG:memory. Fuse word programming
Bits 8:0ADDR[8:0]:Fuse word address

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 368 to 375 are selected, programming requests are ignored.

7.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.

7.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.

7.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

Bit 1 DENLOCK: Debug enable register sticky lock

Bit 0 GWLOCK: Global write lock

7.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

7.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.

7.5.13 BSEC debug enable register (BSEC_DENR)

Address offset: 0xE20

Reset value: 0xDEB6 0FFF (BSEC-open)

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

When something other than 0xDEB6 is written to bits [31:16] the entire register 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
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.CP15SDIS[1:0]CFGSDISSPNIDENMSPIDENMNIDENMDBGENMDBGSWENSPNIDENASPIDENAHDPENDEVICEENNIDENADBGENARes.
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 14:13 CP15SDIS[1:0]: CP15SDISABLE for core x (x = 0 or 1)

0: All CP15 registers of Cortex-A core x can be written in secure mode.

1: Write access to some of the CP15 secure registers of Cortex-A core x are ignored.

Regardless the value of this bitfield after bsec_hrst is set and while BSEC_UNMAPR = 0xA1C0 DE0D, all CP15 registers of Cortex-A core x can be written in secure mode.

Note: This bitfield is valid only when Cortex-A is running in AArch32 mode.

Bit 1 DBGENA: Debug enable for Cortex-A

0: Disabled

1: Enabled

Regardless the value of this bit after bsec_hrst is set and while

BSEC_UNMAPR = 0xA1C0 DE0D, debug enable for Cortex-A is disabled.

Bit 0 Reserved, must be kept at reset value.

7.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.

7.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 7.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.

7.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.AMEFPPLMFPPLFSECFDEDFDISTU
RBF
PROG
FAIL
rrrrrrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.OTP
SEC
OTP
ERR
OTP
NVIR
Res.HIDE
UP
INIT_
DONE
BUSY
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.

7.5.17 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.

7.5.18 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 7.3.3: BSEC reset and clocks for details about resets.

7.5.19 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 7.3.3: BSEC reset and clocks for details about resets.

7.5.20 BSEC version register (BSEC_VERR)

Address offset: 0xFF4

Reset value: 0x0000 0010

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

7.5.21 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.

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

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

7.5.22 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.

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

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)

7.5.23 BSEC register map

Table 32. BSEC register map and reset values

OffsetRegister name
Reset value
313029282726252423222120191817161514131211109876543210
0x000 +
0x4 * w,
(w=0 to
375)
BSEC_FVRwFV[31:0]
Reset value(1)xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0x5E0 -
0x7FC
ReservedRes.
0x800 +
0x4 * x,
(x=0 to 11)
BSEC_SPLOCKxSPLOCK{i + 32 * x} (i = 31 to 0)
Reset value00000000000000000000000000000000
0x830 -
0x83C
ReservedRes.
0x840 +
0x4 * x
(x=0 to 11)
BSEC_SWLOCKxSWLOCK{i + 32 * x} (i = 31 to 0)
Reset value00000000000000000000000000000000
0x870 -
0x87C
ReservedRes.
0x880 +
0x4 * x
(x=0 to 11)
BSEC_SRLOCKxSRLOCK{i + 32 * x} (i = 31 to 0)
Reset value00000000000000000000000000000000
0x8B0 -
0x8BC
ReservedRes.
0x8C0 +
0x4 * x
(x=0 to 11)
BSEC_OTPVLDRxVLDF{i + 32 * x} (i = 31 to 0)
Reset value00000000000000000000000000000000
0x8F0 -
0x93C
ReservedRes.
0x940 +
0x4 * x
(x=0 to 11)
BSEC_SFSRxSFW{i + 32 * x} (i = 31 to 0)
Reset value(1)xxxxxxxx0000000xxxx0x0xxxxxxxxxx
0x970 -
0xC00
ReservedRes.

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

OffsetRegister name
Reset value
313029282726252423222120191817161514131211109876543210
0xC04BSEC_OTPCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.LASTCID
[2:0]
Res.Res.Res.Res.PPLOCKPROGRes.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 valuexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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 value000
0xE14BSEC_JTAGINRJDATAIN[31:0]
Reset value00000000000000000000000000000000
0xE18BSEC_JTAGOUTRJDATAOUT[31:0]
Reset value00000000000000000000000000000000
0xE1CReservedReserved
0xE20BSEC_DENRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CP15SDIS[1:0]CFGDISSPNIDENMSPIDENMNIDENMDBGENMDBGSWENSPNIDENASPIDENAHDPENDEVICEENNIDENADBGENARes.
Reset value(1)000xxxxxxxxxxx
0xE24BSEC_UNMAPRUNMAP[31:0]
Reset value(1)xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.Res.
Reset value000000
0xE44BSEC_OTPSRRes.Res.Res.Res.Res.Res.Res.Res.Res.AMEFPPLMFPPLFSECFDEDFDISTURBFPROGFAILRes.Res.Res.Res.Res.Res.Res.Res.Res.OTPSECOTPERROTPNVIRRes.HIDEUPINIT_DONEHVALID
Reset value0000000000000
0xE48 - 0xE7CReservedRes.
0xE80 - 0xE88ReservedRes.
0xE8CReservedRes.
0xE90 - 0xF9CReservedReserved
0xEA0 - 0xEA8ReservedReserved
0xEAC - 0xEBCReservedReserved
0xEC0 - 0xF3CReservedReserved
0xF40 + 0x4*x (x=0 to 7)BSEC_WOSCRxWOSDATA[31:0]
Reset value00000000000000000000000000000000

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

OffsetRegister name
Reset value
313029282726252423222120191817161514131211109876543210
0xF60 -
0xFE4
ReservedRes.
0xFE8BSEC_HRCRHRC[31:0]
Reset value00000000000000000000000000000000
0xFECBSEC_WRCRWRC[31:0]
Reset value00000000000000000000000000000000
0xFF4BSEC_VERRResResResResResResResResResResResResResResResResResResResResResResResResMAJREV[3:0]MINREV[3:0]
Reset value00010000
0xFF8BSEC_IPIDRID[31:0]
Reset value00000000000100000000000000110011
0xFFCBSEC_SIDRSID[31:0]
Reset value10100011110001011101110100000100

1. See register description.

Refer to Section 2.4 for the register boundary addresses.

ST logo
ST logo