stm32-data/data/registers/syscfg_h5.yaml
2023-09-28 18:50:30 -05:00

410 lines
15 KiB
YAML

block/SYSCFG:
description: SBS register block
items:
- name: HDPLCR
description: SBS temporal isolation control register
byte_offset: 16
fieldset: HDPLCR
- name: HDPLSR
description: SBS temporal isolation status register
byte_offset: 20
fieldset: HDPLSR
- name: NEXTHDPLCR
description: SBS next HDPL control register
byte_offset: 24
fieldset: NEXTHDPLCR
- name: DBGCR
description: SBS debug control register
byte_offset: 32
fieldset: DBGCR
- name: DBGLOCKR
description: SBS debug lock register
byte_offset: 36
fieldset: DBGLOCKR
- name: RSSCMDR
description: SBS RSS command register
byte_offset: 52
fieldset: RSSCMDR
- name: EPOCHSELCR
description: SBS EPOCH selection control register
byte_offset: 160
fieldset: EPOCHSELCR
- name: SECCFGR
description: SBS security mode configuration control register
byte_offset: 192
fieldset: SECCFGR
- name: PMCR
description: SBS product mode and configuration register
byte_offset: 256
fieldset: PMCR
- name: FPUIMR
description: SBS FPU interrupt mask register
byte_offset: 260
fieldset: FPUIMR
- name: MESR
description: SBS memory erase status register
byte_offset: 264
fieldset: MESR
- name: CCCSR
description: SBS compensation cell for I/Os control and status register
byte_offset: 272
fieldset: CCCSR
- name: CCVALR
description: SBS compensation cell for I/Os value register
byte_offset: 276
fieldset: CCVALR
- name: CCSWCR
description: SBS compensation cell for I/Os software code register
byte_offset: 280
fieldset: CCSWCR
- name: CFGR2
description: SBS Class B register
byte_offset: 288
fieldset: CFGR2
- name: CNSLCKR
description: SBS CPU non-secure lock register
byte_offset: 324
fieldset: CNSLCKR
- name: CSLCKR
description: SBS CPU secure lock register
byte_offset: 328
fieldset: CSLCKR
- name: ECCNMIR
description: SBS flift ECC NMI mask register
byte_offset: 332
fieldset: ECCNMIR
fieldset/CCCSR:
description: SBS compensation cell for I/Os control and status register
fields:
- name: EN
description: "enable compensation cell for VDDIO power rail\r This bit enables the I/O compensation cell."
bit_offset: 0
bit_size: 1
array:
len: 2
stride: 2
- name: CS
description: "code selection for VDDIO power rail (reset value set to 1)\r This bit selects the code to be applied for the I/O compensation cell."
bit_offset: 1
bit_size: 1
array:
len: 2
stride: 2
enum: CS
- name: RDY
description: "VDDIO compensation cell ready flag\r This bit provides the status of the compensation cell."
bit_offset: 8
bit_size: 1
array:
len: 2
stride: 1
fieldset/CCSWCR:
description: SBS compensation cell for I/Os software code register
fields:
- name: SW_ANSRC1
description: "NMOS compensation code for VDD power rails\r This bitfield is written by software to define an I/O compensation cell code for NMOS transistors of the VDD power rail. This code is applied to the I/O when CS1 is set in SBS_CCSR."
bit_offset: 0
bit_size: 4
- name: SW_APSRC1
description: "PMOS compensation code for the VDD power rails\r This bitfield is written by software to define an I/O compensation cell code for PMOS transistors of the VDDIO power rail. This code is applied to the I/O when CS1 is set in SBS_CCSR."
bit_offset: 4
bit_size: 4
- name: SW_ANSRC2
description: "NMOS compensation code for VDDIO power rails\r This bitfield is written by software to define an I/O compensation cell code for NMOS transistors of the VDD power rail. This code is applied to the I/O when CS2 is set in SBS_CCSR."
bit_offset: 8
bit_size: 4
- name: SW_APSRC2
description: "PMOS compensation code for the VDDIO power rails\r This bitfield is written by software to define an I/O compensation cell code for PMOS transistors of the VDDIO power rail. This code is applied to the I/O when CS2 is set in SBS_CCSR."
bit_offset: 12
bit_size: 4
fieldset/CCVALR:
description: SBS compensation cell for I/Os value register
fields:
- name: ANSRC1
description: "compensation value for the NMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range."
bit_offset: 0
bit_size: 4
- name: APSRC1
description: "compensation value for the PMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range."
bit_offset: 4
bit_size: 4
- name: ANSRC2
description: "Compensation value for the NMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range."
bit_offset: 8
bit_size: 4
- name: APSRC2
description: "compensation value for the PMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range."
bit_offset: 12
bit_size: 4
fieldset/CFGR2:
description: SBS Class B register
fields:
- name: CLL
description: "core lockup lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the lockup (HardFault) output of Cortex-M33 with TIM1/8/15/16/17 break inputs."
bit_offset: 0
bit_size: 1
- name: SEL
description: "SRAM ECC error lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the SRAM double ECC error signal with break input of TIM1/8/15/16/17."
bit_offset: 1
bit_size: 1
- name: PVDL
description: "PVD lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the PVD connection with TIM1/8/15/16/17 break inputs."
bit_offset: 2
bit_size: 1
- name: ECCL
description: "ECC lock\r This bit is set and cleared by software. It can be used to enable and lock the Flash memory double ECC error with break input of TIM1/8/15/6/17."
bit_offset: 3
bit_size: 1
fieldset/CNSLCKR:
description: SBS CPU non-secure lock register
fields:
- name: LOCKNSVTOR
description: "VTOR_NS register lock\r This bit is set by software and cleared only by a system reset."
bit_offset: 0
bit_size: 1
- name: LOCKNSMPU
description: "non-secure MPU register lock\r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to non-secure MPU_CTRL_NS, MPU_RNR_NS and MPU_RBAR_NS registers."
bit_offset: 1
bit_size: 1
fieldset/CSLCKR:
description: SBS CPU secure lock register
fields:
- name: LOCKSVTAIRCR
description: "VTOR_S and AIRCR register lock\r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to VTOR_S register, PRIS and BFHFNMINS bits in the AIRCR register."
bit_offset: 0
bit_size: 1
- name: LOCKSMPU
description: "secure MPU registers lock\r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to secure MPU_CTRL, MPU_RNR and MPU_RBAR registers."
bit_offset: 1
bit_size: 1
- name: LOCKSAU
description: "SAU registers lock\r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to SAU_CTRL, SAU_RNR, SAU_RBAR and SAU_RLAR registers."
bit_offset: 2
bit_size: 1
fieldset/DBGCR:
description: SBS debug control register
fields:
- name: AP_UNLOCK
description: "access port unlock\r Write 0xB4 to this bitfield to open the device access port."
bit_offset: 0
bit_size: 8
- name: DBG_UNLOCK
description: "debug unlock when DBG_AUTH_HDPL is reached\r Write 0xB4 to this bitfield to open the debug when HDPL in SBS_HDPLSR equals to DBG_AUTH_HDPL in this register."
bit_offset: 8
bit_size: 8
- name: DBG_AUTH_HDPL
description: "authenticated debug temporal isolation level\r Writing to this bitfield defines at which HDPL the authenticated debug opens.\r Note: Writing any other values is ignored. Reading any other value means the debug never opens."
bit_offset: 16
bit_size: 8
enum: DBG_AUTH_HDPL
- name: DBG_AUTH_SEC
description: "control debug opening secure/non-secure\r Write 0xB4 to this bitfield to open debug for secure and non-secure.\r Writing any other values only open non-secure."
bit_offset: 24
bit_size: 8
fieldset/DBGLOCKR:
description: SBS debug lock register
fields:
- name: DBGCFG_LOCK
description: "debug configuration lock\r Reading this bitfield returns 0x6A if the bitfield value is different from 0xB4.\r 0xC3 is the recommended value to lock the debug configuration using this bitfield.\r Other: Writes to SBS_DBGCR ignored"
bit_offset: 0
bit_size: 8
enum: DBGCFG_LOCK
fieldset/ECCNMIR:
description: SBS flift ECC NMI mask register
fields:
- name: ECCNMI_MASK_EN
description: NMI behavior setup when a double ECC error occurs on flitf data part
bit_offset: 0
bit_size: 1
fieldset/EPOCHSELCR:
description: SBS EPOCH selection control register
fields:
- name: EPOCH_SEL
description: "select EPOCH value to be sent to the SAES\r 1x: EPOCH forced to zero (value used to retrieve PUF reference value at boot time)"
bit_offset: 0
bit_size: 2
enum: EPOCH_SEL
fieldset/FPUIMR:
description: SBS FPU interrupt mask register
fields:
- name: FPU_IE
description: "FPU interrupt enable\r Set and cleared by software to enable the Cortex-M33 FPU interrupts\r FPU_IE[5]: inexact interrupt enable (interrupt disabled at reset)\r FPU_IE[4]: input abnormal interrupt enable\r FPU_IE[3]: overflow interrupt enable\r FPU_IE[2]: underflow interrupt enable\r FPU_IE[1]: divide-by-zero interrupt enable\r FPU_IE[0]: invalid operation interrupt enable"
bit_offset: 0
bit_size: 6
fieldset/HDPLCR:
description: SBS temporal isolation control register
fields:
- name: INCR_HDPL
description: "increment HDPL value\r Other: all other values allow a HDPL level increment."
bit_offset: 0
bit_size: 8
enum: INCR_HDPL
fieldset/HDPLSR:
description: SBS temporal isolation status register
fields:
- name: HDPL
description: "temporal isolation level\r This bitfield returns the current temporal isolation level."
bit_offset: 0
bit_size: 8
enum: HDPL
fieldset/MESR:
description: SBS memory erase status register
fields:
- name: MCLR
description: "erase after reset status\r This bit shows the status of the protection for SRAM2, BKPRAM, ICACHE, DCACHE, ICACHE and PKA. It is set by hardware and reset by software"
bit_offset: 0
bit_size: 1
- name: IPMEE
description: "end-of-erase status for ICACHE and PKA RAM\r This bit shows the status of the protection for ICACHE and PKA. It is set by hardware and reset by software."
bit_offset: 16
bit_size: 1
fieldset/NEXTHDPLCR:
description: SBS next HDPL control register
fields:
- name: NEXTHDPL
description: "index to point to a higher HDPL than the current one\r Index to add to the current HDPL to point (through OBK-HDPL) to the next secure storage areas (OBK-HDPL = HDPL + NEXTHDPL). See for more details."
bit_offset: 0
bit_size: 2
fieldset/PMCR:
description: SBS product mode and configuration register
fields:
- name: BOOSTEN
description: "booster enable\r Set this bit to reduce the total harmonic distortion of the analog switch when the processor supply is below 2.7 V. The booster can be activated to guaranty AC performance on analog switch when the supply is below 2.7 V. When the booster is activated, the analog switch performances are the same as with the full voltage range."
bit_offset: 8
bit_size: 1
- name: BOOSTVDDSEL
description: "booster VDD selection\r Note: Booster must not be used when VDDA < 2.7 V, but VDD > 2.7 V (add current consumption).\r When both VDD < 2.7 V and VDDA < 2.7 V, booster is needed to get full AC performances from I/O analog switches."
bit_offset: 9
bit_size: 1
- name: PB6_FMPLUS
description: Fast-mode Plus command on PB(6)
bit_offset: 16
bit_size: 1
- name: PB7_FMPLUS
description: Fast-mode Plus command on PB(7)
bit_offset: 17
bit_size: 1
- name: PB8_FMPLUS
description: Fast-mode Plus command on PB(8)
bit_offset: 18
bit_size: 1
- name: PB9_FMPLUS
description: Fast-mode Plus command on PB(9)
bit_offset: 19
bit_size: 1
- name: ETH_SEL_PHY
description: "Ethernet PHY interface selection\r Other: reserved"
bit_offset: 21
bit_size: 3
enum: ETH_SEL_PHY
fieldset/RSSCMDR:
description: SBS RSS command register
fields:
- name: RSSCMD
description: "RSS command\r The application can use this bitfield to pass on a command to the RSS, executed at the next reset.\r When RSSCMD ≠ 0 and PRODUCT_STATE is in Open, then the system always boots on RSS whatever is the boot pin value."
bit_offset: 0
bit_size: 16
fieldset/SECCFGR:
description: SBS security mode configuration control register
fields:
- name: SBSSEC
description: SBS clock control, memory-erase status register and compensation cell register security enable
bit_offset: 0
bit_size: 1
enum: SEC
- name: CLASSBSEC
description: ClassB security enable
bit_offset: 1
bit_size: 1
enum: SEC
- name: FPUSEC
description: "FPU security enable\r Note: This bit can only be written through privilege transaction."
bit_offset: 3
bit_size: 1
enum: SEC
- name: SDCE_SEC_EN
description: control accessibility of SMPS_DIV_CLOCK _EN in SBS_PMCR
bit_offset: 31
bit_size: 1
enum/CS:
bit_size: 1
variants:
- name: Cell
description: Code from the cell (available in the SBS_CCVR)
value: 0
- name: Software
description: Code from SBS_CCCR
value: 1
enum/DBGCFG_LOCK:
bit_size: 8
variants:
- name: B_0xB4
description: Writes to SBS_DBGCR allowed (default)
value: 180
enum/DBG_AUTH_HDPL:
bit_size: 8
variants:
- name: B_0x51
description: HDPL1
value: 81
- name: B_0x6F
description: HDPL3
value: 111
- name: B_0x8A
description: HDPL2
value: 138
enum/EPOCH_SEL:
bit_size: 2
variants:
- name: B_0x0
description: SEC_EPOCH counter input selected
value: 0
- name: B_0x1
description: NS_EPOCH (non-secure) input selected
value: 1
enum/ETH_SEL_PHY:
bit_size: 3
variants:
- name: B_0x0
description: GMII or MII
value: 0
- name: B_0x1
description: reserved (RGMII)
value: 1
- name: B_0x4
description: RMII
value: 4
enum/HDPL:
bit_size: 8
variants:
- name: B_0x51
description: HDPL1, iRoT
value: 81
- name: B_0x6F
description: HDPL3, application (secure/non-secure)
value: 111
- name: B_0x8A
description: HDPL2, uRoT
value: 138
- name: B_0xB4
description: HDPL0, RSS
value: 180
enum/INCR_HDPL:
bit_size: 8
variants:
- name: B_0x6A
description: recommended value to increment HDPL level by one
value: 106
- name: B_0xB4
description: no increment
value: 180
enum/SEC:
bit_size: 1
variants:
- name: B_0x0
description: SBS_CFGR2 register accessible through secure or non-secure transaction
value: 0
- name: B_0x1
description: SBS_CFGR2 register only accessible through secure transaction
value: 1