RM0432
offering a continuous address space with the SRAM1 and SRAM3.
2.4.1
SRAM2 parity check
The user can enable the SRAM2 parity check using the option bit SRAM2_PE in the user
option byte (refer to
The data bus width is 36 bits because 4 bits are available for parity check (1 bit per byte) in
order to increase memory robustness, as required for instance by Class B or SIL norms.
The parity bits are computed and stored when writing into the SRAM2. Then, they are
automatically checked when reading. If one bit fails, an NMI is generated. The same error
can also be linked to the BRK_IN Break input of TIM1/TIM8/TIM15/TIM16/TIM17, with the
SPL control bit in the
Parity Error flag (SPF) is available in the
(SYSCFG_CFGR2).
Note:
When enabling the RAM parity check, it is advised to initialize by software the whole RAM
memory at the beginning of the code, to avoid getting parity errors when reading non-
initialized locations.
2.4.2
SRAM2 Write protection
The SRAM2 can be write protected with a page granularity of 1 Kbyte.
Section 3.4.1: Option bytes
SYSCFG configuration register 2
Table 3. SRAM2 organization
Page number
Page 0
Page 1
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7
Page 8
Page 9
Page 10
Page 11
Page 12
Page 13
Page 14
Page 15
Page 16
Page 17
description).
SYSCFG configuration register 2
Start address
0x1000 0000
0x1000 0400
0x1000 0800
0x1000 0C00
0x1000 1000
0x1000 1400
0x1000 1800
0x1000 1C00
0x1000 2000
0x1000 2400
0x1000 2800
0x1000 2C00
0x1000 3000
0x1000 3400
0x1000 3800
0x1000 3C00
0x1000 4000
0x1000 4400
RM0432 Rev 6
(SYSCFG_CFGR2). The SRAM2
End address
0x1000 03FF
0x1000 07FF
0x1000 0BFF
0x1000 0FFF
0x1000 13FF
0x1000 17FF
0x1000 1BFF
0x1000 1FFF
0x1000 23FF
0x1000 27FF
0x1000 2BFF
0x1000 2FFF
0x1000 33FF
0x1000 37FF
0x1000 3BFF
0x1000 3FFF
0x1000 43FF
0x1000 47FF
107/2301
112
Need help?
Do you have a question about the STM32L4+ Series and is the answer not in the manual?