6. RAMs configuration controller (RAMCFG)

6.1 RAMCFG introduction

The RAMCFG configures the features of the internal SRAMs (SRAM1, SRAM2, SRAM3, and BKPSRAM).

6.2 RAMCFG main features

The internal SRAMs support the features listed hereafter, configured in RAMCFG:

6.3 RAMCFG functional description

6.3.1 Internal SRAMs features

Four SRAMs are embedded in the devices, each with specific features:

Table 42. SRAMs density (Kbytes)

ProductsSRAM1SRAM2SRAM3
STM32H562/63/73xx25664320
STM32H523/33xx1288064
STM32H543/53xx1288096

Table 43 summarizes the features supported by each internal SRAM.

Table 43. Internal SRAMs features

SRAM featureSRAM1SRAM2SRAM3BKPSRAM
Optional retention in Standby mode---X
Optional retention in VBAT mode---X
Optional retention in Stop modeXXXX
Erased with product state regressionXXXX
Erased with tamper detection-X-X(1)
Erased with Backup domain reset---X
Optionally erased with system resetXXX-
Software eraseXXXX
ECC-XX(2)X
Write protection-X--

1. Optional: BKPSRAM can be configured to be erased or not on tamper detection.

2. Not available on STM32H523/33xx devices.

6.3.2 Error code correction (SRAM2, SRAM3, BKPSRAM)

The ECC is supported by SRAM2, SRAM3(a) and BKPSRAM when enabled with the SRAM2_ECC, SRAM3_ECC(b) and BKPRAM_ECC user option bits. Refer to Section 7: Embedded flash memory (FLASH) for more details.

Seven ECC bits are added per 32 bits of SRAM, allowing two bits error detection and one bit error correction on memory read access.

As the ECC is calculated and checked for a 32-bit word, the byte and half-word write accesses are managed by the SRAM interface by first reading the whole word, then write the word again with the new byte/half-word value. ECC double errors are also detected during these byte or half-word AHB write accesses (read/modify/write done by interface). The byte or half-word write access latency is two AHB clock cycles.

Caution: In case of a byte or half-word write on SRAM with ECC, the read/modify/write operation is done in a buffer. The buffer content is written into the SRAM two AHB clock cycles after the SRAM AHB is released (when SRAM is no more accessed).

Single and double ECC errors

When a single error is detected, it is automatically corrected. SEDC and CSEDC bits are set, respectively, in the RAMCFG memory interrupt status register (RAMCFG_MxISR) and RAMCFG memory x interrupt clear register x (RAMCFG_MxICR). The associated ECC single error address is updated only if the single error interrupt is enabled (SEIE bit of RAMCFG memory x interrupt enable register (RAMCFG_MxIER) is set). An interrupt is

a. Not available on STM32H523/33xx devices.

b. Refer to the device datasheet for the actual availability. If not present, consider this bit as reserved, and keep it at reset value.

generated if enabled by the SEIE bit. The failing address is stored in the RAMCFG memory x ECC single error address register (RAMCFG_MxSEAR) if the ALE bit is set in the RAMCFG memory x control register (RAMCFG_MxCR).

Caution: Single errors cannot be detected when the SEDC bit is set.

When a double error is detected, the DED and CDDED bits are set in the RAMCFG memory interrupt status register (RAMCFG_MxISR) and RAMCFG memory x interrupt clear register x (RAMCFG_MxICR), respectively. The associated ECC double error address is updated only if double error interrupt or NMI is enabled (DEIE bit or ECCNMI bit of RAMCFG memory x interrupt enable register (RAMCFG_MxIER) is set). An interrupt or NMI is generated if enabled by the DEIE or ECCNMI bit in the RAMCFG memory x interrupt enable register (RAMCFG_MxIER). The failing address is stored in the RAMCFG memory x ECC double error address register (RAMCFG_MxDEAR) if the ALE bit is set in the RAMCFG memory x control register (RAMCFG_MxCR).

Caution: Double errors cannot be detected when the DED bit is set.

SRAM3 ECC specific management

On STM32H562/563/573xx devices, when the ECC is enabled for SRAM3, only the first 256 Kbytes of SRAM3 are with ECC. The next 64 Kbytes are without ECC, and the last block is used to store the ECC, hence it cannot be used by the application.

On STM32H543/553xx devices, when the ECC is enabled for SRAM3, only the first 64 Kbytes of SRAM3 are with ECC. The next 16 Kbytes are without ECC, and the last block is used to store the ECC, hence it cannot be used by the application.

Figure 21 shows the SRAM areas, when SRAM2 and SRAM3 ECC are enabled. Figure 22 shows the SRAM areas, when SRAM2 ECC and SRAM3 are enabled. Figure 23 shows the SRAM areas, when SRAM2 and SRAM3 ECC are enabled.

Figure 21. Memory map: SRAM1, SRAM2/3 with ECC (STM32H562/63/73xx devices)

Memory map diagram for STM32H562/63/73xx devices showing SRAM1, SRAM2, and SRAM3 with ECC enabled. The diagram shows address offsets from 0x0 to 0x9 FFFF. SRAM3 (0x8 FFFF to 0x9 FFFF) is 64 Kbytes. SRAM2 (0x4 FFFF to 0x5 0000) is 48 Kbytes. SRAM1 (0x0 to 0x3 FFFF) is 64 Kbytes. The diagram also shows a 'Reserved (ECC storage)' area for SRAM3 and SRAM2.
SRAM AreaAddress OffsetSizeECC
SRAM30x9 FFFF64 KbytesSRAM with ECC
0x9 000064 Kbytes
0x8 FFFF64 Kbytes
64 Kbytes
64 Kbytes
SRAM20x5 000048 KbytesSRAM with ECC
0x4 FFFF16 Kbytes
SRAM10x4 000064 KbytesSRAM without ECC
0x3 FFFF64 Kbytes
64 Kbytes
64 Kbytes
0x064 Kbytes

MSv68813V1

Memory map diagram for STM32H562/63/73xx devices showing SRAM1, SRAM2, and SRAM3 with ECC enabled. The diagram shows address offsets from 0x0 to 0x9 FFFF. SRAM3 (0x8 FFFF to 0x9 FFFF) is 64 Kbytes. SRAM2 (0x4 FFFF to 0x5 0000) is 48 Kbytes. SRAM1 (0x0 to 0x3 FFFF) is 64 Kbytes. The diagram also shows a 'Reserved (ECC storage)' area for SRAM3 and SRAM2.

Figure 22. Memory map: SRAM1/3, SRAM2 with ECC (STM32H523/33xx devices)

Memory map diagram for STM32H523/33xx devices showing SRAM1, SRAM2, and SRAM3 with ECC enabled. The diagram shows address offsets from 0x0 to 0x4 3FFF. SRAM3 (0x3 4000 to 0x4 3FFF) is 64 Kbytes. SRAM2 (0x2 0000 to 0x3 3FFF) is 48 Kbytes. SRAM1 (0x0 to 0x1 FFFF) is 64 Kbytes. The diagram also shows a 'Without ECC' area for SRAM3 and SRAM2.
SRAM AreaAddress OffsetSizeECC
SRAM30x4 3FFF64 KbytesWithout ECC
0x3 400064 Kbytes
SRAM20x3 3FFF48 KbytesWith ECC
16 Kbytes
16 Kbytes
SRAM10x2 000064 KbytesWithout ECC
0x1 FFFF64 Kbytes
0x064 Kbytes

MSv56369V1

Memory map diagram for STM32H523/33xx devices showing SRAM1, SRAM2, and SRAM3 with ECC enabled. The diagram shows address offsets from 0x0 to 0x4 3FFF. SRAM3 (0x3 4000 to 0x4 3FFF) is 64 Kbytes. SRAM2 (0x2 0000 to 0x3 3FFF) is 48 Kbytes. SRAM1 (0x0 to 0x1 FFFF) is 64 Kbytes. The diagram also shows a 'Without ECC' area for SRAM3 and SRAM2.

Figure 23. Memory map: SRAM1, SRAM2/3 with ECC (STM32H543/53xx devices)

Memory map diagram for SRAM1, SRAM2, and SRAM3 with ECC. The diagram shows address offsets and memory sizes for each SRAM block. SRAM3 is at the top, followed by SRAM2, and SRAM1 at the bottom. Address offsets are shown on the left, and memory sizes are shown on the right. A vertical label 'With ECC' is on the right side of the SRAM2 and SRAM3 blocks, and 'Without ECC' is on the right side of the SRAM1 block. A small box labeled 'Reserved (ECC storage)' is at the top right.
SRAM BlockAddress OffsetSizeECC Status
SRAM30x4 C00016 KbytesReserved (ECC storage)
0x4 800016 Kbytes
0x4 7FFF
0x4 4000
16 KbytesWith ECC
0x4 3FFF64 Kbytes
SRAM20x3 400048 KbytesWith ECC
0x3 3FFF16 Kbytes
0x2 000016 Kbytes
SRAM10x1 FFFF64 KbytesWithout ECC
0x064 Kbytes

MSv78003V1

Memory map diagram for SRAM1, SRAM2, and SRAM3 with ECC. The diagram shows address offsets and memory sizes for each SRAM block. SRAM3 is at the top, followed by SRAM2, and SRAM1 at the bottom. Address offsets are shown on the left, and memory sizes are shown on the right. A vertical label 'With ECC' is on the right side of the SRAM2 and SRAM3 blocks, and 'Without ECC' is on the right side of the SRAM1 block. A small box labeled 'Reserved (ECC storage)' is at the top right.

When ECC is enabled by user option bits, the ECCE bit is automatically set after system reset in the related RAMCFG memory x control register (RAMCFG_MxCR).

The ECC can be deactivated by executing the following software sequence:

  1. 1. Write 0xAE in the RAMCFG memory x ECC key register (RAMCFG_MxECCKEYR).
  2. 2. Write 0x75 in the RAMCFG memory x ECC key register (RAMCFG_MxECCKEYR).
  3. 3. Write 0 in the ECCE bit of the RAMCFG memory x control register (RAMCFG_MxCR).

When ECC is deactivated (ECCE = 0), the SRAM3 ECC storage area can be read and written for ECC user test purpose. When the ECC is activated (ECCE = 1), this area is reserved for ECC storage purpose and cannot be neither read, nor written.

6.3.3 Write protection (SRAM2)

The SRAM2 is made of 1-Kbyte pages, each of them can be write-protected by setting its corresponding PxWP bit in the RAMCFG memory 2 write protection register 1 (RAMCFG_M2WPR1), RAMCFG memory 2 write protection register 2 (RAMCFG_M2WPR2), and RAMCFG memory 2 write protection register 3 (RAMCFG_M2WPR3)(a).

Table 44. SRAM2 features

ProductsPage sizeNumber of pagesPxWP bits
STM32H562/63/73xx1 Kbyte640 to 63

a. This register is available only on STM32H523/533/543/553xx devices. If not present, consider this register as reserved, and keep its bits at reset value.

Table 44. SRAM2 features (continued)

ProductsPage sizeNumber of pagesPxWP bits
STM32H523/33xx1 Kbyte800 to 79
STM32H543/53xx

6.3.4 Software erase

SRAM erase can be requested by executing this software sequence:

  1. 1. Write 0xCA in the RAMCFG memory x erase key register (RAMCFG_MxERKEYR).
  2. 2. Write 0x53 in the RAMCFG memory x erase key register (RAMCFG_MxERKEYR).
  3. 3. Write 1 in the SRAMER bit of the RAMCFG memory x control register (RAMCFG_MxCR).

SRAMBUSY flag is set in the related SRAM interrupt status register as long as the erase is ongoing.

The total duration of each SRAM erase is N AHB clock cycles, where N is the size of the SRAM in 32-bit words.

If the SRAM is read or written while an erase is ongoing, wait states are inserted on the AHB bus until the end of the operation.

6.4 RAMCFG low-power modes

Table 45. Effect of low-power modes on RAMCFG

ModeDescription
SleepNo effect. RAMCFG interrupts cause the device to exit the Sleep mode
StopThe content of RAMCFG registers is kept
StandbyThe RAMCFG peripheral is powered down and must be reinitialized after exiting Standby

6.5 RAMCFG interrupts

Table 46. RAMCFG interrupt requests

Interrupt acronymInterrupt eventEvent flagEnable control bit(s)Interrupt clear methodExit Sleep modeExit Stop modeExit Standby modes
RAMCFGECC single error detection and correctionSEDCSEIEWrite 1 in CSEDCYesNoNo
ECC double error detectionDEDDEIE = 1 and ECCNMI = 0Write 1 in CDEDYesNoNo
NMIECC double error detectionDEDECCNMIWrite 1 in CDEDYesNoNo

6.6 RAMCFG registers

In the registers described below, x refers to:

6.6.1 RAMCFG memory x control register (RAMCFG_MxCR)

Address offset: 0x000+0x040*(x-1), (x = 1, 2, 3, 5)

Reset value: 0x0000 000X

ECCE reset value depends on ECC enable user option bit.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.SRAMERRes.Res.Res.ALERes.Res.Res.ECCE
rsrwrw

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

Bit 8 SRAMER: SRAM erase

This bit can be set by software only after writing the unlock sequence in the ERASEKEY field of the RAMCFG_MxERKEYR register. Setting this bit starts the SRAM erase. This bit is automatically cleared by hardware at the end of the erase operation.

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

Bit 4 ALE: Address latch enable

Note: For SRAM1 and SRAM3 (when ECC is not available) this bit is reserved and must be kept at reset value in control registers.

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

Bit 0 ECCE: ECC enable.

This bit reset value is defined by the user option bit configuration. When set, it can be cleared by software only after writing the unlock sequence in the RAMCFG_MxECCKEYR register.

Note: For SRAM1 and SRAM3 (when ECC is not available) this bit is reserved and must be kept at reset value in control registers.

6.6.2 RAMCFG memory x interrupt enable register (RAMCFG_MxIER)

Address offset: 0x004+0x040*(x-1), (x = 2, 3, 5)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ECCNMIRes.DEIESEIE
rsrwrw

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

Bit 3 ECCNMI: Double error NMI

This bit is set by software and cleared only by a global RAMCFG reset.

0: NMI not generated in case of ECC double error

1: NMI generated in case of ECC double error

Note: if ECCNMI is set, the RAMCFG maskable interrupt is not generated whatever DEIE bit value.

Bit 2 Reserved, must be kept at reset value.

Bit 1 DEIE: ECC double error interrupt enable

0: Double error interrupt disabled

1: Double error interrupt enabled

Bit 0 SEIE: ECC single error interrupt enable

0: Single error interrupt disabled

1: Single error interrupt enabled

6.6.3 RAMCFG memory interrupt status register (RAMCFG_MxISR)

Address offset: 0x008 + 0x040 * (x - 1), (x = 1, 2, 3, 5)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.SRAM
BUSY
Res.Res.Res.Res.Res.Res.DEDSEDC
rrr

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

Bit 8 SRAMBUSY: SRAM busy with erase operation

0: No erase operation on going

1: Erase operation on going

Note: Depending on the SRAM, the erase operation can be performed due to software request, system reset if the option bit is enabled, tamper detection or readout protection regression. Refer to Table 43.

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

Bit 1 DED: ECC double error detected

0: No double error

1: Double error detected

Note: For SRAM1 and SRAM3 (when ECC is not available) this bit is reserved and must be kept at reset value in control registers.

Bit 0 SEDC: ECC single error detected and corrected

0: No single error

1: Single error detected and corrected

Note: For SRAM1 and SRAM3 (when ECC is not available) this bit is reserved and must be kept at reset value in control registers.

6.6.4 RAMCFG memory x ECC single error address register (RAMCFG_MxSEAR)

Address offset: 0x00C+0x040*(x-1), (x = 2,3,5)

Reset value: 0x0000 0000

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

Bits 31:0 ESEA[31:0]: ECC single error address

When the ALE bit is set in the RAMCFG_MxCR register, this field is updated with the address corresponding to the ECC single error.

6.6.5 RAMCFG memory x ECC double error address register (RAMCFG_MxDEAR)

Address offset: 0x010+0x040*(x-1), (x = 2,3,5)

Reset value: 0x0000 0000

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

Bits 31:0 EDEA[31:0]: ECC double error address

When the ALE bit is set in the RAMCFG_MxCR register, this field is updated with the address corresponding to the ECC double error.

6.6.6 RAMCFG memory x interrupt clear register x (RAMCFG_MxICR)

Address offset: 0x014+0x040*(x-1), (x = 2,3,5)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CDEDCSEDC
rwrw

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

Bit 1 CDED : Clear ECC double error detected

Writing 1 to this flag clears the DED bit in the RAMCFG_MxISR register. Reading this flag returns the DED value.

Bit 0 CSEDC : Clear ECC single error detected and corrected

Writing 1 to this flag clears the SEDC bit in the RAMCFG_MxISR register. Reading this flag returns the SEDC value.

6.6.7 RAMCFG memory 2 write protection register 1 (RAMCFG_M2WPR1)

Address offset: 0x058

Reset value: 0x0000 0000

31302928272625242322212019181716
P31WPP30WPP29WPP28WPP27WPP26WPP25WPP24WPP23WPP22WPP21WPP20WPP19WPP18WPP17WPP16WP
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs
1514131211109876543210
P15WPP14WPP13WPP12WPP11WPP10WPP9WPP8WPP7WPP6WPP5WPP4WPP3WPP2WPP1WPP0WP
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs
Bits 31:0 PyWP : SRAM2 1-Kbyte page y write protection (y = 31 to 0)

These bits are set by software and cleared only by a global RAMCFG reset.

0: Write protection of SRAM2 1-Kbyte page y is disabled.

1: Write protection of SRAM2 1-Kbyte page y is enabled.

6.6.8 RAMCFG memory 2 write protection register 2 (RAMCFG_M2WPR2)

Address offset: 0x05C

Reset value: 0x0000 0000

31302928272625242322212019181716
P63WPP62WPP61WPP60WPP59WPP58WPP57WPP56WPP55WPP54WPP53WPP52WPP51WPP50WPP49WPP48WP
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs
1514131211109876543210
P47WPP46WPP45WPP44WPP43WPP42WPP41WPP40WPP39WPP38WPP37WPP36WPP35WPP34WPP33WPP32WP
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs

Bits 31:0 PyWP: SRAM2 1-Kbyte page y write protection (y = 63 to 32)

These bits are set by software and cleared only by a global RAMCFG reset.

0: Write protection of SRAM2 1-Kbyte page y is disabled.

1: Write protection of SRAM2 1-Kbyte page y is enabled.

6.6.9 RAMCFG memory 2 write protection register 3 (RAMCFG_M2WPR3)

Address offset: 0x060

Reset value: 0x0000 0000

This register is available only for STM32H523/33/43/53xx devices.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
P79WPP78WPP77WPP76WPP75WPP74WPP73WPP72WPP71WPP70WPP69WPP68WPP67WPP66WPP65WPP64WP
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs

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

Bits 15:0 PyWP: SRAM2 1-Kbyte page y write protection (y = 79 to 64)

These bits are set by software and cleared only by a global RAMCFG reset.

0: Write protection of SRAM2 1-Kbyte page y is disabled.

1: Write protection of SRAM2 1-Kbyte page y is enabled.

6.6.10 RAMCFG memory x ECC key register (RAMCFG_MxECCKEYR)

Address offset: 0x024 + 0x040 * (x - 1), (x = 2, 3, 5)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.ECCKEY[7:0]
wwwwwwww

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

Bits 7:0 ECCKEY[7:0]: ECC write protection key

The following steps are required to unlock the write protection of the ECCE bit in the RAMCFG_MxCR register.

1) Write 0xAE into ECCKEY[7:0].

2) Write 0x75 into ECCKEY[7:0].

Note: Writing a wrong key reactivates the write protection.

6.6.11 RAMCFG memory x erase key register (RAMCFG_MxERKEYR)

Address offset: 0x028+0x040*(x-1), (x = 1 to 5)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.ERASEKEY[7:0]
wwwwwwww

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

Bits 7:0 ERASEKEY[7:0]: Erase write protection key

The following steps are required to unlock the write protection of the SRAMER bit in the RAMCFG_MxCR register.

  1. 1) Write 0xCA into ERASEKEY[7:0].
  2. 2) Write 0x53 into ERASEKEY[7:0].

Note: Writing a wrong key reactivates the write protection.

6.6.12 RAMCFG register map

Table 47. RAMCFG register map and reset values

RAMs configuration controller (RAMCFG)column_2RM0481
Offset Register name 31 3 0 2 9 2 8 2 7 2 6 2 5 2 4 2 3 2 2 21 2 0 19 18 17 161514 13 12 1 1 10 9 8 7 6 5 4 3 2 1 0
S R A M E R
C C E E
R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. AL E R e s. R e s. R e s.
Reset value0 0 x
0x04 Reserved Reserved
S R A M B U S Y
R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.
Reset value0
0x24 Reserved Reserved
M1ERKEYR R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. ERASEKEY[7:0]
0x3C Reserved Reserved
S R A M E R
C C E E
R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. AL E R e s. R e s. R e s.
Reset value0 0 x
R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.
C C E N MI D S
Reset value0 00
S R A M B U S Y
D E D
S C E D
R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.
Reset value0 00
0x04C M2SEAR ESEA[31:0]
0x050 M2DEAR EDEA[31:0]
C S C E D
C D E D
R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.
3 0WP P
P 2 9WP
P 2 8WP
P 2 7WP
2 6WP P
P 2 5WP
P 2 4WP
2 3WP P
P 2 2WP
P 2 0WP P 31WP P 21WP P19WP P18WP P17WP P16WPP15WPP14WP P13WP P12WP P10WP P1 1WP 9WP P P 8WP P 7WP P 6WP P 5WP P 4WP P 3WP 2WP P P1WP P 0WP
P 6 3WP
6 2WP P
P 6 0WP
P 9WP 5
8WP P 5
P 7WP 5
P 5 6WP
P 5 5WP
P 4WP 5
P 5 3WP
P 2WP 5
P 0WP 5
P 4 9WP
8WP P 4
P 4 7WP
P 4 6WP
P 4 5WP
P 4 4WP
P 4 3WP
P 4 2WP
P 4 0WP
P 3 9WP
P 3 8WP
P 3 7WP
P 3 6WP
P 3 5WP
3 P 4WP
P 3 3WP
P 61WP P 51WPP 3 2WP 41WP P
P 9WP 7
P 7 8WP
P 7WP 7
P 6WP 7
P 5WP 7
P 4WP 7
3WP P 7
P 2WP 7
P 0WP 7
P 6 9WP
P 6 8WP
P 6 7WP
6 6WP P
P 6 5WP
P 6 4WP P 71WP
M2WPR3(1) R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.
Reset value0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
M2ECCKEYR R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s. R e s.R e s.R e s. R e s. R e s. R e s. R e s. R e s. R e s. ECCKEY[7:0]

Table 47. RAMCFG register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x068RAMCFG_M2ERKEYRResResResResResResResResResResResResResResResResResResResResResResResResERASEKEY[7:0]
Reset value00000000
0x06C to 0x07CReservedReserved
0x080RAMCFG_M3CRResResResResResResResResResResResResResResResResResResResResResResSRAMERResResResResALEResResResECCE
Reset value000
0x084RAMCFG_M3IERResResResResResResResResResResResResResResResResResResResResResResResResResResResECCNMIResResResECCE
Reset value000
0x088RAMCFG_M3ISRResResResResResResResResResResResResResResResResResResResResResResResSRAMBUSYResResResResResResDEDSEDC
Reset value000
0x08CRAMCFG_M3SEARESEA[31:0]
Reset value00000000000000000000000000000000
0x090RAMCFG_M3DEAREDEA[31:0]
Reset value00000000000000000000000000000000
0x094RAMCFG_M3ICRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResCDEDCSEDC
Reset value00
0x098 to 0x0A0ReservedReserved
0x0A4RAMCFG_M3ECCKEYRResResResResResResResResResResResResResResResResResResResResResResResResECCKEY[7:0]
Reset value00000000
0x0A8RAMCFG_M3ERKEYRResResResResResResResResResResResResResResResResResResResResResResResResERASEKEY[7:0]
Reset value00000000
0x0AC to 0x0FCReservedReserved
0x100RAMCFG_M5CRResResResResResResResResResResResResResResResResResResResResResResSRAMERResResResResALEResResResECCE
Reset value00x
0x104RAMCFG_M5IERResResResResResResResResResResResResResResResResResResResResResResResResResResECCNMIResResResSEIE
Reset value0000
0x108RAMCFG_M5ISRResResResResResResResResResResResResResResResResResResResResResResResSRAMBUSYResResResResResDEDSEDC
Reset value000
0x10CRAMCFG_M5SEARESEA[31:0]
Reset value00000000000000000000000000000000
0x110RAMCFG_M5DEAREDEA[31:0]
Reset value00000000000000000000000000000000

Table 47. RAMCFG register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x114RAMCFG_M5ICRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResCDEDCSEDC
Reset value00
0x118 to 0x120ReservedReserved
0x124RAMCFG_M5ECCKEYRResResResResResResResResResResResResResResResResResResResResResResResResECCKEY[7:0]
Reset value000000000
0x128RAMCFG_M5ERKEYRResResResResResResResResResResResResResResResResResResResResResResResResERASEKEY[7:0]
Reset value000000000

1. Available only on STM32H523/33/43/53xx devices.

Refer to Section 2.3: Memory organization for the register boundary addresses.