22. Hardware semaphore (HSEM)
22.1 Introduction
The hardware semaphore block provides 16 (32-bit) register based semaphores.
The semaphores can be used to ensure synchronization between different processes running between different cores. The HSEM provides a non-blocking mechanism to lock semaphores in an atomic way. The following functions are provided:
- • Semaphore lock, in two ways:
- – 2-step lock: by writing LOCKID and PROCID, SEC and PRIV to the semaphore, followed by a read check
- – 1-step lock: by reading the LOCKID, SEC and PRIV from the semaphore
- • Interrupt generation when a semaphore is unlocked
- – Each semaphore may generate an interrupt (secure and non-secure) on one of the interrupt lines
- • Semaphore clear protection
- – A semaphore is only unlocked when LOCKID and PROCID, SEC, and PRIV match
- • Global semaphore clear per LOCKID
- • Secure semaphore lock support
- • Privileged / unprivileged semaphore lock support
- • Semaphore lock protection via semaphore attribute
- • Processor CID white list filtering per group of four semaphores.
22.2 Main features
The HSEM includes the following features:
- • 16 (32-bit) semaphores with security, privilege, and CID filtering attributes
- • 8-bit PROCID
- • 4-bit LOCKID
- • 1-bit secure domain indication
- • 1-bit privileged domain indication
- • 1-bit CID filtering indication
- • One non-secure and one secure interrupt lines per processor
- • Lock indication
22.3 Functional description
22.3.1 HSEM block diagram
As shown in Figure 137, the HSEM is based on three sub-blocks:
- • the semaphore block containing the semaphore status and IDs
- • the semaphore interface block providing AHB access to the semaphore via the HSEM_Rx and HSEM_RLRx registers, and the semaphore security, privilege and CID filtering attributes
- • the interrupt interface block providing control for the interrupts via HSEM_CnISR, HSEM_(S)CnIER, HSEM_(S)CnMISR, and HSEM_(S)CnICR registers. CID filtering for the processor dedicated interrupt control registers is provided through HSEM_CnCIDCFGR.
Figure 137. HSEM block diagram

22.3.2 HSEM internal signals
Table 185. HSEM internal input/output signals
| Signal name | Signal type | Description |
|---|---|---|
| AHB bus | Digital input/output | AHB register access bus |
| BusMasterID | Digital input | AHB bus master ID |
| CID | Digital input | Compartment isolation ID |
| hsem_intn_it | Digital output | Non-secure Interrupt n line (n = 1 to 3) |
| hsem_secintn_it | Digital output | Secure interrupt n line (n = 1 to 3) |
Table 185. HSEM internal input/output signals (continued)
| Signal name | Signal type | Description |
|---|---|---|
| hsem_sec_ila | Digital output | illegal secure access event |
| hsem_priv_ila | Digital output | Illegal privilege access event |
| hsem_cid_ila | Digital output | Illegal CID access event |
22.3.3 HSEM lock procedures
There are two lock procedures, namely 2-step (write) lock and 1-step (read) lock. The two procedures can be used concurrently.
The semaphore is free when its LOCK bit is 0. In this case, the LOCKID, SEC, PRIV, and PROCID are also 0. When the LOCK bit is 1, the semaphore is locked and the LOCKID indicates which AHB bus master ID or CID has locked it. The PROCID indicates which process of that AHB bus master ID or CID has locked the semaphore. The semaphore CFEN indicates if the semaphore is CID filtered or not. The SEC and PRIV indicated the lock protection, if the AHB bus master that locked the semaphore was running in secure and or privileged mode.
When write locking a semaphore, the written LOCKID, SEC and PRIV must match the AHB bus master ID or CID, SEC and PRIV, and the PROCID is written by the AHB bus master software process taking the lock.
When read locking the semaphore, the LOCKID is taken from the AHB bus master ID when CID filtering for the semaphore is disabled or AHB bus master CID when CID filtering for the semaphore is enabled, SEC and PRIV are taken from the bus protection, and the PROCID is forced to 0 by hardware. There is no PROCID available with read lock.
Semaphores can be locked only by a processor complying with the attribute settings.
Figure 138. Procedure state diagram

stateDiagram-v2
state Free
state Locked
Free --> Free : WRITE (LOCK = 0)
Free --> Locked : Lock
Locked --> Locked : WRITE (LOCK = 1) or WRITE (not LOCKID or not PROCID or not Bus protection)
Locked --> Free : Unlock
Free --> Free : READ
Locked --> Locked : READ or READ LOCK
2-step (write) lock procedure
The 2-step lock procedure consists in a write to lock the semaphore, followed by a read to check if the lock has been successful, carried out from the HSEM_Rx register.
- • Write semaphore with PROCID, SEC, PRIV and LOCKID, and LOCK = 1. The SEC, PRIV and LOCKID data written by software must match the AHB bus master
information, that is, when the semaphore CID filtering is enabled, a secure, privileged, AHB bus master CID = 1 writes data SEC = 1, PRIV = 1 and LOCKID = 1 (the semaphore CFEN indication is provided from the semaphore group CID filtering information in HSEM_GpCIDCFGR).
Lock is put in place when the semaphore is free at write time.
- • Read-back the semaphore
The software checks the lock status, if PROCID, SEC, PRIV and LOCKID match the written data and CFEN indication match the CID or AHB bus master ID locking mode, then the lock is confirmed.
- • Else retry (the semaphore has been locked by another process, AHB bus master ID or CID, or protection level).
A semaphore can only be locked when it is free.
A semaphore can be locked when the PROCID = 0.
Consecutive write attempts with LOCK = 1 to a locked semaphore are ignored.
1-step (read) lock procedure
The 1-step procedure consists in a read to lock and check the semaphore in a single step, carried out from the HSEM_RLRx register.
- • Read lock semaphore with the AHB bus master LOCKID, SEC, PRIV.
- • If read LOCKID, SEC, PRIV and CFEN indication matches and PROCID = 0, then lock is put in place. The semaphore CFEN indication is provided from the semaphore group CID filtering information in HSEM_GpCIDCFGR. If LOCKID, SEC, PRIV and CFEN indication matches and PROCID is not 0, this means that another process from the same LOCKID and protection level, has locked the semaphore with a 2-step (write) procedure.
- • Else retry (the semaphore has been locked by another process, AHB bus master ID or CID, or protection level).
A semaphore can only be locked when it is free. When read locking a free semaphore, PROCID is 0. Read locking a locked semaphore returns the LOCKID, SEC, PRIV and PROCID that locked it. All read locks, including the first one that locks the semaphore, return the LOCKID, SEC, PRIV that locks or locked the semaphore.
Note: The 1-step procedure must not be used when running multiple processes of the same AHB bus master ID or CID and protection level. All processes with the same bus protection level using the same semaphore read the same status. When only one process locks the semaphore, each process of that AHB bus master ID or CID and protection level reads the semaphore as locked by itself with the LOCKID, SEC, PRIV, and CFEN.
22.3.4 HSEM write/read/read lock register address
For each semaphore, two AHB register addresses are provided, separated in two banks of 32-bit semaphore registers, spaced by a 0x80 address offset.
In the first register address bank the semaphore can be written (locked/unlocked) and read through the HSEM_Rx registers.
In the second register address bank the semaphore can be read (locked) through the HSEM_RLRx registers.
22.3.5 HSEM unlock procedures
Unlocking a semaphore is a protected process, to prevent accidental clearing by a AHB bus master ID or CID, SEC, PRIV or by a process not having the semaphore lock right. The procedure consists in writing to the semaphore HSEM_Rx register with the corresponding LOCKID, SEC, PRIV and PROCID and LOCK = 0. A semaphore can always be unlocked by the LOCKID, SEC, PRIV and PROCID that locked it, it is unlocked regardless of the semaphore attribute settings. When unlocked the semaphore, the LOCKID, SEC, PRIV, and the PROCID are all 0.
Note: When the attributes of a locked semaphore are changed, it can always be unlocked by the AHB bus master ID or CID, SEC, PRIV and process that locked it. To unlock the semaphore the PROCID must match.
When unlocked, an interrupt may be generated to signal the event. To this end, the semaphore non-secure interrupt and or secure interrupt must be enabled.
The unlock procedure consists in a write to the semaphore HSEM_Rx register with matching LOCKID, SEC, and PRIV, regardless on how the semaphore has been locked (1- or 2-step) and how it is protected by the semaphore attributes.
- • Write semaphore with PROCID, SEC, PRIV, LOCKID, and LOCK = 0
- • If the written data matches the semaphore PROCID, SEC, PRIV and LOCKID and the AHB bus master ID or CID, SEC, PRIV, the semaphore is unlocked and an interrupt may be generated when enabled, else write is ignored, semaphore remains locked and no interrupt is generated (the semaphore is locked by another process, AHB bus master ID or CID, and bus protection level or the written data does not match the AHB bus master signaling).
Note: Different processes of the same AHB bus master ID or CID and bus protection can write any PROCID value. Preventing other processes of the same AHB bus master ID or CID and bus protection from unlocking a semaphore must be ensured by software, handling the PROCID correctly.
22.3.6 HSEM LOCKID semaphore clear
All semaphores locked by a LOCKID and bus protection can be unlocked at once by using the HSEM_CR register. Write LOCKID, SEC, PRIV, CFEN and correct KEY value in HSEM_CR. All locked semaphores with a matching LOCKID, SEC, PRIV, CFEN are unlocked, and may generate an interrupt when enabled.
Note: This procedure may be used in case of an incorrect functioning AHB bus master ID or CID, where the trusted domain CID can unlock the locked semaphores by writing the LOCKID, SEC, PRIV, CFEN of the incorrect functioning processor into the HSEM_CR register with the correct KEY value. This unlocks all locked semaphores with a matching LOCKID, SEC, PRIV, CFEN.
An interrupt may be generated for the unlocked semaphore(s). To this end, the semaphore interrupt must be enabled in the HSEM_(S)CnIER registers.
22.3.7 HSEM interrupts
An interrupt line hsem_intn_it(non-secure) and hsem_secint_it(secure) per processor allows each semaphore to generate an interrupt.
An interrupt line provides the following features per semaphore:
- • interrupt enable
- • interrupt clear
- • interrupt status
- • masked interrupt status
- • interrupt generation based on semaphore security attribute settings
- • interrupt generation based on CID filtering in
HSEM_CnCIDCFGRandHSEM_GpCIDCFGR
With the interrupt enable (HSEM_(S)CnIER) the semaphores affecting the interrupt line can be enabled. Disabled (masked) semaphore interrupts do not set the masked interrupt status MISF for that semaphore, and do not generate an interrupt on the interrupt line.
The interrupt clear (HSEM_(S)CnICR) clears the interrupt status ISF and masked interrupt status MISF of the associated semaphore for the interrupt line.
The interrupt status (HSEM_(S)CnISR) mirrors the semaphore interrupt status ISF before the enable.
The masked interrupt status (HSEM_(S)CnMISR) only mirrors the semaphore enabled interrupt status MISF on the interrupt line. All masked interrupt status MISF of the enabled semaphores need to be cleared to clear the interrupt line.
A semaphore with its security attribute set to secure generates only a secure interrupt, non-secure interrupts are omitted. On the other hand, a non-secure semaphore may generate non-secure and secure interrupts.
A semaphore with its CID white list filtering attribute enabled generates only an interrupt to the CIDs for which it is enabled in the HSEM_GpCIDCFGR white list and by the interrupt CID filtering in the HSEM_CnCIDCFGR. On the other hand semaphores for which CID filtering is disabled may generate an interrupt to all CIDs.
Figure 139. Interrupt state diagram

graph TD
A([Semaphore x locked]) --> B[write
(LOCKID & PROCID & SEC & PRIV & LOCK = 0)]
B --> C[Interrupt n
Semaphore x
ISFx = 1]
C --> D{Interrupt n
Semaphore x
ISEx enabled}
D -- No --> G([Semaphore x free])
D -- Yes --> E[Interrupt n
Semaphore x
MISFx = 1
Interrupt n generated]
E --> G
The procedure to get an interrupt when a semaphore becomes free is described hereafter.
Try to lock semaphore x
- • If the semaphore lock is obtained, no interrupt is needed.
- • If the semaphore lock fails:
- • Clear pending semaphore x interrupt status for the (non-secure) interrupt line or secure interrupt line in HSEM_(S)CnICR.
Re-try to lock the semaphore x again:- – If the semaphore lock is obtained, no interrupt is needed (semaphore has been freed between first try to lock and clear semaphore interrupt status).
- – If the semaphore lock fails, enable the semaphore x (non-secure) interrupt or secure interrupt line in HSEM_(S)CnIER.
On semaphore x free interrupt, try to lock semaphore x
- • If the semaphore lock is obtained:
Disable the semaphore x (non-secure) interrupt or secure interrupt in HSEM_(S)CnIER.
Clear pending semaphore x interrupt status in HSEM_(S)CnICR.
- • If the semaphore x lock fails:
Clear pending semaphore x interrupt status in HSEM_(S)CnICR.
Try again to lock the semaphore x:- – If the semaphore lock is obtained (semaphore has been freed between first try to lock and semaphore interrupt status clear), disable the semaphore (non-secure) interrupt or secure interrupt in HSEM_(S)CnIER.
- – If the semaphore lock fails, wait for semaphore free interrupt.
Note: An interrupt does not lock the semaphore. After an interrupt, either the AHB bus master or the process must still perform the lock procedure to lock the semaphore.
It is possible to have multiple AHB bus masters informed by the semaphore free interrupts. Each AHB bus master gets its interrupt, and the first one to react locks the semaphore.
22.3.8 Semaphore attributes
The HSEM allows semaphores to be protected by the following attributes:
- • security as defined in HSEM_SECCFGR
- • privilege as defined in HSEM_PRIVCFGR
- • CID filtering as defined in HSEM_GpCIDCFGR (per semaphore group)
Semaphores with security attribute set to secure can be locked only by a secure access, and generate only a secure interrupt.
Semaphores with privilege attribute set to privilege can be locked only by a privileged access.
Semaphore group CID filtering is controlled according to Table 186.
Table 186. Semaphore CID filtering
| HSEM_GpCIDCFGR.C | HSEM_GpCIDCFGR | C3CIDCFGR.CFEN | C2CIDCFGR.CFEN | C1CIDCFGR.CFEN | Description(1) | ||
|---|---|---|---|---|---|---|---|
| SEM[WLIST[3] | SEM[WLIST[2] | SEM[WLIST[1] | |||||
| 0 | x | x | x | x | x | x | Semaphore group CID filtering disabled, semaphore group can be locked by MASTERID. |
| 1 | x | x | x | 0 | 0 | 0 | Semaphore CID filtering disabled, semaphores can be locked by MASTERID. |
| 1 | 0 | x | x | 1 | 0 | 0 | Semaphore group CID filtering enabled, but no enabled CID in the group white list. Semaphore group cannot be locked. |
| 1 | x | 0 | x | 0 | 1 | 0 | |
| 1 | x | x | 0 | 0 | 0 | 1 | |
| 1 | 1 | 0 | 0 | 0 | 1 | 1 | |
| 1 | 0 | 1 | 0 | 1 | 0 | 1 | |
| 1 | 0 | 0 | 1 | 1 | 1 | 0 | |
Table 186. Semaphore CID filtering (continued)
| HSEM_GpCIDCFGR.C | HSEM_GpCIDCFGR | C3CIDCFGR.CFEN | C2CIDCFGR.CFEN | C1CIDCFGR.CFEN | Description(1) | ||
|---|---|---|---|---|---|---|---|
| SEM[WLIST[3] | SEM[WLIST[2] | SEM[WLIST[1] | |||||
| 1 | 1 | 0 | 0 | 1 | 1 | 1 | Semaphore group CID filtering enabled with only enabled C3 CID in the white list. Semaphore group can be accessed only by C3 CID. |
| 1 | 1 | 0 | 1 | 1 | 1 | 1 | Semaphore group CID filtering enabled with enabled C3 and C1 CID in the white list. Semaphore group can be accessed by C3 and C1 CID. |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | Semaphore group CID filtering enabled with enabled C3, 2 and 1 CID in the white list. Semaphore group can be accessed by C3, C2 and C1 CID. |
- 1. It is not possible to share semaphores between CID and bus MASTERID. A semaphore group is either filtered by CID (and only accessible by white listed enabled CIDs) or bus MASTERID protected (and only accessible by valid bus MASTERIDs).
Semaphores with CID white list filtering enabled in HSEM_GpCIDCFGR.CFEN can only be locked by CIDs in the white list and generate only an interrupt to the CIDs in the white list.
Table 187. Semaphore attributes
| Attributes | Interrupt(s) | Description(1) | ||||
|---|---|---|---|---|---|---|
| Security | Privileged | CFEN | CID white list | Secure | Non-secure | |
| 0 | 0 | 0 | N.A. | Yes | Yes | No protection. All locks allowed, any interrupt generated. |
| 0 | 1 | x | x | Yes | Yes | Privilege protection. Only privileged lock allowed, any interrupt generated. |
| 1 | 0 | x | x | Yes | no | Security protection. Only secure lock allowed and secure interrupt generated. |
| 1 | 1 | x | x | Yes | No | Security and privilege protection. Only secure privileged lock allowed and secure interrupt generated. |
| x | x | 1 | 1 | Yes(2) | Yes(3) | CID protection. Only white listed CIDs lock allowed and white listed CIDs interrupt generated. |
- 1. Illegal accesses generate illegal access events.
2. A secure interrupt is generated only for the CIDs in the white list.
3. A non-secure interrupt is generated only when the semaphore security attribute is set to non-secure, and for the CIDs in the white list.
The HSEM allows only authorized AHB bus master IDs or CIDs to lock and unlock semaphores.
- • The AHB bus master 2-step lock write access to the semaphore HSEM_Rx register is checked against the valid bus master IDs or CID in the semaphore CID white list.
- – Accesses from unauthorized AHB bus master IDs or CIDs are discarded and do not lock the semaphore. On unauthorized CID accesses a CID illegal access event is generated.
- • The AHB bus master 1-step lock read access from the semaphore HSEM_RLRx register is checked against the valid bus master IDs or CIDs in the semaphore CID white list.
- – An unauthorized AHB bus master ID or CID not in the white list read from HSEM_RLRx returns all 0. On unauthorized CID accesses a CID illegal access event is generated.
- • The semaphore unlock write access to the HSEM_CR register is checked against the trusted domain CID. Only the trusted domain CID can write to the HSEM_CR register and unlock any of the LOCKID semaphores.
- – Accesses from unauthorized CIDs are discarded and do not clear the LOCKID semaphores. On unauthorized CID accesses a CID illegal access event is generated.
Table 188 details the relation between bus master/processor and LOCKID.
Table 188. Authorized bus master IDs
| Bus master 0 (processor1) | Bus master 1 (processor2) | Bus master 2 (processor3) | DD bus master |
|---|---|---|---|
| MASTERID = 1 | MASTERID = 2 | MASTERID = 3 | MASTERID = 0 |
Note: Accesses from unauthorized AHB bus master IDs to other registers are granted.
22.3.9 HSEM debug with DDCID
The DDCID and DDEN allow the user to debug hardware semaphores via the debug access.
- • Registers can be accessed only with the right protection
- – Privilege protected registers can be accessed only with a DDCID privileged debug access.
- – Secure protected registers can be accessed only with a DDCID secure debug access.
- • All CID protected registers can be accessed with the DDCID when DDEN = 1.
- – DDCID debug can unlock semaphores locked by a CID.
- – DDCID debug can lock a semaphore with the DDCID, even when DDCID is not part of the white list.
- – HSEM_(S)CnIER, HSEM_(S)CnICR, HSEM_(S)CnISR, and HSEM_(S)CnMISR can be accessed with the debug DDCID, even when CID filtering for processor[n] is enabled.
- – HSEM_SECCFGR and HSEM_PRIVCFGR bits can be accessed with the debug DDCID, even when semaphore x CID white list filtering is enabled.
- • Semaphores without CID protection can be access by the DDCID.
- – DDCID debug can unlock semaphores locked by any AHB bus master ID.
- – DDCID debug can lock a semaphore with the DD AHB bus master ID or the DDCID. When locked with DD AHB bus master ID semaphore status CFEN = 0, when locked with DDCID semaphore status CFEN = 1.
- • All TDCID protected registers can be accessed also with the DDCID when DDEN = 1.
- – HSEM_CR, HSEM_KEYR, HSEM_CnCIDCFGR, and HSEM_GpCIDCFGR can be accessed with the debug DDCID.
22.4 HSEM examples
22.4.1 Secure unprivileged CID n
HSEM_SECCFGR.SECx = 1
HSEM_PRIVCFGR.PRIVx = 0
HSEM_GpCIDCFGR.CFEN = 1 and HSEM_GpCIDCFGR.SEM_WLIST_Cn = 1
This allows to share the semaphore x between the secure privileged and secure unprivileged domains of processor with CID n.
Only secure privileged and secure unprivileged processor CID n can lock the semaphore, and only the processor CID n secure interrupt can report an unlock event.
The non-secure processor CID n and all other processor CIDs have no access to the semaphore x and the associated interrupt bits.
Non-secure accesses generate a secure illegal access event and all other processor CIDs accesses generate a CID illegal access event.
Figure 140. HSEM example - Secure unprivileged CID n

The diagram illustrates the access control for a Hardware Semaphore (HSEM) between two processors (CID m and CID n) and the HSEM itself. The HSEM contains Semaphore x and four interrupt bits: hsem_intm_it, hsem_secintm_it, hsem_intn_it, and hsem_secintn_it. Processor CID m has four access levels: Secure privileged, Secure unprivileged, Non-secure privileged, and Non-secure unprivileged. Processor CID n also has these four access levels. Access paths are shown as follows:
- From Processor CID m: All four access levels lead to 'No access' for Semaphore x.
- From Processor CID n: Secure privileged and Secure unprivileged levels lead to 'Access' for Semaphore x. Non-secure privileged and Non-secure unprivileged levels lead to 'No access'.
- Interrupt paths: hsem_intm_it and hsem_secintm_it are marked as 'No interrupt'. hsem_intn_it is marked as 'No interrupt'. hsem_secintn_it leads to an 'Interrupt' signal directed to Processor CID n.
22.4.2 Privilege CID m and n
HSEM_SECCFGR.SECx = 0
HSEM_PRIVCFGR.PRIVx = 1
HSEM_GpCIDCFGR.CFEN = 1 & HSEM_GpCIDCFGR.SEM_WLIST_Cm = 1 and
HSEM_GpCIDCFGR.SEM_WLIST_Cn = 1
This makes it possible to share the semaphore x between the secure privileged and non-secure privilege domains of processors with CID m and CID n.
Only secure privileged and non-secure privilege processors CID m and CID n can lock the semaphore, and only the processor CID m and n, secure and non-secure interrupts report an unlock event.
The secure unprivileged and non-secure unprivileged processor CID m and CID n and all other processor CIDs have no access to the semaphore n.
Secure unprivileged and non-secure unprivileged accesses generate a privileged illegal access event.
All other processor CIDs accesses generate a CID illegal access event.
Figure 141. HSEM example - Privileged CID m and n

Diagram illustrating HSEM access and interrupts between Processor CID m, HSEM, and Processor CID n:
- Processor CID m:
- Secure privileged → Access to Semaphore x
- Secure unprivileged → No access
- Non-secure privileged → Access to Semaphore x
- Non-secure unprivileged → No access
- Interrupt inputs from HSEM: hsem_intm_it, hsem_secintm_it
- HSEM block: Contains Semaphore x, outputting interrupts hsem_intm_it, hsem_secintm_it, hsem_intn_it, hsem_secintn_it.
- Processor CID n:
- Secure privileged → Access to Semaphore x
- Secure unprivileged → No access
- Non-secure privileged → Access to Semaphore x
- Non-secure unprivileged → No access
- Interrupt inputs from HSEM: hsem_intn_it, hsem_secintn_it
22.4.3 MASTERIDs
HSEM_SECCFGR.SECx = 0
HSEM_PRIVCFGR.PRIVx = 0
HSEM_GpCIDCFGR.CFEN = 0
This makes it possible to share the semaphore x between all authorized AHB bus master IDs as shown in Table 188 and all protection non-secure, secure, privilege and unprivileged domains.
All secure privileged, secure unprivileged, non-secure privilege and non-secure unprivileged of all authorized processors AHB bus master IDs can lock the semaphore, and the secure and non-secure interrupts for all processors report an unlock event.
The processor CIDs are don't care.
There is no protection so no illegal access events are generated.
Figure 142. HSEM example - AHB bus master IDs
The block diagram shows:
- Processor AHB master ID m: Divided into four privilege levels: Secure privileged, Secure unprivileged, Non-secure privileged, and Non-secure unprivileged. Each has an Access arrow pointing right to Semaphore x in the HSEM block.
- Processor AHB master ID n: Divided into four privilege levels: Secure privileged, Secure unprivileged, Non-secure privileged, and Non-secure unprivileged. Each has an Access arrow pointing left to Semaphore x in the HSEM block.
- HSEM block: Contains Semaphore x. From it, four vertical signal lines originate:
hsem_intm_itandhsem_secintm_itrouted as Interrupt lines to Processor AHB master ID m.hsem_intn_itandhsem_secintn_itrouted as Interrupt lines to Processor AHB master ID n.
22.5 HSEM registers
Registers must be accessed using word format. Byte and half-word accesses are ignored and have no effect on the semaphores, they generate a bus error.
For any DDCID access to registers and register bits, security and privileged policies apply. When DDEN = 0 accesses from DDCID to CID filtered registers is ignored. When DDEN = 1 the DDCID has access to all registers regardless of any CID filtering policy.
22.5.1 HSEM register semaphore x (HSEM_Rx)
Address offset: 0x000+0x4*x (x = 0 to 15)
Reset value: 0x0000 0000
The HSEM_Rx must be used to perform a 2-step write lock, read back, and for unlocking a semaphore. Only write accesses with authorized AHB bus master IDs or CIDs are granted. Write accesses with unauthorized AHB bus master IDs and CIDs are discarded. An unauthorized AHB bus master CID access generates an illegal access event.
When the semaphore x security attribute SECx is enabled the semaphore can only be locked by a secure access. A non-secure write access generates a secure illegal access event. When the semaphore x security attribute SECx is disabled both secure and non-secure accesses may lock the semaphore.
When the semaphore x privileged attribute PRIVx is enabled the semaphore can only be locked by a privileged access. An unprivileged write access generates a privileged illegal access event. When the semaphore x privileged attribute PRIVx is disabled both privileged and unprivileged accesses may lock the semaphore.
When the semaphore x CID white list filtering is enabled in HSEM_GpCIDCFGR.CFEN and HSEM_CnCIDCFGR.CFEN, the semaphore can only be locked by CIDs from the white list. A write access from CIDs not in the white list generates a CID illegal access event. When the semaphore x CID white list attribute filtering is disabled in HSEM_GpCIDCFGR.CFEN or HSEM_CnCIDCFGR.CFEN the semaphore can be locked by any valid MASTERID.
A locked semaphore can always be unlocked with the semaphore PRIV, SEC and LOCKID that locked the semaphore, regardless of the semaphore attribute settings. To unlock the semaphore the PROCID must match.
When reading the semaphore x with a non-secure access, the semaphore data are returned only if:
- • the semaphore security attribute SECx is disabled (non-secure semaphore)
- • the semaphore has been locked with semaphore SEC = 0 (before security attribute SECx has been enabled) and the semaphore PRIV and LOCKID matches.
Else a 0 is returned, and a secure illegal access event is generated.
When reading the semaphore x with an unprivileged access, the semaphore data are returned only when:
- • The semaphore privileged attribute PRIVx is disabled (unprivileged semaphore)
- • The semaphore has been locked with semaphore PRIV = 0 (before security attribute PRIVx has been enabled) and the semaphore SEC and LOCKID matches.
Else a 0 is returned, and an privileged illegal access event is generated.
Semaphore data can only be read when the read access protection (SEC, PRIV and LOCKID) complies with the semaphore attribute protection rules or by a read access from the AHB bus master with the SEC, PRIV and LOCKID that locked the semaphore.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| LOCK | CFEN | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| rw | r | ||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | PRIV | SEC | LOCKID[3:0] | PROCID[7:0] | ||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||
Bit 31 LOCK: Lock indication
- This bit can be written and read by software.
- 0: On write free semaphore (only when LOCKID and PROCID match), on read semaphore is free.
- 1: On write try to lock semaphore, on read semaphore is locked.
Bit 30 CFEN: Semaphore CID filter indication
- This bit is updated, with the CID filtering information in HSEM_GpCIDCFGR.CFEN and HSEM_CnCIDCFGR.CFEN, by HW when semaphore is locked. This bit is set only when CID filtering is enabled for at least one CID in both HSEM_GpCIDCFGR.CFEN and HSEM_CnCIDCFGR.CFEN. Read only by software.
- 0: Semaphore is not CID filtered, LOCKID field indicated MASTERID or semaphore is free.
- 1: Semaphore is CID filtered, LOCKID field indicates CID.
Bits 29:14 Reserved, must be kept at reset value.
Bit 13 PRIV: Semaphore privilege
- Written by software
- - When the semaphore is free and the LOCK bit is at the same time written to 1, and the LOCKID matches the AHB bus master ID or CID, SEC and PRIV matches the AHB bus master definition.
- - When the semaphore is unlocked (LOCK written to 0 and AHB bus master ID or CID matched LOCKID, SEC and PRIV matches the AHB bus master definition, the PRIV is cleared to 0.
- - When the semaphore is unlocked (LOCK bit written to 0 and AHB bus master ID or CID does not match LOCKID and/or SEC or PRIV do not match AHB bus master definition, the PRIV is not affected.
- - Write when LOCK bit is already 1 (semaphore locked), the PRIV is not affected.
- - An authorized read returns the stored PRIV value.
- 0: Semaphore free or locked by unprivileged compartment.
- 1: Semaphore locked by privilege compartment.

Bit 12 SEC: Semaphore secure
Written by software
- - When the semaphore is free and the LOCK bit is at the same time written to 1, and the LOCKID matches the AHB bus master ID or CID, SEC and PRIV matches the AHB bus master definition.
- - When the semaphore is unlocked (LOCK written to 0 and AHB bus master ID or CID matched LOCKID, SEC and PRIV matches the AHB bus master definition, the SEC is cleared to 0.
- - When the semaphore is unlocked (LOCK bit written to 0 and AHB bus master ID or CID does not match LOCKID and/or SEC or PRIV do not match AHB bus master definition, the SEC is not affected.
- - Write when LOCK bit is already 1 (semaphore locked), the SEC is not affected.
- - An authorized read returns the stored SEC value.
- 0: Semaphore free or locked by non-secure compartment.
- 1: Semaphore locked by secure compartment.
Bits 11:8 LOCKID[3:0]: Semaphore LOCKID
Written by software
- - When the semaphore is free and the LOCK bit is at the same time written to 1 and the LOCKID matches the AHB bus master ID or CID, SEC and PRIV matches the AHB bus master protection.
- - When the semaphore is unlocked (LOCK written to 0 and AHB bus master ID or CID matched LOCKID, SEC and PRIV matches the AHB bus master protection, the LOCKID is cleared to 0.
- - When the semaphore is unlocked (LOCK bit written to 0 or AHB bus master ID or CID does not match LOCKID and/or SEC or PRIV do not match AHB bus master protection, the LOCKID is not affected.
- - Write when LOCK bit is already 1 (semaphore locked), the LOCKID is not affected.
- - An authorized read returns the stored LOCKID value.
Bits 7:0 PROCID[7:0]: Semaphore PROCID
Written by software
- - When the semaphore is free and the LOCK is written to 1, and the LOCKID matches the AHB bus master ID or CID, SEC and PRIV matches the AHB bus master definition, PROCID is set to the written data.
- - When the semaphore is unlocked, LOCK written to 0 and AHB bus master ID or CID matched LOCKID, SEC and PRIV matches the AHB bus master protection, the PROCID is cleared to 0.
- - When the semaphore is unlocked, LOCK bit written to 0 and AHB bus master ID or CID does not match LOCKID and/or SEC or PRIV do not match the AHB bus master definition, the PROCID is not affected.
- - Write when LOCK bit is already 1 (semaphore locked), the PROCID is not affected.
- - An authorized read returns the stored PROCID value.
22.5.2 HSEM read lock register semaphore x (HSEM_RLRx)
Address offset: 0x080+0x4*x (x = 0 to 15)
Reset value: 0x0000 0000
Accesses the same physical bits as HSEM_Rx. The HSEM_RLRx must be used to perform a 1-step read lock. Only read accesses with authorized AHB bus master IDs or CIDs are
granted. Read accesses with unauthorized AHB bus master IDs or CIDs are discarded and return 0. An unauthorized AHB bus master CID access generates an illegal access event.
When the semaphore x security attribute SECx is enabled the semaphore can only be locked by a secure access. A non-secure read access returns 0 and generates a secure illegal access event. When the semaphore x security attribute SECx is disabled both secure and non-secure accesses may lock the semaphore.
When the semaphore x privileged attribute PRIVx is enabled the semaphore can be locked only by a privileged access. An unprivileged read access reads 0 and generates a privileged illegal access event. When the semaphore x privileged attribute PRIVx is disabled both privileged and unprivileged accesses may lock the semaphore.
When the semaphore x CID white list filtering is enabled in HSEM_GpCIDCFGR.CFEN and HSEM_CnCIDCFGR.CFEN, the semaphore can only be locked by CIDs from the white list. A read access from CIDs not in the white list generates a CID illegal access event. When the semaphore x CID white list attribute filtering is disabled in HSEM_GpCIDCFGR.CFEN or HSEM_CnCIDCFGR.CFEN the semaphore can be locked by any valid MASTERID.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LOCK | CFEN | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| r | r | ||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | PRIV | SEC | LOCKID[3:0] | PROCID[7:0] | ||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | ||
Bit 31 LOCK: Lock indication
This bit is read only by software at this address.
- When the semaphore is free:
A read with a valid AHB bus master ID or CID and SEC and PRIV locks the semaphore and returns 1.
- When the semaphore is locked:
A read with a valid AHB bus master ID or CID and SEC and PRIV returns 1 (the LOCKID and SEC and PRIV and PROCID reflect the already locked semaphore information).
Bit 30 CFEN: Semaphore CID filter indication
This bit is updated by hardware when semaphore is locked with the CID filtering information in HSEM_GpCIDCFGR.CFEN and HSEM_CnCIDCFGR.CFEN. This bit is set only when CID filtering is enabled for at least one CID in both HSEM_GpCIDCFGR.CFEN and HSEM_CnCIDCFGR.CFEN.
0: Semaphore is free or locked and not CID filtered, LOCKID field indicates AHB bus master ID.
1: Semaphore is locked and CID filtered, LOCKID field indicated AHB bus master CID.
Bits 29:14 Reserved, must be kept at reset value.
Bit 13 PRIV: Semaphore privilege
This field is read only by software at this address.
- When the semaphore is free:
A read with a valid AHB bus master ID or CID and SEC and PRIV locks the semaphore and hardware sets the PRIV to the valid AHB bus master privileged definition.
- When the semaphore is locked:
A read with a valid AHB bus master ID or CID and SEC and PRIV returns the PRIV of the AHB bus master that has locked the semaphore.
0: Semaphore free or locked by unprivileged compartment.
1: Semaphore locked by privileged compartment.
Bit 12 SEC: Semaphore secure.
This field is read only by software at this address.
- When the semaphore is free:
A read with a valid AHB bus master ID or CID and SEC and PRIV locks the semaphore and hardware sets the SEC to the valid AHB bus master security definition.
- When the semaphore is locked:
A read with a valid AHB bus master ID or CID and SEC and PRIV returns the SEC of the AHB bus master that has locked the semaphore.
0: Semaphore free or locked by non-secure compartment.
1: Semaphore locked by secure compartment.
Bits 11:8 LOCKID[3:0]: Semaphore LOCKID
This field is read only by software at this address.
On a read, when the semaphore is free, the hardware sets the LOCKID to the AHB bus master ID reading the semaphore. The LOCKID of the AHB bus master locking the semaphore is read.
On a read when the semaphore is locked, this field returns the LOCKID of the AHB bus master that has locked the semaphore.
Bits 7:0 PROCID[7:0]: Semaphore processor ID
This field is read only by software at this address.
- On a read when the semaphore is free:
A read with a valid AHB bus master ID or CID and SEC and PRIV locks the semaphore and hardware sets the PROCID to 0.
- When the semaphore is locked:
A read with a valid AHB bus master ID or CID and SEC and PRIV returns the PROCID of the AHB bus master that has locked the semaphore.
22.5.3 HSEM non-secure interrupt enable register (HSEM_CnIER)
Address offset: 0x100+0x010*(n-1), (n = 1 to 3)
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| ISE[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 ISE[15:0]: Non-secure Interrupt(n) semaphore x enable bit (x = 0 to 15)
This bit is read and written by software.
When semaphore x SECx is disabled, bit x can be accessed with secure and non-secure access.
When semaphore x SECx is enabled, bit x is forced to 0 and cannot be accessed, write to this bit is discarded and a read returns 0.
When semaphore x PRIVx is disabled, bit x can be accessed with privilege and unprivileged access.
When semaphore x PRIVx is enabled, bit x can be accessed only with privileged access. Unprivileged write to this bit is discarded, unprivileged read returns 0.
When semaphore x CID white list is disabled by HSEM_GpCIDCFGR.CFEN, bit x can be accessed according the register global access definition shown above.
When semaphore x CID white list is enabled by HSEM_GpCIDCFGR.CFEN, bit x can only be accessed by the processor(s) as defined in the HSEM_CnCIDCFGR when the processor CID is part of the HSEM_GpCIDCFGR CID white list. When its CID is not in the white list bit x is reset to zero and can't be accessed, writing to this bit is discarded and read return 0 value.
0: Non-secure Interrupt(n) generation for semaphore x disabled (masked)
1: Non-secure Interrupt(n) generation for semaphore x enabled (not masked)
22.5.4 HSEM non-secure interrupt clear register (HSEM_CnICR)
Address offset: 0x104 + 0x010 * (n - 1), (n = 1 to 3)
Reset value: 0x0000 0000
Register global access: When CID filtering for processor[n] is enabled in HSEM_CnCIDCFGR, this register can be accessed only by the processor CID. An illegal CID access to this register generates a CID illegal access event. When CID filtering for processor[n] is disabled this register can be accessed by any bus master.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| ISC[15:0] | |||||||||||||||
| rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 ISC[15:0]: Non-secure Interrupt(n) semaphore x clear bit (x = 0 to 15)
This bit is written by software, and is always read 0.
When semaphore x SECx is disabled, bit x can be accessed with secure and non-secure access.
When semaphore x SECx is enabled, bit x cannot be accessed, write to this bit is discarded.
When semaphore x PRIVx is disabled, bit x can be accessed with privileged and unprivileged access.
When semaphore x PRIVx is enabled, bit x can only be accessed with privileged access. Unprivileged write to this bit is discarded.
When semaphore x CID white list is disabled by HSEM_GpCIDCFGR.CFEN, bit x can be accessed according to the register global access definition shown above.
When semaphore x CID white list is enabled by HSEM_GpCIDCFGR.CFEN, bit x can be accessed only by the processor(s) as defined in the HSEM_CnCIDCFGR when the processor CID is part of the HSEM_GpCIDCFGR CID white list. When its CID is not in the white list bit x is reset to 0 and cannot be accessed, writing to this bit is discarded and read returns 0.
0: non-secure Interrupt(n) semaphore x status ISFx and masked status MISFx not affected.
1: non-secure Interrupt(n) semaphore x status ISFx and masked status MISFx cleared.
22.5.5 HSEM non-secure interrupt status register (HSEM_CnISR)
Address offset: 0x108 + 0x010 * (n - 1), (n = 1 to 3)
Reset value: 0x0000 0000
Register global access: when CID filtering for processor[n] is enabled in
HSEM_CnCIDCFGR, this register can be accessed only by the processor CID. An illegal CID access generates a CID illegal access event. When CID filtering for processor[n] is disabled this register can be read by any bus master.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| ISF[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 ISF[15:0]: Interrupt semaphore x status bit before enable (mask) (x = 0 to 15)
This bit is set by hardware, and reset only by software. This bit is cleared by software writing the corresponding HSEM_CnICR bit.
0: Interrupt semaphore x status, no interrupt pending
1: Interrupt semaphore x status, interrupt pending
22.5.6 HSEM non-secure interrupt status register (HSEM_CnMISR)
Address offset: 0x10C + 0x010 * (n - 1), (n = 1 to 3)
Reset value: 0x0000 0000
Register global access: when CID filtering for processor[n] is enabled in
HSEM_CnCIDCFGR, this register can be accessed only by the processor CID. An illegal

CID access generates a CID illegal access event. When CID filtering for processor[n] is disabled this register can be read by any bus master.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| MISF[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 MISF[15:0]: Masked non-secure interrupt(n) semaphore x status bit after enable (mask) (x = 0 to 15)
This bit is set by hardware and read only by software. This bit is cleared by software writing the corresponding HSEM_CnICR bit. This bit is read as 0 when semaphore x status is masked in HSEM_CnIER bit x.
When semaphore x SECx is disabled, bit x can be accessed with secure and non-secure access.
When semaphore x SECx is enabled, bit x cannot be accessed, read returns 0.
When semaphore x PRIVx is disabled, bit x can be accessed with privileged and unprivileged access.
When semaphore x PRIVx is enabled, bit x can be accessed only with privileged access. Unprivileged read returns 0.
When semaphore x CID white list is disabled by HSEM_GpCIDCFGR.CFEN, bit x can be accessed according the register global access definition shown above.
When semaphore x CID white list is enabled by HSEM_GpCIDCFGR.CFEN, bit x can be accessed only by the processor(s) as defined in the HSEM_CnCIDCFGR when the processor CID is part of the HSEM_GpCIDCFGR CID white list. When its CID is not in the white list bit x is reset to 0 and cannot be accessed, read returns 0.
0: non-secure interrupt(n) semaphore x status after masking not pending
1: non-secure interrupt(n) semaphore x status after masking pending
22.5.7 HSEM secure interrupt enable register (HSEM_SCnIER)
Address offset: 0x180+0x010*(n-1), (n = 1 to 3)
Reset value: 0x0000 0000
Register global access: when CID filtering for processor[n] is enabled in HSEM_CnCIDCFGR, this register can be accessed only by the processor CID. An illegal
CID access to this register generates a CID illegal access event. When CID filtering for processor[n] is disabled this register can be accessed by any bus master.
This register provides access security, a non-secure write access is discarded and a non-secure read returns all 0. Both non-secure read and write generate a secure illegal access event.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SISE[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 SISE[15:0]: Secure interrupt(n) semaphore x enable bit (x = 0 to 15)
This bit is read and written by software.
When semaphore x PRIVx is disabled, bit x can be accessed with secure privilege and secure unprivileged access.
When semaphore x PRIVx is enabled, bit x can be accessed only with secure privilege access. secure unprivileged write to this bit is discarded, secure unprivileged read return 0 value.
When semaphore x CID white list is disabled by HSEM_GpCIDCFGR.CFEN, bit x can be accessed according the register global access definition shown above.
When semaphore x CID white list is enabled by HSEM_GpCIDCFGR.CFEN, bit x can be accessed only by the secure processor(s) as defined in the HSEM_CnCIDCFGR when the processor CID is part of the HSEM_GpCIDCFGR CID white list. When its CID is not in the white list bit x is reset to 0 and cannot be accessed, writing to this bit is discarded and read returns 0.
0: Secure interrupt(n) generation for semaphore x is disabled (masked).
1: Secure interrupt(n) generation for semaphore x is enabled (not masked).
22.5.8 HSEM secure interrupt clear register (HSEM_SCnICR)
Address offset: 0x184 + 0x010 * (n - 1), (n = 1 to 3)
Reset value: 0x0000 0000
Register global access: when CID filtering for processor[n] is enabled in HSEM_CnCIDCFGR, this register can be accessed only by the processor CID. An illegal CID access to this register generates a CID illegal access event. When CID filtering for processor[n] is disabled this register can be accessed by any bus master.
This register provides access security, a non-secure write access is discarded and a non-secure read returns all 0. Both non-secure read and write generate a secure illegal access event.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SISC[15:0] | |||||||||||||||
| rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 SISC[15:0]: Secure interrupt(n) semaphore x clear bit (x = 0 to 15)
This bit is written by software, and is always read 0.
When semaphore x PRIVx is disabled, bit x can be accessed with secure privilege and secure unprivileged access.
When semaphore x PRIVx is enabled, bit x can be accessed only with secure privilege access. Secure unprivileged write to this bit is discarded.
When semaphore x CID white list is disabled by HSEM_GpCIDCFGR.CFEN, bit x can be accessed according the register global access definition shown above.
When semaphore x CID white list is enabled by HSEM_GpCIDCFGR.CFEN, bit x can be accessed only by the secure processor(s) as defined in the HSEM_CnCIDCFGR when the processor CID is part of the HSEM_GpCIDCFGR CID white list. When its CID is not in the white list bit x is reset to 0 and cannot be accessed, writing to this bit is discarded and read returns 0.
0: Secure interrupt(n) semaphore x status ISFx and masked status MISFx not affected.
1: Secure interrupt(n) semaphore x status ISFx and masked status MISFx cleared.
22.5.9 HSEM secure interrupt status register (HSEM_SCnISR)
Address offset: 0x188 + 0x010 * (n - 1), (n = 1 to 3)
Reset value: 0x0000 0000
Register global access: When CID filtering for processor[n] is enabled in HSEM_CnCIDCFGR, this register can be accessed only by the processor CID. An illegal CID access to this register generates a CID illegal access event. When CID filtering for processor[n] is disabled this register can be read by any bus master.
This register provides access security, a non-secure read returns all 0. Both non-secure read and write generate a secure illegal access event.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SISF[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 SISF[15:0]: Secure interrupt(n) semaphore x status bit before enable (mask) (x = 0 to 15)
This bit is set by hardware and read only by software.
Bit is cleared by software writing the corresponding HSEM_SCnICR bit x.
When semaphore x PRIVx is disabled, bit x can be accessed with secure privilege and secure unprivileged access.
When semaphore x PRIVx is enabled, bit x can be accessed only with secure privilege access. Secure unprivileged read return 0 value.
When semaphore x CID white list is disabled by HSEM_GpCIDCFGR.CFEN, bit x can be accessed according the register global access definition shown above.
When semaphore x CID white list is enabled by HSEM_GpCIDCFGR.CFEN, bit x can be accessed only by the secure processor(s) as defined in the HSEM_CnCIDCFGR when the processor CID is part of the HSEM_GpCIDCFGR CID white list. When its CID is not in the white list bit x is reset to 0 and cannot be accessed, read return 0 value.
0: Secure interrupt(n) semaphore x status, no interrupt pending.
1: Secure interrupt(n) semaphore x status, interrupt pending.
22.5.10 HSEM secure masked interrupt status register (HSEM_SCnMISR)
Address offset: 0x18C + 0x010 * (n - 1), (n = 1 to 3)
Reset value: 0x0000 0000
Register global access: when CID filtering for processor[n] is enabled in HSEM_CnCIDCFGR, this register can be accessed only by the processor CID. An illegal CID access to this register generates a CID illegal access event. When CID filtering for processor[n] is disabled this register can be read by any bus master.
This register provides access security, a non-secure read returns all 0. Both non-secure read and write generate a secure illegal access event.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SMISF[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 SMISF[15:0]: Secure masked interrupt(n) semaphore x status bit after enable (mask) (x = 0 to 15)
- This bit is set by hardware and read only by software.
- Bit is cleared by software writing the corresponding HSEM_SCnICR bit x.
- Bit is read as 0 when semaphore x status is masked in HSEM_SCnIER bit x.
- When semaphore x PRIVx is disabled, bit x can be accessed with secure privilege and secure unprivileged access.
- When semaphore x PRIVx is enabled, bit x can be accessed only with secure privilege access. Secure unprivileged read return 0 value.
- When semaphore x CID white list is disabled by HSEM_GpCIDCFGR.CFEN, bit x can be accessed according the register global access definition shown above.
- When semaphore x CID white list is enabled by HSEM_GpCIDCFGR.CFEN, bit x can be accessed only by the secure processor(s) as defined in the HSEM_CnCIDCFGR when the processor CID is part of the HSEM_GpCIDCFGR CID white list. When its CID is not in the white list bit x is reset to 0 and cannot be accessed, read return 0 value.
- 0: Secure interrupt(n) semaphore x status after masking not pending.
- 1: Secure interrupt(n) semaphore x status after masking pending.
22.5.11 HSEM security configuration register (HSEM_SECCFGR)
Address offset: 0x200
Reset value: 0x0000 0000
This register provides write access security and privileged, a non-secure or unprivileged write access is discarded and generates an illegal access event. There is no read protection and the register data can be read by any accesses.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SEC[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 SEC[15:0]: Semaphore x security attribute (x = 0 to 15)
- This bit is set and cleared by software.
- When semaphore x CID white list is disabled by HSEM_GpCIDCFGR.CFEN, bit x can be written by any secure processor.
- When semaphore x CID white list is enabled by HSEM_GpCIDCFGR.CFEN, bit x can only be written by secure processor CIDs, which are part of the CID white list.
- All CIDs have read accesses to the register bit x value.
- 0: Semaphore x non-security, can be accessed by both secure and non-secure processors. When unlocking semaphore x both a secure and non-secure interrupt can be generated.
- 1: Semaphore x security, can be accessed only by secure processors. When unlocking semaphore x only a secure interrupt can be generated.
22.5.12 HSEM privilege configuration register (HSEM_PRIVCFGR)
Address offset: 0x210
Reset value: 0x0000 0000
This register provides write access privilege protection, an unprivileged write access is discarded and generate a privilege illegal access event. There is no read protection and the register data can be read by both privilege and unprivileged accesses.
There is no read protection and the register data can be read by both secure and non-secure accesses.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| PRIV[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 PRIV[15:0]: Semaphore x privilege attribute (x = 0 to 15)
This bit is set and cleared by software.
When semaphore x SECx is disabled, bit x can be write accessed with secure privileged and non-secure privileged access.
When semaphore x SECx is enabled, bit x can only be write accessed with secure privilege access. Non-secure privileged write access is discarded. Both secure and non-secure read return the register bit x value
When semaphore x CID white list is disabled by HSEM_GpCIDCFGR.CFEN, bit x can be written by any privilege processor.
When semaphore x CID white list is enabled by HSEM_GpCIDCFGR.CFEN, bit x can only be written by privileged processor CIDs, which are part of the CID white list.
All CIDs have read accesses to the register bit x value.
0: Semaphore x unprivileged, can be accessed by both privileged and unprivileged processors.
1: Semaphore x privileged, can be accessed only by privileged processors.
22.5.13 HSEM processor n CID configuration register (HSEM_CnCIDCFGR)
Address offset: 0x220 + 0x004 * (n - 1), (n = 1 to 3)
Reset value: 0x0000 0000
This register can be written only by the secure, privileged, trusted domain CID. An illegal write access generates a secure, privilege and or CID illegal access event.
This registers has no read access limitations, and can be read by any domain CID, and any access protection.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| CID[2:0] | Res. | Res. | Res. | ||||||||||||
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CFEN | |||||
| rw | rw | rw | rw | ||||||||||||
Bits 31:7 Reserved, must be kept at reset value.
Bits 6:4 CID[2:0]: processor[n] CID domain identification
If CFEN = 0 these bits are ignored and there is no processor[n] CID filtering. Else: processor[n] CID domain identification number.
Bits 3:1 Reserved, must be kept at reset value.
Bit 0 CFEN: processor[n] CID filtering enabled for HSEM_(S)CnIER, HSEM_(S)CnICR, HSEM_(S)CnISR, and HSEM_(S)CnMISR registers and for white list filter usage in HSEM_GpCIDCFGR.SEM_WLIST_Cn
0: disable the CID filtering for processor[n]
1: enable the CID filtering for processor[n]
22.5.14 HSEM clear register (HSEM_CR)
Address offset: 0x230
Reset value: 0x0000 0000
This register can be written only by the secure, privileged, trusted domain CID. A write access from any other protection level or domain CID is discarded and any read returns 0. Both illegal write and read access generate a secure, privileged and or CID illegal access event.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| KEY[15:0] | |||||||||||||||
| w | w | w | w | w | w | w | w | w | w | w | w | w | w | w | w |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | PRIV | SEC | LOCKID[3:0] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CFEN | |||
| w | w | w | w | w | w | w | |||||||||
Bits 31:16 KEY[15:0]: Semaphore clear key
This field can be written by software and is always read 0.
If this key value does not match HSEM_KEYR.KEY, semaphores are not affected.
If this key value matches HSEM_KEYR.KEY, all semaphores matching the LOCKID are cleared to the free state.
Bits 15:14 Reserved, must be kept at reset value.
Bit 13 PRIV: PRIV value of semaphores to be cleared.
This field can be written by software, is always read 0.
Indicates the PRIV for which the semaphores are cleared when writing the HSEM_CR.
Bit 12 SEC: SEC value of semaphores to be cleared.
This field can be written by software, is always read 0.
Indicates the SEC for which the semaphores are cleared when writing the HSEM_CR
Bits 11:8 LOCKID[3:0]: LOCKID of semaphores to be cleared
This field can be written by software and is always read 0.
This field indicates the LOCKID for which the semaphores are cleared when writing the HSEM_CR.
Bits 7:1 Reserved, must be kept at reset value.
Bit 0 CFEN: Semaphore CID filtered.
This field can be written by software, is always read 0.
0: Semaphore not CID filtered, LOCKID field represents MASTERID
1: Semaphore CID filtered, LOCKID field represents CID
22.5.15 HSEM clear semaphore key register (HSEM_KEYR)
Address offset: 0x234
Reset value: 0x0000 0000
This register can only be accessed by the secure, privileged, trusted domain CID. A write access from any other protection level or domain CID is discarded and any read returns 0. Both illegal write and read access generate a secure, privileged and or CID illegal access event.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| KEY[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
Bits 31:16 KEY[15:0]: Semaphore clear key
This field can be written and read by software.
Key value to match when clearing semaphores.
Bits 15:0 Reserved, must be kept at reset value.
22.5.16 HSEM CID configuration register (HSEM_GpCIDCFGR)
Address offset: 0x240 + 0x004 * p, (p = 0 to 3)
- • p = 0 Group HSEM3:0
- • p = 1 Group HSEM4:7
- • p = 2 Group HSEM8:11
- • p = 3 Group HSEM12:15
Reset value: 0x0000 0000
This register can be written only by the secure, privileged, trusted domain CID. A write access from any other protection level or domain CID is discarded and any read returns 0. Both illegal write and read accesses generate a secure, privileged and or CID illegal access event.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SEM_WLIST_C[3:1] | ||
| rw | rw | rw | |||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CFEN |
| rw | |||||||||||||||
Bits 31:19 Reserved, must be kept at reset value.
Bits 18:16 SEM_WLIST_C[3:1]: Semaphore group p CID filtering enable for processor n CID (n = 1 to 3).
This bit is set and cleared by software.
If CID filtering is disabled in HSEM_GpCIDCFGR.CFEN, these bits are ignored, else:
If CID filtering is disabled in HSEM_CnCIDCFGR.CFEN, bit n is ignored, (n = 1 to 3) and HSEM_CnCIDCFGR.CID is black listed, else:
0: Processor n CID as defined in HSEM_CnCIDCFGR.CID is black listed for Semaphore group p.
1: Processor n CID as defined in HSEM_CnCIDCFGR.CID is white listed for Semaphore group p.
Bits 15:1 Reserved, must be kept at reset value.
Bit 0 CFEN: Semaphore group p global CID filtering enable.
This bit is set and cleared by software.
0: Semaphore group p CID filtering disabled. (Group p semaphores can be accessed by all authorized MASTERIDs)
1: Semaphore group p CID filtering enabled. (Group p semaphores can only be accessed by white listed CIDs)
22.5.17 HSEM hardware configuration register 2 (HSEM_HWCFGR2)
Address offset: 0x3EC
Reset value: 0x0000 0321
| column_1 | column_2 | Bits 18:16 Bit 0 | group p. group p. CFEN: | column_5 | column_6 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | RM0457 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| MASTERID4[3:0] | MASTERID3[3:0] | MASTERID2[3:0] | MASTERID1[3:0] | ||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| Bits 15:12 | MASTERID4[3:0]: | Hardware configuration valid bus masters ID4 | |||||||||||||
| Bits 11:8 | MASTERID3[3:0]: | Hardware configuration valid bus masters ID3 | |||||||||||||
| Bits 7:4 | MASTERID2[3:0]: | Hardware configuration valid bus masters ID2 | |||||||||||||
| Bits 3:0 | MASTERID1[3:0]: | Hardware configuration valid bus masters ID1 |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:12 MASTERID4[3:0]: Hardware configuration valid bus masters ID4
Bits 11:8 MASTERID3[3:0]: Hardware configuration valid bus masters ID3
Bits 7:4 MASTERID2[3:0]: Hardware configuration valid bus masters ID2
Bits 3:0 MASTERID1[3:0]: Hardware configuration valid bus masters ID1
22.5.18 HSEM hardware configuration register 1 (HSEM_HWCFGR1)
Address offset: 0x3F0
Reset value: 0x0007 3310
| Bit 31 | Bit 30 | Bit 29 | Bit 28 | Bit 27 | Bit 26 | Bit 25 | Bit 24 | Bit 23 | Bit 22 | Bit 21 | Bit 20 | Bit 19 | Bit 18 | Bit 17 | Bit 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CF | PRIV | SEC |
| EN | EN | EN | |||||||||||||
| r | r | r | |||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| CID_WIDTH[3:0] | NBINT[3:0] | NBSEM[7:0] | |||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| Bit 18 | CFEN: | Hardware configuration compartment filtering enable | |||||||||||||
| Bit 17 | PRIVEN: | Hardware configuration privilege protection enable | |||||||||||||
| Bit 16 | SECEN: | Hardware configuration security protection enable | |||||||||||||
| Bits 15:12 | CID_WIDTH[3:0]: | Hardware configuration compartment isolation bus width | |||||||||||||
| Bits 11:8 | NBINT[3:0] | : Hardware configuration number of interrupts/supported number of master ID. | |||||||||||||
| Bits 7:0 | NBSEM[7:0]: | Hardware configuration number of semaphores | |||||||||||||
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MAJREV[3:0] | MINREV[3:0] | ||||||
| r | r | r | r | r | r | r | r | ||||||||
| Bits 7:4 | MAJREV[3:0] | : HSEM major revision number | |||||||||||||
| Bits 3:0 | MINREV[3:0] | : HSEM minor revision number | |||||||||||||
| RM0457 Rev 5 | 1335/ | 5881 |
Bits 31:19 Reserved, must be kept at reset value.
Bit 18 CFEN: Hardware configuration compartment filtering enable
Bit 17 PRIVEN: Hardware configuration privilege protection enable
Bit 16 SECEN: Hardware configuration security protection enable
Bits 15:12 CID_WIDTH[3:0]: Hardware configuration compartment isolation bus width
Bits 11:8 NBINT[3:0]: Hardware configuration number of interrupts/supported number of master ID.
Bits 7:0 NBSEM[7:0]: Hardware configuration number of semaphores
22.5.19 HSEM version register (HSEM_VERR)
Address offset: 0x3F4
Reset value: 0x0000 0020
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:4 MAJREV[3:0]: HSEM major revision number
Bits 3:0 MINREV[3:0]: HSEM minor revision number
22.5.20 HSEM identification register (HSEM_IPIDR)
Address offset: 0x3F8
Reset value: 0x0010 0072
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| IPID[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| IPID[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 IPID[31:0]: HSEM identifier
22.5.21 HSEM size identification register (HSEM_SIDR)
Address offset: 0x3FC
Reset value: 0xA3C5 DD01
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SID[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SID[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 SID[31:0]: HSEM size
22.5.22 HSEM register map
Table 189. HSEM register map and reset values
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x000 | HSEM_R0 | LOCK | CFEN | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PRIV | SEC | LOCKID [3:0] | PROCID[7:0] | ||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x004 | HSEM_R1 | LOCK | CFEN | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PRIV | SEC | LOCKID [3:0] | PROCID[7:0] | ||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| : | |||||||||||||||||||||||||||||||||
| 0x03C | HSEM_R15 | LOCK | CFEN | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PRIV | SEC | LOCKID [3:0] | PROCID[7:0] | ||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x080 | HSEM_RLR0 | LOCK | CFEN | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PRIV | SEC | LOCKID [3:0] | PROCID | ||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x084 | HSEM_RLR1 | LOCK | CFEN | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PRIV | SEC | LOCKID [3:0] | PROCID[7:0] | ||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| : | |||||||||||||||||||||||||||||||||
| 0x0BC | HSEM_RLR15 | LOCK | CFEN | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PRIV | SEC | LOCKID [3:0] | PROCID[7:0] | ||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x100 | HSEM_C1IER | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ISE[15:0] | |||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||
| 0x104 | HSEM_C1ICR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ISC[15:0] | |||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||
| 0x108 | HSEM_C1ISR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ISF[15:0] | |||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||
| 0x10C | HSEM_C1MISR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MISF[15:0] | |||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||
| 0x110 | HSEM_C2IER | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ISE[15:0] | |||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||
| 0x114 | HSEM_C2ICR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ISC[15:0] | |||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||
| 0x118 | HSEM_C2ISR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ISF[15:0] | |||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||

Table 189. HSEM register map and reset values (continued)
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x11C | HSEM_C2MISR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MISF[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x120 | HSEM_C3IER | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ISE[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x124 | HSEM_C3ICR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ISC[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x128 | HSEM_C3ISR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ISF[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x12C | HSEM_C3MISR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MISF[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x180 | HSEM_SC1IER | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SISE[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x184 | HSEM_SC1ICR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SISC[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x188 | HSEM_SC1ISR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SISF[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x18C | HSEM_SC1MISR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SMISF[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x190 | HSEM_SC2IER | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SISE[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x194 | HSEM_SC2ICR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SISC[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x198 | HSEM_SC2ISR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SISF[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x19C | HSEM_SC2MISR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SMISF[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x1A0 | HSEM_SC3IER | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SISE[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
Table 189. HSEM register map and reset values (continued)
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x1A4 | HSEM_SC3ICR | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | SISC[15:0] | ||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x1A8 | HSEM_SC3ISR | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | SISF[15:0] | ||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x1AC | HSEM_SC3MISR | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | SMISF[15:0] | ||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x200 | HSEM_SECCFGR | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | SEC[15:0] | ||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x210 | HSEM_PRIVCFGR | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | PRIV[15:0] | ||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x220 | HSEM_C1CIDCFGR | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | CID[2:0] | Res | Res | Res | Res | Res | Res | Res | CID[2:0] | Res | Res | Res | Res | CFEN | |||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| 0x224 | HSEM_C2CIDCFGR | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | CID[2:0] | Res | Res | Res | Res | Res | Res | Res | CID[2:0] | Res | Res | Res | Res | CFEN | |||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| 0x228 | HSEM_C3CIDCFGR | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | CID[2:0] | Res | Res | Res | Res | Res | Res | Res | CID[2:0] | Res | Res | Res | Res | CFEN | |||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| 0x230 | HSEM_CR | KEY[15:0] | Res | Res | PRIV | SEC | LOCKID[3:0] | Res | Res | Res | Res | Res | Res | Res | CFEN | |||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||
| 0x234 | HSEM_KEYR | KEY[15:0] | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | |||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x240 | HSEM_G0CIDCFGR | SEM_WLIST_C[3:1] | CFEN | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| 0x244 | HSEM_G1CIDCFGR | SEM_WLIST_C[3:1] | CFEN | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| : | ||||||||||||||||||||||||||||||||||
| 0x24C | HSEM_G3CIDCFGR | SEM_WLIST_C[3:1] | CFEN | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| 0x3EC | HSEM_HWCFGR2 | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | MASTERID4 | MASTERID3 | MASTERID2 | MASTERID1 | |||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | ||||||||||||||||||
Table 189. HSEM register map and reset values (continued)
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x3F0 | HSEM_HWCFGR1 | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | NBINT | NBSEM | ||||||||||
| Reset value | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | |||||||||||||||||||||
| 0x3F4 | HSEM_VERR | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | MAJREV | MINREV | ||||||
| Reset value | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x3F8 | HSEM_IPIDR | IPID | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | |
| 0x3FC | HSEM_SIDR | SID | |||||||||||||||||||||||||||||||
| Reset value | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | |
Refer to Section 2.4 on page 228 for the register boundary addresses.